]> Pileus Git - ~andy/gtk/commitdiff
Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly
authorOwen Taylor <otaylor@redhat.com>
Tue, 24 Sep 2002 21:54:15 +0000 (21:54 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 24 Sep 2002 21:54:15 +0000 (21:54 +0000)
Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
        * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find):
        Add a GtkAccelGroupFindFunc to clean up the
        prototype. (#76670, Vitaly Tishkov)

        * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
        gdkx_visual_get_for_screen() to
        gdk_x11_screen_lookup_visual(). (#85702)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkvisual-x11.c
gdk/x11/gdkx.h
gtk/gtkaccelgroup.c
gtk/gtkaccelgroup.h

index 97fdab1f874f94d669edf7c90e9eced4a40b64b6..f4d1df435345a64d3890b1bde23afbfd9ecc0a0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
+       Add a GtkAccelGroupFindFunc to clean up the
+       prototype. (#76670, Vitaly Tishkov)
+
+       * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
+       gdkx_visual_get_for_screen() to 
+       gdk_x11_screen_lookup_visual(). (#85702)
+
 2002-09-25  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c (gdk_event_translate):
index 97fdab1f874f94d669edf7c90e9eced4a40b64b6..f4d1df435345a64d3890b1bde23afbfd9ecc0a0b 100644 (file)
@@ -1,3 +1,13 @@
+Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
+       Add a GtkAccelGroupFindFunc to clean up the
+       prototype. (#76670, Vitaly Tishkov)
+
+       * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
+       gdkx_visual_get_for_screen() to 
+       gdk_x11_screen_lookup_visual(). (#85702)
+
 2002-09-25  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c (gdk_event_translate):
index 97fdab1f874f94d669edf7c90e9eced4a40b64b6..f4d1df435345a64d3890b1bde23afbfd9ecc0a0b 100644 (file)
@@ -1,3 +1,13 @@
+Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
+       Add a GtkAccelGroupFindFunc to clean up the
+       prototype. (#76670, Vitaly Tishkov)
+
+       * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
+       gdkx_visual_get_for_screen() to 
+       gdk_x11_screen_lookup_visual(). (#85702)
+
 2002-09-25  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c (gdk_event_translate):
index 97fdab1f874f94d669edf7c90e9eced4a40b64b6..f4d1df435345a64d3890b1bde23afbfd9ecc0a0b 100644 (file)
@@ -1,3 +1,13 @@
+Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
+       Add a GtkAccelGroupFindFunc to clean up the
+       prototype. (#76670, Vitaly Tishkov)
+
+       * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
+       gdkx_visual_get_for_screen() to 
+       gdk_x11_screen_lookup_visual(). (#85702)
+
 2002-09-25  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c (gdk_event_translate):
index 97fdab1f874f94d669edf7c90e9eced4a40b64b6..f4d1df435345a64d3890b1bde23afbfd9ecc0a0b 100644 (file)
@@ -1,3 +1,13 @@
+Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
+       Add a GtkAccelGroupFindFunc to clean up the
+       prototype. (#76670, Vitaly Tishkov)
+
+       * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
+       gdkx_visual_get_for_screen() to 
+       gdk_x11_screen_lookup_visual(). (#85702)
+
 2002-09-25  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c (gdk_event_translate):
index 97fdab1f874f94d669edf7c90e9eced4a40b64b6..f4d1df435345a64d3890b1bde23afbfd9ecc0a0b 100644 (file)
@@ -1,3 +1,13 @@
+Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find): 
+       Add a GtkAccelGroupFindFunc to clean up the
+       prototype. (#76670, Vitaly Tishkov)
+
+       * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
+       gdkx_visual_get_for_screen() to 
+       gdk_x11_screen_lookup_visual(). (#85702)
+
 2002-09-25  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkevents-win32.c (gdk_event_translate):
index f9d1ffd7dec4ade9df95c94c3203c8401188987e..9e2b780b281a2f69a980637b9d081859143d6050 100644 (file)
@@ -537,17 +537,18 @@ gdk_screen_list_visuals (GdkScreen *screen)
 }
 
 /**
- * gdkx_visual_get_for_screen:
+ * gdk_x11_screen_lookup_visual
  * @screen: a #GdkScreen.
  * @xvisualid: an X Visual ID.
  *
- * Returns a #GdkVisual from and X Visual id.
+ * Looks up the #GdkVisual for a particular screen and X Visual ID.
  *
- * Returns: a #GdkVisual.
+ * Returns: the #GdkVisual (owned by the screen object), or %NULL
+ *   if the visual ID wasn't found.
  */
 GdkVisual *
-gdkx_visual_get_for_screen (GdkScreen *screen,
-                           VisualID   xvisualid)
+gdk_x11_screen_lookup_visual (GdkScreen *screen,
+                             VisualID   xvisualid)
 {
   int i;
   GdkScreenX11 *screen_x11;
index 11bd0e17a5c1f3b65f23d4c73cbb99c768ad2d4c..83a4807f7c1bfa37c4341978c56b2088a8bc0254 100644 (file)
@@ -116,8 +116,8 @@ gint     gdk_x11_get_default_screen       (void);
 
 #endif /* INSIDE_GDK_X11 */
 
-GdkVisual* gdkx_visual_get_for_screen (GdkScreen *screen,
-                                      VisualID   xvisualid);
+GdkVisual* gdk_x11_screen_lookup_visual (GdkScreen *screen,
+                                        VisualID   xvisualid);
 #ifndef GDK_MULTIHEAD_SAFE
 GdkVisual* gdkx_visual_get            (VisualID   xvisualid);
 #endif
index d6cb323e98576b56fbd9b8946504ecc68cb07d0f..b5c49fb980624c4a735a8ac69e1662c7917a4a08 100644 (file)
@@ -269,11 +269,9 @@ gtk_accel_groups_from_object (GObject *object)
  *
  */
 GtkAccelKey*
-gtk_accel_group_find (GtkAccelGroup  *accel_group,
-                     gboolean (*find_func) (GtkAccelKey *key,
-                                            GClosure    *closure,
-                                            gpointer     data),
-                     gpointer        data)
+gtk_accel_group_find (GtkAccelGroup        *accel_group,
+                     GtkAccelGroupFindFunc find_func,
+                     gpointer              data)
 {
   GtkAccelKey *key = NULL;
   guint i;
index f006f38054bdc6f95e9959dc3dbd6431e1f7a990..36666b31c52b7646121d3977504ee93133534951 100644 (file)
@@ -61,6 +61,11 @@ typedef gboolean (*GtkAccelGroupActivate) (GtkAccelGroup  *accel_group,
                                           GObject        *acceleratable,
                                           guint           keyval,
                                           GdkModifierType modifier);
+
+typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey    *key,
+                                          GClosure       *closure,
+                                          gpointer        data)
+
 struct _GtkAccelGroup
 {
   GObject             parent;
@@ -124,11 +129,9 @@ gboolean        gtk_accel_groups_activate          (GObject        *object,
                                                 guint           accel_key,
                                                 GdkModifierType accel_mods);
 GSList*                gtk_accel_groups_from_object    (GObject        *object);
-GtkAccelKey*   gtk_accel_group_find            (GtkAccelGroup  *accel_group,
-                                                gboolean (*find_func) (GtkAccelKey *key,
-                                                                       GClosure    *closure,
-                                                                       gpointer     data),
-                                                gpointer        data);
+GtkAccelKey*   gtk_accel_group_find            (GtkAccelGroup        *accel_group,
+                                                GtkAccelGroupFindFunc find_func,
+                                                gpointer              data);
 GtkAccelGroup* gtk_accel_group_from_accel_closure (GClosure    *closure);