summaryrefslogtreecommitdiff
path: root/cpufreq/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2016-03-30 17:55:45 -0400
committerlukefromdc <[email protected]>2016-03-30 17:55:45 -0400
commit67159afe05b87f21b641f71f3a8b2fb7d109f721 (patch)
treea955cd5439d9aeff40a6e20f8051ea4032199fa6 /cpufreq/src
parent61b1b5d5417e867318b5afc4ea65733f25b5ad43 (diff)
downloadmate-applets-67159afe05b87f21b641f71f3a8b2fb7d109f721.tar.bz2
mate-applets-67159afe05b87f21b641f71f3a8b2fb7d109f721.tar.xz
GTK 3.20 cpufreq: fix themes clipping units label
Stop BlackMATE, possibly other themes from cutting off the end of the units label and get rid of an #1f block for GTK 3.19 at the same time. GTK 3.19 seemed to pad the end of this label a bit, not so with released GTK 3.20.
Diffstat (limited to 'cpufreq/src')
-rw-r--r--cpufreq/src/cpufreq-applet.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 10ed6aad..52ecad94 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -334,12 +334,7 @@ cpufreq_applet_get_max_label_width (CPUFreqApplet *applet)
label = gtk_label_new (freq_text);
#if GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_get_preferred_width (applet->label, &label_width, NULL);
-
-#if GTK_CHECK_VERSION (3, 19, 0)
- width = MAX (width, label_width)-2;
-#else
- width = MAX (width, label_width);
-#endif
+ width = MAX (width, label_width);
#endif
#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_widget_size_request (label, &req);