summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-09-24 21:54:15 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-09-24 21:54:15 +0000
commitad07608cc39bc1115de26f094b8aa08f46e23335 (patch)
tree6b1814fe655d9b5d5a370a945cbf19e34c291c44 /gdk
parente53e9652a52e468586df2ebdb03f51df781e9499 (diff)
downloadgtk+-ad07608cc39bc1115de26f094b8aa08f46e23335.tar.gz
Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly
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)
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkvisual-x11.c11
-rw-r--r--gdk/x11/gdkx.h4
2 files changed, 8 insertions, 7 deletions
diff --git a/gdk/x11/gdkvisual-x11.c b/gdk/x11/gdkvisual-x11.c
index f9d1ffd7de..9e2b780b28 100644
--- a/gdk/x11/gdkvisual-x11.c
+++ b/gdk/x11/gdkvisual-x11.c
@@ -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;
diff --git a/gdk/x11/gdkx.h b/gdk/x11/gdkx.h
index 11bd0e17a5..83a4807f7c 100644
--- a/gdk/x11/gdkx.h
+++ b/gdk/x11/gdkx.h
@@ -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