summaryrefslogtreecommitdiff
path: root/gtk/gtktreeitem.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-08 21:47:14 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-08 21:47:14 +0000
commitab30a02e5f48d3fb3f8bf152941056d84305ddbe (patch)
tree90c36f53de1d567039152a579f277500a0d5d785 /gtk/gtktreeitem.c
parent85f1364922265a19e99c3fca647f884716589446 (diff)
downloadgtk+-ab30a02e5f48d3fb3f8bf152941056d84305ddbe.tar.gz
- Show selection correctly when starting selection with arrows
Sun Mar 8 15:53:33 1998 Owen Taylor <owt1@cornell.edu> * 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.
Diffstat (limited to 'gtk/gtktreeitem.c')
-rw-r--r--gtk/gtktreeitem.c3
1 files changed, 3 insertions, 0 deletions
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);