]> Pileus Git - ~andy/gtk/commitdiff
GDK_DISABLE_COMPAT_H, GDK_DISABLE_DEPRECATED (we need to merge those two
authorHavoc Pennington <hp@redhat.com>
Mon, 19 Feb 2001 20:38:15 +0000 (20:38 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Mon, 19 Feb 2001 20:38:15 +0000 (20:38 +0000)
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

14 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
demos/gtk-demo/Makefile.am
gdk/gdk.c
gdk/gdk.h
gdk/gdkcolor.h
gdk/gdkfont.h
gdk/gdkrgb.h
gdk/x11/gdkmain-x11.c

index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
--- a/ChangeLog
+++ b/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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
@@ -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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
@@ -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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
@@ -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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
@@ -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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
@@ -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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 0d52235420689494cfa3c9ba25891657d67c3b6b..f842c39b0c1b5358bacbf14dbfc05033fb422468 100644 (file)
@@ -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>
 
        * gtk/gtkvscrollbar.c (gtk_vscrollbar_trough_keys): use the visual
index 2327c53e9bc3644784a363310ceaf0b3a43a31d5..a943a3e6e506301cd11cddc604d8a38528af6b8a 100644 (file)
@@ -14,6 +14,8 @@ INCLUDES = @STRIP_BEGIN@ \
        -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@                               \
index e607d9e225373f75e6adc61972e5f707b7b6ac38..a30375afb7b0f4acb725d6dcc7cffec6cdfb6906 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -54,7 +54,6 @@ struct _GdkErrorTrap
 /* 
  * Private function declarations
  */
-static void        gdk_exit_func                (void);
 
 GdkFilterReturn gdk_wm_protocols_filter (GdkXEvent *xev,
                                         GdkEvent  *event,
@@ -334,8 +333,6 @@ gdk_init_check (int    *argc,
   if (!result)
     return FALSE;
   
-  g_atexit (gdk_exit_func);
-  
   gdk_events_init ();
   gdk_visual_init ();
   _gdk_windowing_window_init ();
@@ -389,6 +386,13 @@ gdk_exit (gint 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
@@ -436,6 +440,8 @@ gdk_exit_func (void)
     }
 }
 
+#endif
+
 /*************************************************************
  * gdk_error_trap_push:
  *     Push an error trap. X errors will be trapped until
index 9c4d8365577cd68b3921d2fa55acf20bb51ae227..6cfdd807da0e6f0ac482a124f2a989b3dec611ea 100644 (file)
--- a/gdk/gdk.h
+++ b/gdk/gdk.h
@@ -63,7 +63,10 @@ void           gdk_init                      (gint           *argc,
                                         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
@@ -77,6 +80,7 @@ void    gdk_set_use_xshm              (gboolean        use_xshm);
 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,
@@ -87,6 +91,7 @@ gint gdk_input_add      (gint              source,
                           GdkInputFunction  function,
                           gpointer          data);
 void gdk_input_remove    (gint              tag);
+#endif /* GDK_DISABLE_DEPRECATED */
 
 GdkGrabStatus gdk_pointer_grab       (GdkWindow    *window,
                                      gboolean      owner_events,
@@ -110,9 +115,6 @@ gint gdk_screen_height_mm (void) G_GNUC_CONST;
 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,
index 07417f8029d5ddf929743640a5ac79fa956232c8..e703b38d9da852c59bad3f0e6bdb7ba6586f8cac 100644 (file)
@@ -97,6 +97,7 @@ gboolean  gdk_color_equal (const GdkColor *colora,
                           const GdkColor *colorb);
 
 /* The following functions are deprecated */
+#ifdef GDK_DISABLE_DEPRECATED
 void gdk_colors_store   (GdkColormap   *colormap,
                          GdkColor      *colors,
                          gint           ncolors);
@@ -118,6 +119,7 @@ gint gdk_color_alloc         (GdkColormap   *colormap,
                          GdkColor      *color);
 gint gdk_color_change   (GdkColormap   *colormap,
                          GdkColor      *color);
+#endif /* GDK_DISABLE_DEPRECATED */
 
 #ifdef __cplusplus
 }
index df12294bafde95da5458936b465eb7c945e31d06..b0bfb6e8e1c1bbd36c204fb33509695fcdb033b3 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef GDK_DISABLE_DEPRECATED
+
 #ifndef __GDK_FONT_H__
 #define __GDK_FONT_H__
 
@@ -100,3 +102,5 @@ void         gdk_font_full_name_free (gchar *name);
 #endif /* __cplusplus */
 
 #endif /* __GDK_FONT_H__ */
+
+#endif /* GDK_DISABLE_DEPRECATED */
index 4d79bae6cdc43f154af095b62e2f5477131cb433..5a41b3f63b4818853c8af0fefc93a9d1b57b251a 100644 (file)
@@ -43,6 +43,7 @@ struct _GdkRgbCmap {
   GSList *info_list;
 };
 
+#ifndef GDK_DISABLE_DEPRECATED
 void gdk_rgb_init (void);
 
 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);
 void   gdk_rgb_gc_set_background (GdkGC       *gc,
                                  guint32      rgb);
+#endif /* GDK_DISABLE_DEPRECATED */
+
 void   gdk_rgb_find_color        (GdkColormap *colormap,
                                  GdkColor    *color);
 
index b189cd6a5f62e1e749e65d96b2777b20588247b1..1f0097b9440e7bcad47d341f467fe19f7e8900a0 100644 (file)
@@ -598,22 +598,6 @@ gdk_set_sm_client_id (const gchar* sm_client_id)
                      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)
 {