diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-08-08 20:31:45 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-08-08 20:31:45 +0000 |
commit | 4139d6fc64e08b2325f9ca4b4f4034e77618ee8d (patch) | |
tree | b8e0d56652a227e78a1950eb23d7967e6fb4d530 /gtk | |
parent | 54b231b03444cba5c5077c7b844e34373b666176 (diff) | |
download | gdk-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')
-rw-r--r-- | gtk/Makefile.am | 3 | ||||
-rw-r--r-- | gtk/gtktreeitem.c | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 4b3039d7e..7c7d42144 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -328,7 +328,8 @@ install-data-local: $(mkinstalldirs) $(DESTDIR)$(gtkconfdir) cd $(DESTDIR)$(gtkconfdir) && \ for i in cs hr hu pl sk sl ; do \ - ln -s -f gtkrc.iso-8859-2 gtkrc.$$i ; \ + rm -f gtkrc.$$i ; \ + ln -s gtkrc.iso-8859-2 gtkrc.$$i ; \ done uninstall-local: 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); |