+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):
+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):
+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):
+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):
+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):
+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):
}
/**
- * 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;
#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
*
*/
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;
GObject *acceleratable,
guint keyval,
GdkModifierType modifier);
+
+typedef gboolean (*GtkAccelGroupFindFunc) (GtkAccelKey *key,
+ GClosure *closure,
+ gpointer data)
+
struct _GtkAccelGroup
{
GObject parent;
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);