From aaee298197616da5063037973a954654f0bce11e Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Tue, 10 Jan 2017 00:55:36 -0500 Subject: 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. --- cpufreq/src/cpufreq-applet.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpufreq/src/cpufreq-applet.c') 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; } -- cgit v1.2.1