summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2017-01-10 00:55:36 -0500
committermonsta <[email protected]>2017-01-29 16:51:25 +0300
commit877423a8810cbcc7e370b617a1596447cd6b6f95 (patch)
tree04fd1a2a03180e7e9beb9f00002688674299c3b6
parentdb05908ce557daa2814d1a4b3e9fea8823262725 (diff)
downloadmate-applets-877423a8810cbcc7e370b617a1596447cd6b6f95.tar.bz2
mate-applets-877423a8810cbcc7e370b617a1596447cd6b6f95.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.
-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 2f098b9a..2e39d0ee 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -453,9 +453,7 @@ cpufreq_applet_size_request (GtkWidget *widget, GtkRequisition *requisition)
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
GtkRequisition req;