summaryrefslogtreecommitdiff
path: root/gtk/gtkgc.c
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>2000-11-13 13:15:41 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>2000-11-13 13:15:41 +0000
commitb664be5ffb0f854c8e7464f34e93eb15227a8d2b (patch)
tree6d929c957e07a36606b56db749f850b464e66464 /gtk/gtkgc.c
parent1ddb7f30f641a3d6ab9d734707e3582ad2a5dd61 (diff)
downloadgdk-pixbuf-b664be5ffb0f854c8e7464f34e93eb15227a8d2b.tar.gz
GCompareFunc -> GEqualFunc where applicable.
2000-11-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gdk/linux-fb/gdkcolor-fb.c, gdk/nanox/gdkmain-nanox.c, gdk/win32/gdkcolor-win32.c, gdk/win32/gdkwin32id.c, gdk/x11/gdkcolor-x11.c, gdk/x11/gdkvisual-x11.c, gdk/x11/gdkxid.c, gtk/gtkgc.c, gtk/gtkrc.c, gtk/gtktext.c: GCompareFunc -> GEqualFunc where applicable. * gdk/linux-fb/gdkpango-fb.c: pango_font_description_compare -> pango_font_description_equal as changed in pango. * gdk/nanox/gdkmain-nanox.c: gdk_xid_compare -> gdk_xid_equal. * gdk/win32/gdkcolor-win32.c: gdk_colormap_cmp -> gdk_colormap_equal. * gdk/win32/gdkwin32id.c: gdk_handle_compare -> gdk_handle_equal. * gdk/x11/gdkcolor-x11.c: gdk_colormap_cmp -> gdk_colormap_equal. * gdk/x11/gdkvisual-x11.c: gdk_visual_compare -> gdk_visual_equal. * gdk/x11/gdkxid.c: gdk_xid_compare -> gdk_xid_equal. * gtk/gtkgc.c: gtk_gc_key_compare -> gtk_gc_key_equal and gtk_gc_drawable_compare -> gtk_gc_drawable_equal. * gtk/gtkrc.c: gtk_rc_style_compare -> gtk_rc_style_equal and gtk_rc_styles_compare -> gtk_rc_styles_equal.
Diffstat (limited to 'gtk/gtkgc.c')
-rw-r--r--gtk/gtkgc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtkgc.c b/gtk/gtkgc.c
index 611e7bf4c..f10f3a97e 100644
--- a/gtk/gtkgc.c
+++ b/gtk/gtkgc.c
@@ -52,10 +52,10 @@ static gpointer gtk_gc_new (gpointer key);
static void gtk_gc_destroy (gpointer value);
static guint gtk_gc_key_hash (gpointer key);
static guint gtk_gc_value_hash (gpointer value);
-static gint gtk_gc_key_compare (gpointer a,
+static gint gtk_gc_key_equal (gpointer a,
gpointer b);
static guint gtk_gc_drawable_hash (GtkGCDrawable *d);
-static gint gtk_gc_drawable_compare (GtkGCDrawable *a,
+static gint gtk_gc_drawable_equal (GtkGCDrawable *a,
GtkGCDrawable *b);
@@ -109,10 +109,10 @@ gtk_gc_init (void)
(GCacheDestroyFunc) gtk_gc_key_destroy,
(GHashFunc) gtk_gc_key_hash,
(GHashFunc) gtk_gc_value_hash,
- (GCompareFunc) gtk_gc_key_compare);
+ (GEqualFunc) gtk_gc_key_equal);
gc_drawable_ht = g_hash_table_new ((GHashFunc) gtk_gc_drawable_hash,
- (GCompareFunc) gtk_gc_drawable_compare);
+ (GEqualFunc) gtk_gc_drawable_equal);
}
static GtkGCKey*
@@ -259,9 +259,9 @@ gtk_gc_value_hash (gpointer value)
return (gulong) value;
}
-static gint
-gtk_gc_key_compare (gpointer a,
- gpointer b)
+static gboolean
+gtk_gc_key_equal (gpointer a,
+ gpointer b)
{
GtkGCKey *akey;
GtkGCKey *bkey;
@@ -384,9 +384,9 @@ gtk_gc_drawable_hash (GtkGCDrawable *d)
return d->depth;
}
-static gint
-gtk_gc_drawable_compare (GtkGCDrawable *a,
- GtkGCDrawable *b)
+static gboolean
+gtk_gc_drawable_equal (GtkGCDrawable *a,
+ GtkGCDrawable *b)
{
return (a->depth == b->depth);
}