From 2cabeeb1c3ec0c1a17c4c372191dbe64ce5987af Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 9 Jun 1998 23:18:11 +0000 Subject: Removed g_object_pointer_hash, which was just g_direct_hash. Tue Jun 9 18:44:57 1998 Owen Taylor * gtk/gtkobject.c: Removed g_object_pointer_hash, which was just g_direct_hash. Mon May 25 19:54:20 1998 Owen Taylor * configure.in: x_libs=, not $x_libs=. Enough said. (Case only hit for --disable-xshm) Mon May 25 12:08:14 1998 Owen Taylor * configure.in (LDFLAGS): Add to $CFLAGS and $LDFLAGS when testing for X libraries, don't replace them. Because the user might have specified the path to the X libraries themself before running configure. * examples/**.c: Changed all gpointer * to gpointer Sat May 23 21:54:05 1998 Owen Taylor * configure.in (LDFLAGS): Bomb out with a moderately helpful message if detection of X libraries fails. Sat May 23 18:57:06 1998 Owen Taylor [ Combination of: gtk-rrh-980412-0.patch (Raja R Harinath ) gtk-jbuhler-980516-0 (Jeremy Buhler ) ] * gdk/gdk.h gdk/gdkcc.c gdk/gdkfont.c gtk/gtkmain.c gtk/gtksignal.c gtk/gtktext.c: Fixups for warnings from adding const to type of GHashFunc, GCompareFunc * gtk/gtkcombo.c (gtk_combo_entry_key_press): Minor style/ ansi-warnings fixups. Tue Jun 9 17:47:33 1998 Owen Taylor * glib.h: Remove #error - HP/UX. Sat May 23 19:00:01 1998 Owen Taylor [ Combination of: gtk-rrh-980412-0.patch (Raja R Harinath ) gtk-jbuhler-980516-0 (Jeremy Buhler ) ] * glib.h ghash.c gstring.c gdataset.c gutils.c: - Added new typedef g_const_pointer; expunged all incorrect uses of 'const gpointer'. - Fixed up warnings that that created, - Changed GHashFunc and GCompareFunc to take g_const_pointer arguments. (Necessary, but will cause warnings in existing code until fixed) - Added other new const in harmless positions. --- gtk/gtkobject.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'gtk/gtkobject.c') diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c index 4c5c6a98fa..2d8c145c38 100644 --- a/gtk/gtkobject.c +++ b/gtk/gtkobject.c @@ -120,15 +120,6 @@ gtk_object_debug (void) g_print ("GTK-DEBUG: living objects count = %d\n", obj_count); } -static guint -gtk_object_pointer_hash (const gpointer v) -{ - gint i; - - i = (gint) v; - - return i; -} #endif /* G_ENABLE_DEBUG */ /**************************************************** @@ -215,7 +206,7 @@ gtk_object_init (GtkObject *object) obj_count++; if (!living_objs_ht) - living_objs_ht = g_hash_table_new (gtk_object_pointer_hash, NULL); + living_objs_ht = g_hash_table_new (g_direct_hash, NULL); g_hash_table_insert (living_objs_ht, object, object); } -- cgit v1.2.1