From d35be4f923d513591f421abcdfc590a20d439ea7 Mon Sep 17 00:00:00 2001 From: Olivier Duchateau Date: Thu, 12 Oct 2017 19:32:58 +0200 Subject: [PATCH] Fix enum type between GtkOrientation and XfcePanelPluginMode --- panel-plugin/weather.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c index c096795..b25271c 100644 --- a/panel-plugin/weather.c +++ b/panel-plugin/weather.c @@ -2032,11 +2032,9 @@ xfceweather_set_mode(XfcePanelPlugin *panel, XfcePanelPluginMode mode, plugin_data *data) { - data->panel_orientation = xfce_panel_plugin_get_mode(panel); + data->panel_orientation = xfce_panel_plugin_get_orientation(panel); - if (data->panel_orientation == XFCE_PANEL_PLUGIN_MODE_HORIZONTAL || - (data->panel_orientation == XFCE_PANEL_PLUGIN_MODE_DESKBAR && - data->single_row)) { + if (data->panel_orientation == GTK_ORIENTATION_HORIZONTAL) { xfce_hvbox_set_orientation(XFCE_HVBOX(data->alignbox), GTK_ORIENTATION_HORIZONTAL); gtk_misc_set_alignment(GTK_MISC(data->iconimage), 1, 0.5); -- 2.14.1