[gnome-panel] clock: don't use deprecated style properties



commit e67ac2a0b4bba8cc5480d297c466dfdee2666bab
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sun Dec 13 15:59:04 2015 +0200

    clock: don't use deprecated style properties

 applets/clock/clock.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index daa29df..a9bf5aa 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -198,8 +198,6 @@ calculate_minimum_width (GtkWidget   *widget,
        PangoContext *pango_context;
        PangoLayout  *layout;
        int           width, height;
-       int           focus_width = 0;
-       int           focus_pad = 0;
        GtkStyleContext *style_context;
        GtkStateFlags    state;
        GtkBorder        padding;
@@ -216,12 +214,8 @@ calculate_minimum_width (GtkWidget   *widget,
        state = gtk_widget_get_state_flags (widget);
        style_context = gtk_widget_get_style_context (widget);
        gtk_style_context_get_padding (style_context, state, &padding);
-       gtk_style_context_get_style (style_context,
-                                    "focus-line-width", &focus_width,
-                                    "focus-padding", &focus_pad,
-                                    NULL);
 
-       width += 2 * (focus_width + focus_pad) + padding.left + padding.right;
+       width += padding.left + padding.right;
 
        return width;
 }


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