[gnome-panel] panel-toplevel: don't use deprecated style properties
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-toplevel: don't use deprecated style properties
- Date: Sat, 19 Dec 2015 22:03:53 +0000 (UTC)
commit e56b20d2b8ee179596449d293b671380e97d1d70
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Dec 13 16:05:09 2015 +0200
panel-toplevel: don't use deprecated style properties
gnome-panel/panel-toplevel.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 8f5560e..3550fbc 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -2251,8 +2251,6 @@ calculate_minimum_height (GtkWidget *widget,
PangoContext *pango_context;
PangoFontMetrics *metrics;
GtkBorder padding;
- int focus_width = 0;
- int focus_pad = 0;
int ascent;
int descent;
int thickness;
@@ -2271,16 +2269,12 @@ calculate_minimum_height (GtkWidget *widget,
pango_font_metrics_unref (metrics);
gtk_style_context_get_padding (style_context, state, &padding);
- gtk_widget_style_get (widget,
- "focus-line-width", &focus_width,
- "focus-padding", &focus_pad,
- NULL);
thickness = orientation & PANEL_HORIZONTAL_MASK ?
padding.top + padding.bottom :
padding.left + padding.right;
- return PANGO_PIXELS (ascent + descent) + 2 * (focus_width + focus_pad) + thickness;
+ return PANGO_PIXELS (ascent + descent) + thickness;
}
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]