summaryrefslogtreecommitdiff
path: root/gtk/gtktreeitem.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-08-08 20:31:45 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-08-08 20:31:45 +0000
commit4139d6fc64e08b2325f9ca4b4f4034e77618ee8d (patch)
treeb8e0d56652a227e78a1950eb23d7967e6fb4d530 /gtk/gtktreeitem.c
parent54b231b03444cba5c5077c7b844e34373b666176 (diff)
downloadgdk-pixbuf-4139d6fc64e08b2325f9ca4b4f4034e77618ee8d.tar.gz
Honor tree->view_lines. (gtk-guy-990611-3.patch: Guy Harris
Wed Aug 11 01:04:57 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtktreeitem.c (gtk_tree_item_draw_lines): Honor tree->view_lines. (gtk-guy-990611-3.patch: Guy Harris <guy@netapp.com>) * gtk/Makefile.am (install-data-local): Solaris apparently has various troubles with ln -f; use rm first instead. (gtk-guy-990611-2.patch: Guy Harris <guy@netapp.com>) * gdk/gdkproperty.c (gdk_property_get): Fix assumption that format 32 => sizeof(item) == 4. It really is sizeof(long).
Diffstat (limited to 'gtk/gtktreeitem.c')
-rw-r--r--gtk/gtktreeitem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/gtktreeitem.c b/gtk/gtktreeitem.c
index 1324819ce..da2753eb4 100644
--- a/gtk/gtktreeitem.c
+++ b/gtk/gtktreeitem.c
@@ -583,6 +583,9 @@ gtk_tree_item_draw_lines (GtkWidget *widget)
item = GTK_TREE_ITEM(widget);
tree = GTK_TREE(widget->parent);
+ if (!tree->view_line)
+ return;
+
/* draw vertical line */
lx1 = item->pixmaps_box->allocation.width;
lx1 = lx2 = ((lx1 / 2) + (lx1 % 2) +
@@ -645,6 +648,12 @@ gtk_tree_item_paint (GtkWidget *widget,
g_return_if_fail (GTK_IS_TREE_ITEM (widget));
g_return_if_fail (area != NULL);
+ /* FIXME: We should honor tree->view_mode, here - I think
+ * the desired effect is that when the mode is VIEW_ITEM,
+ * only the subitem is drawn as selected, not the entire
+ * line. (Like the way that the tree in Windows Explorer
+ * works).
+ */
if (GTK_WIDGET_DRAWABLE (widget))
{
bin = GTK_BIN (widget);