diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-09-24 20:20:08 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-09-24 20:20:08 +0000 |
commit | f9d267ae80e7f423cc206b89a476d29f5eaa1320 (patch) | |
tree | d2d4579c4456957aad55b09a2ebb49201b8141d3 /gdk/x11/gdkxid.c | |
parent | ed737365c9d2b373b923571b606d6eb209d2e7ee (diff) | |
download | gdk-pixbuf-f9d267ae80e7f423cc206b89a476d29f5eaa1320.tar.gz |
Delete unused private gdk_visual_lookup(), make gdk_colormap_lookup()
Tue Sep 24 16:04:44 2002 Owen Taylor <otaylor@redhat.com>
* gdkprivate-x11.h gdkcolor-x11.c gdkvisual-x11.c
gdkwindow-x11.c: Delete unused private gdk_visual_lookup(),
make gdk_colormap_lookup() private gdkcolor-x11.c.
make gdk_window_add_colormap_windows private to gdkwindow-x11.c
(#85674)
* gdk/x11/gdkx.h gdk/x11/gdkcolor-x11.c
gdkscreen-x11.h: Add gdk_x11_colormap_foreign_new(),
GDK_ENABLE_BROKEN gdkx_colormap_get(), make the
colormap hash per-screen. (#85697)
* gdk/x11/gdkxid.c (gdk_xid_table_lookup_for_display):
Remove a bit of unecessary code.
Diffstat (limited to 'gdk/x11/gdkxid.c')
-rw-r--r-- | gdk/x11/gdkxid.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gdk/x11/gdkxid.c b/gdk/x11/gdkxid.c index 751cf50eb..1150e66fd 100644 --- a/gdk/x11/gdkxid.c +++ b/gdk/x11/gdkxid.c @@ -62,11 +62,8 @@ _gdk_xid_table_remove (GdkDisplay *display, display_x11 = GDK_DISPLAY_X11 (display); - if (!display_x11->xid_ht) - display_x11->xid_ht = g_hash_table_new ((GHashFunc) gdk_xid_hash, - (GEqualFunc) gdk_xid_equal); - - g_hash_table_remove (display_x11->xid_ht, &xid); + if (display_x11->xid_ht) + g_hash_table_remove (display_x11->xid_ht, &xid); } /** |