changeset 20071:7be8362039f4

only draw line on expanded group headers
author Sean Egan <seanegan@gmail.com>
date Sat, 15 Sep 2007 23:00:54 +0000
parents 669c152c0290
children b4708680299e
files pidgin/gtkcellrendererexpander.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkcellrendererexpander.c	Sat Sep 15 22:43:17 2007 +0000
+++ b/pidgin/gtkcellrendererexpander.c	Sat Sep 15 23:00:54 2007 +0000
@@ -269,7 +269,9 @@
 			    cell_area->x + cell->xpad + (width / 2),
 			    cell_area->y + cell->ypad + (height / 2),
 			    cell->is_expanded ? GTK_EXPANDER_EXPANDED : GTK_EXPANDER_COLLAPSED);
-	gtk_paint_hline (widget->style, window, state, NULL, widget, NULL, 0, widget->allocation.width, cell_area->y + cell_area->height);
+	if (cell->is_expanded)
+		gtk_paint_hline (widget->style, window, state, NULL, widget, NULL, 0, 
+				 widget->allocation.width, cell_area->y + cell_area->height);
 }
 
 static gboolean pidgin_cell_renderer_expander_activate(GtkCellRenderer *r,