[gnome-panel] wncklet: don't use deprecated style properties
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] wncklet: don't use deprecated style properties
- Date: Sat, 19 Dec 2015 22:03:48 +0000 (UTC)
commit 41399220197c2bb0d495c33b672466366a09bc9e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Dec 13 16:01:20 2015 +0200
wncklet: don't use deprecated style properties
applets/wncklet/showdesktop.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index 91e98cf..6f67318 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -130,8 +130,6 @@ update_icon (ShowDesktopData *sdd)
GdkPixbuf *scaled;
int icon_size;
GError *error;
- int focus_width = 0;
- int focus_pad = 0;
int thickness = 0;
GtkStyleContext *context;
GtkStateFlags state;
@@ -143,10 +141,6 @@ update_icon (ShowDesktopData *sdd)
state = gtk_widget_get_state_flags (sdd->button);
context = gtk_widget_get_style_context (sdd->button);
gtk_style_context_get_padding (context, state, &padding);
- gtk_style_context_get_style (context,
- "focus-line-width", &focus_width,
- "focus-padding", &focus_pad,
- NULL);
switch (sdd->orient) {
case GTK_ORIENTATION_HORIZONTAL:
@@ -157,7 +151,7 @@ update_icon (ShowDesktopData *sdd)
break;
}
- icon_size = sdd->size - 2 * (focus_width + focus_pad) - thickness;
+ icon_size = sdd->size - thickness;
if (icon_size < 22)
icon_size = 16;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]