From ab30a02e5f48d3fb3f8bf152941056d84305ddbe Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 8 Mar 1998 21:47:14 +0000 Subject: - Show selection correctly when starting selection with arrows Sun Mar 8 15:53:33 1998 Owen Taylor * gtk/gtktext.c: - Show selection correctly when starting selection with arrows - Display pixmap background only when not editable - Redraw focus area more carefully to prevent flashing (and make style of drawing consistent with Entry) * gtk/gtktreeitem.c: ref colormaps for pixmap by colormap storage. * gtk/gtkrc.c: Store a separate style for each RcStyle for each colormap, so we can handle background pixmaps correctly, which need to be per-colormap. (Leaks colormaps...) Parse text color style entries correctly. * gtk/testgtk.c: insert text without fg color gtk/testgtkrc: move "*" after rest, so the other class styles take effect * gdk/gdkwindow.c gdk/gdk.c gdk/gdkprivate.h: Send DND events safely, in case drop window disappears. (Performance hit because XSync()'s are necessary) * gdk/gdk.h gdk/gdkpixmap.c: Added gdk_pixmap_colormap_create_from_xpm[_d] to allow creating pixmaps from xpm's before you have a GdkWindow. --- gtk/gtktreeitem.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk/gtktreeitem.c') diff --git a/gtk/gtktreeitem.c b/gtk/gtktreeitem.c index ed607780d3..328d52d141 100644 --- a/gtk/gtktreeitem.c +++ b/gtk/gtktreeitem.c @@ -388,6 +388,8 @@ gtk_tree_item_add_pixmaps (GtkTreeItem *tree_item) pixmap_node = g_new (GtkTreePixmaps, 1); pixmap_node->colormap = colormap; + gdk_colormap_ref (colormap); + pixmap_node->refcount = 1; /* create pixmaps for plus icon */ @@ -424,6 +426,7 @@ gtk_tree_item_remove_pixmaps (GtkTreeItem *tree_item) if (--pixmap_node->refcount == 0) { + gdk_colormap_unref (pixmap_node->colormap); gdk_pixmap_unref (pixmap_node->pixmap_plus); gdk_bitmap_unref (pixmap_node->mask_plus); gdk_pixmap_unref (pixmap_node->pixmap_minus); -- cgit v1.2.1