GDK_DISABLE_COMPAT_H, GDK_DISABLE_DEPRECATED (we need to merge those two
2001-02-19 Havoc Pennington <hp@redhat.com> * demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H, GDK_DISABLE_DEPRECATED (we need to merge those two #defines) * gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke (gdk_key_repeat_restore): nuke * gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it (gdk_init_check): no atexit func * gdk/gdkrgb.h: mark some stuff deprecated * gdk/gdkcolor.h: mark some stuff deprecated * gdk/gdk.h: deprecated gdk_exit, gdk_input_* * gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
This commit is contained in:
parent
3a99bdf5a7
commit
b58ba480af
19
ChangeLog
19
ChangeLog
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
2001-02-19 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
|
* demos/gtk-demo/Makefile.am (INCLUDES): GDK_DISABLE_COMPAT_H,
|
||||||
|
GDK_DISABLE_DEPRECATED (we need to merge those two #defines)
|
||||||
|
|
||||||
|
* gdk/x11/gdkmain-x11.c (gdk_key_repeat_disable): nuke
|
||||||
|
(gdk_key_repeat_restore): nuke
|
||||||
|
|
||||||
|
* gdk/gdk.c (gdk_exit_func): #if 0 this for now, don't install it
|
||||||
|
(gdk_init_check): no atexit func
|
||||||
|
|
||||||
|
* gdk/gdkrgb.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdkcolor.h: mark some stuff deprecated
|
||||||
|
|
||||||
|
* gdk/gdk.h: deprecated gdk_exit, gdk_input_*
|
||||||
|
|
||||||
|
* gdk/gdkfont.h: bracket in GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
2001-02-16 Havoc Pennington <hp@redhat.com>
|
2001-02-16 Havoc Pennington <hp@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
|
||||||
|
@ -14,6 +14,8 @@ INCLUDES = @STRIP_BEGIN@ \
|
|||||||
-DDEMOCODEDIR="\"$(democodedir)\"" \
|
-DDEMOCODEDIR="\"$(democodedir)\"" \
|
||||||
-I$(top_srcdir) \
|
-I$(top_srcdir) \
|
||||||
-I$(top_builddir)/gdk \
|
-I$(top_builddir)/gdk \
|
||||||
|
-DGDK_DISABLE_COMPAT_H \
|
||||||
|
-DGDK_DISABLE_DEPRECATED \
|
||||||
-DGTK_DISABLE_COMPAT_H \
|
-DGTK_DISABLE_COMPAT_H \
|
||||||
-DGTK_DISABLE_DEPRECATED \
|
-DGTK_DISABLE_DEPRECATED \
|
||||||
@GTK_DEBUG_FLAGS@ \
|
@GTK_DEBUG_FLAGS@ \
|
||||||
|
12
gdk/gdk.c
12
gdk/gdk.c
@ -54,7 +54,6 @@ struct _GdkErrorTrap
|
|||||||
/*
|
/*
|
||||||
* Private function declarations
|
* Private function declarations
|
||||||
*/
|
*/
|
||||||
static void gdk_exit_func (void);
|
|
||||||
|
|
||||||
GdkFilterReturn gdk_wm_protocols_filter (GdkXEvent *xev,
|
GdkFilterReturn gdk_wm_protocols_filter (GdkXEvent *xev,
|
||||||
GdkEvent *event,
|
GdkEvent *event,
|
||||||
@ -334,8 +333,6 @@ gdk_init_check (int *argc,
|
|||||||
if (!result)
|
if (!result)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
g_atexit (gdk_exit_func);
|
|
||||||
|
|
||||||
gdk_events_init ();
|
gdk_events_init ();
|
||||||
gdk_visual_init ();
|
gdk_visual_init ();
|
||||||
_gdk_windowing_window_init ();
|
_gdk_windowing_window_init ();
|
||||||
@ -389,6 +386,13 @@ gdk_exit (gint errorcode)
|
|||||||
exit (errorcode);
|
exit (errorcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
|
||||||
|
/* This is disabled, but the code isn't removed, because we might
|
||||||
|
* want to have some sort of explicit way to shut down GDK cleanly
|
||||||
|
* at some point in the future.
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*--------------------------------------------------------------
|
*--------------------------------------------------------------
|
||||||
* gdk_exit_func
|
* gdk_exit_func
|
||||||
@ -436,6 +440,8 @@ gdk_exit_func (void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/*************************************************************
|
/*************************************************************
|
||||||
* gdk_error_trap_push:
|
* gdk_error_trap_push:
|
||||||
* Push an error trap. X errors will be trapped until
|
* Push an error trap. X errors will be trapped until
|
||||||
|
@ -63,7 +63,10 @@ void gdk_init (gint *argc,
|
|||||||
gchar ***argv);
|
gchar ***argv);
|
||||||
gboolean gdk_init_check (gint *argc,
|
gboolean gdk_init_check (gint *argc,
|
||||||
gchar ***argv);
|
gchar ***argv);
|
||||||
|
|
||||||
|
#ifdef GDK_DISABLE_DEPRECATED
|
||||||
void gdk_exit (gint error_code);
|
void gdk_exit (gint error_code);
|
||||||
|
#endif /* GDK_DISABLE_DEPRECATED */
|
||||||
gchar* gdk_set_locale (void);
|
gchar* gdk_set_locale (void);
|
||||||
|
|
||||||
/* Push and pop error handlers for X errors
|
/* Push and pop error handlers for X errors
|
||||||
@ -77,6 +80,7 @@ void gdk_set_use_xshm (gboolean use_xshm);
|
|||||||
gboolean gdk_get_use_xshm (void);
|
gboolean gdk_get_use_xshm (void);
|
||||||
gchar* gdk_get_display (void);
|
gchar* gdk_get_display (void);
|
||||||
|
|
||||||
|
#ifdef GDK_DISABLE_DEPRECATED
|
||||||
gint gdk_input_add_full (gint source,
|
gint gdk_input_add_full (gint source,
|
||||||
GdkInputCondition condition,
|
GdkInputCondition condition,
|
||||||
GdkInputFunction function,
|
GdkInputFunction function,
|
||||||
@ -87,6 +91,7 @@ gint gdk_input_add (gint source,
|
|||||||
GdkInputFunction function,
|
GdkInputFunction function,
|
||||||
gpointer data);
|
gpointer data);
|
||||||
void gdk_input_remove (gint tag);
|
void gdk_input_remove (gint tag);
|
||||||
|
#endif /* GDK_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
GdkGrabStatus gdk_pointer_grab (GdkWindow *window,
|
GdkGrabStatus gdk_pointer_grab (GdkWindow *window,
|
||||||
gboolean owner_events,
|
gboolean owner_events,
|
||||||
@ -110,9 +115,6 @@ gint gdk_screen_height_mm (void) G_GNUC_CONST;
|
|||||||
void gdk_flush (void);
|
void gdk_flush (void);
|
||||||
void gdk_beep (void);
|
void gdk_beep (void);
|
||||||
|
|
||||||
void gdk_key_repeat_disable (void);
|
|
||||||
void gdk_key_repeat_restore (void);
|
|
||||||
|
|
||||||
/* Rectangle utilities
|
/* Rectangle utilities
|
||||||
*/
|
*/
|
||||||
gboolean gdk_rectangle_intersect (GdkRectangle *src1,
|
gboolean gdk_rectangle_intersect (GdkRectangle *src1,
|
||||||
|
@ -97,6 +97,7 @@ gboolean gdk_color_equal (const GdkColor *colora,
|
|||||||
const GdkColor *colorb);
|
const GdkColor *colorb);
|
||||||
|
|
||||||
/* The following functions are deprecated */
|
/* The following functions are deprecated */
|
||||||
|
#ifdef GDK_DISABLE_DEPRECATED
|
||||||
void gdk_colors_store (GdkColormap *colormap,
|
void gdk_colors_store (GdkColormap *colormap,
|
||||||
GdkColor *colors,
|
GdkColor *colors,
|
||||||
gint ncolors);
|
gint ncolors);
|
||||||
@ -118,6 +119,7 @@ gint gdk_color_alloc (GdkColormap *colormap,
|
|||||||
GdkColor *color);
|
GdkColor *color);
|
||||||
gint gdk_color_change (GdkColormap *colormap,
|
gint gdk_color_change (GdkColormap *colormap,
|
||||||
GdkColor *color);
|
GdkColor *color);
|
||||||
|
#endif /* GDK_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#ifndef GDK_DISABLE_DEPRECATED
|
||||||
|
|
||||||
#ifndef __GDK_FONT_H__
|
#ifndef __GDK_FONT_H__
|
||||||
#define __GDK_FONT_H__
|
#define __GDK_FONT_H__
|
||||||
|
|
||||||
@ -100,3 +102,5 @@ void gdk_font_full_name_free (gchar *name);
|
|||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* __GDK_FONT_H__ */
|
#endif /* __GDK_FONT_H__ */
|
||||||
|
|
||||||
|
#endif /* GDK_DISABLE_DEPRECATED */
|
||||||
|
@ -43,6 +43,7 @@ struct _GdkRgbCmap {
|
|||||||
GSList *info_list;
|
GSList *info_list;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifndef GDK_DISABLE_DEPRECATED
|
||||||
void gdk_rgb_init (void);
|
void gdk_rgb_init (void);
|
||||||
|
|
||||||
gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) G_GNUC_CONST;
|
gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) G_GNUC_CONST;
|
||||||
@ -50,6 +51,8 @@ void gdk_rgb_gc_set_foreground (GdkGC *gc,
|
|||||||
guint32 rgb);
|
guint32 rgb);
|
||||||
void gdk_rgb_gc_set_background (GdkGC *gc,
|
void gdk_rgb_gc_set_background (GdkGC *gc,
|
||||||
guint32 rgb);
|
guint32 rgb);
|
||||||
|
#endif /* GDK_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
void gdk_rgb_find_color (GdkColormap *colormap,
|
void gdk_rgb_find_color (GdkColormap *colormap,
|
||||||
GdkColor *color);
|
GdkColor *color);
|
||||||
|
|
||||||
|
@ -598,22 +598,6 @@ gdk_set_sm_client_id (const gchar* sm_client_id)
|
|||||||
gdk_atom_intern ("SM_CLIENT_ID", FALSE));
|
gdk_atom_intern ("SM_CLIENT_ID", FALSE));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
gdk_key_repeat_disable (void)
|
|
||||||
{
|
|
||||||
XAutoRepeatOff (gdk_display);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gdk_key_repeat_restore (void)
|
|
||||||
{
|
|
||||||
if (autorepeat)
|
|
||||||
XAutoRepeatOn (gdk_display);
|
|
||||||
else
|
|
||||||
XAutoRepeatOff (gdk_display);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
gdk_beep (void)
|
gdk_beep (void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user