[gnome-panel/gtk3] panel: focus-line-width is not needed when drawing ButtonWidget



commit 8a942d16378f62015f302357e0e5b6f61b5713b3
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Feb 1 00:34:05 2011 +0100

    panel: focus-line-width is not needed when drawing ButtonWidget

 gnome-panel/button-widget.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-panel/button-widget.c b/gnome-panel/button-widget.c
index 0d8826f..9c2fbe7 100644
--- a/gnome-panel/button-widget.c
+++ b/gnome-panel/button-widget.c
@@ -416,13 +416,12 @@ button_widget_draw (GtkWidget *widget,
 	}
 
 	if (gtk_widget_has_focus (widget)) {
-		gint focus_width, focus_pad;
+		gint focus_pad;
 
                 gtk_style_context_save (context);
                 gtk_style_context_set_state (context, state_flags);
 
 		gtk_widget_style_get (widget,
-				      "focus-line-width", &focus_width,
 				      "focus-padding", &focus_pad,
 				      NULL);
 		x = focus_pad;



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