From 877423a8810cbcc7e370b617a1596447cd6b6f95 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 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; -- cgit v1.2.1