summaryrefslogtreecommitdiff
path: root/cpufreq/src
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-01-10 00:55:36 -0500
committerraveit65 <[email protected]>2017-01-14 21:08:28 +0100
commitaaee298197616da5063037973a954654f0bce11e (patch)
tree4e02336500cfc6b7974927722b605fff59738614 /cpufreq/src
parent91032fbd07dee7ecb33113b2a8d52eb401163aa7 (diff)
downloadmate-applets-aaee298197616da5063037973a954654f0bce11e.tar.bz2
mate-applets-aaee298197616da5063037973a954654f0bce11e.tar.xz
CpuFreq: fix warning from GTK_ORIENTABLE
gtk_orientable_get_orientation now throws warnings so remove it. It does not appear to work anyway. Applet tested in a vertical (left side) panel as well as a horizontal one, as long as the vertical panel is wide enough to accept the applet it works and puts the frequency and units on two levels. Puts them on one level in a horizontal panel.
Diffstat (limited to 'cpufreq/src')
-rw-r--r--cpufreq/src/cpufreq-applet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 4600caec..cff868f6 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -394,9 +394,7 @@ cpufreq_applet_get_preferred_width (GtkWidget *widget, gint *minimum_width, gint
gint icon_width;
gtk_widget_get_preferred_width (applet->icon, &icon_width, NULL);
- width = gtk_orientable_get_orientation (GTK_ORIENTABLE (applet->box)) == GTK_ORIENTATION_HORIZONTAL ?
- labels_width + icon_width + 2 :
- MAX (labels_width, icon_width + 2);
+ width = (labels_width + icon_width + 2);
} else {
width = labels_width;
}