[anjuta/gnome-3-0] libanjuta: Don't draw active tab twice in anjuta-tabber



commit 889af1ef6a9525e2eeb63aa65c99409615438ce9
Author: Johannes Schmid <jhs gnome org>
Date:   Sun Apr 17 16:19:52 2011 +0200

    libanjuta: Don't draw active tab twice in anjuta-tabber

 libanjuta/anjuta-tabber.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libanjuta/anjuta-tabber.c b/libanjuta/anjuta-tabber.c
index e9a0393..ec6edbb 100644
--- a/libanjuta/anjuta-tabber.c
+++ b/libanjuta/anjuta-tabber.c
@@ -514,7 +514,8 @@ anjuta_tabber_draw (GtkWidget* widget, cairo_t* cr)
 	
 	for (child = tabber->priv->children; child != NULL; child = g_list_next (child))
 	{
-		anjuta_tabber_draw_tab (tabber, cr, child, FALSE);
+		if (child != current_tab)
+			anjuta_tabber_draw_tab (tabber, cr, child, FALSE);
 	}
 	anjuta_tabber_draw_tab (tabber, cr, current_tab, TRUE);
 	return GTK_WIDGET_CLASS (anjuta_tabber_parent_class)->draw (widget, cr);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]