+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
+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>
* gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
-DDEMOCODEDIR="\"$(democodedir)\"" \
-I$(top_srcdir) \
-I$(top_builddir)/gdk \
+ -DGDK_DISABLE_COMPAT_H \
+ -DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_COMPAT_H \
-DGTK_DISABLE_DEPRECATED \
@GTK_DEBUG_FLAGS@ \
/*
* Private function declarations
*/
-static void gdk_exit_func (void);
GdkFilterReturn gdk_wm_protocols_filter (GdkXEvent *xev,
GdkEvent *event,
if (!result)
return FALSE;
- g_atexit (gdk_exit_func);
-
gdk_events_init ();
gdk_visual_init ();
_gdk_windowing_window_init ();
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
}
}
+#endif
+
/*************************************************************
* gdk_error_trap_push:
* Push an error trap. X errors will be trapped until
gchar ***argv);
gboolean gdk_init_check (gint *argc,
gchar ***argv);
+
+#ifdef GDK_DISABLE_DEPRECATED
void gdk_exit (gint error_code);
+#endif /* GDK_DISABLE_DEPRECATED */
gchar* gdk_set_locale (void);
/* Push and pop error handlers for X errors
gboolean gdk_get_use_xshm (void);
gchar* gdk_get_display (void);
+#ifdef GDK_DISABLE_DEPRECATED
gint gdk_input_add_full (gint source,
GdkInputCondition condition,
GdkInputFunction function,
GdkInputFunction function,
gpointer data);
void gdk_input_remove (gint tag);
+#endif /* GDK_DISABLE_DEPRECATED */
GdkGrabStatus gdk_pointer_grab (GdkWindow *window,
gboolean owner_events,
void gdk_flush (void);
void gdk_beep (void);
-void gdk_key_repeat_disable (void);
-void gdk_key_repeat_restore (void);
-
/* Rectangle utilities
*/
gboolean gdk_rectangle_intersect (GdkRectangle *src1,
const GdkColor *colorb);
/* The following functions are deprecated */
+#ifdef GDK_DISABLE_DEPRECATED
void gdk_colors_store (GdkColormap *colormap,
GdkColor *colors,
gint ncolors);
GdkColor *color);
gint gdk_color_change (GdkColormap *colormap,
GdkColor *color);
+#endif /* GDK_DISABLE_DEPRECATED */
#ifdef __cplusplus
}
+#ifndef GDK_DISABLE_DEPRECATED
+
#ifndef __GDK_FONT_H__
#define __GDK_FONT_H__
#endif /* __cplusplus */
#endif /* __GDK_FONT_H__ */
+
+#endif /* GDK_DISABLE_DEPRECATED */
GSList *info_list;
};
+#ifndef GDK_DISABLE_DEPRECATED
void gdk_rgb_init (void);
gulong gdk_rgb_xpixel_from_rgb (guint32 rgb) G_GNUC_CONST;
guint32 rgb);
void gdk_rgb_gc_set_background (GdkGC *gc,
guint32 rgb);
+#endif /* GDK_DISABLE_DEPRECATED */
+
void gdk_rgb_find_color (GdkColormap *colormap,
GdkColor *color);
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
gdk_beep (void)
{