From 50b2f0f2ece900761d30400dc9203384039382f8 Mon Sep 17 00:00:00 2001 From: Jan Ziak <0xe2.0x9a.0x9b@gmail.com> Date: Sat, 7 Nov 2020 01:05:36 +0100 Subject: Fix compiler warnings This patch fixes some (not all) warnings printed by GCC. --- plugins/actions/actions.c | 2 +- plugins/systray/systray.c | 2 +- plugins/windowmenu/windowmenu.c | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins') diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c index eb3d6698..9eb523cd 100644 --- a/plugins/actions/actions.c +++ b/plugins/actions/actions.c @@ -894,7 +894,7 @@ actions_plugin_action_dbus_xfsm (const gchar *method, { retval = g_dbus_proxy_call_sync (proxy, method, NULL, - G_DBUS_PROXY_FLAGS_NONE, + G_DBUS_CALL_FLAGS_NONE, -1, NULL, error); diff --git a/plugins/systray/systray.c b/plugins/systray/systray.c index e758aa53..96be1e19 100644 --- a/plugins/systray/systray.c +++ b/plugins/systray/systray.c @@ -213,7 +213,7 @@ systray_plugin_orientation_changed (XfcePanelPlugin *panel_plugin, GdkColor success; context = gtk_widget_get_style_context (GTK_WIDGET (plugin->systray_box)); - gtk_style_context_get_color (context, GTK_STATE_NORMAL, &rgba); + gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &rgba); color.pixel = 0; color.red = rgba.red * G_MAXUSHORT; diff --git a/plugins/windowmenu/windowmenu.c b/plugins/windowmenu/windowmenu.c index ab0a40e9..62f10fea 100644 --- a/plugins/windowmenu/windowmenu.c +++ b/plugins/windowmenu/windowmenu.c @@ -1174,7 +1174,6 @@ window_menu_plugin_menu_new (WindowMenuPlugin *plugin) WnckWindow *window; PangoFontDescription *italic, *bold; gint urgent_windows = 0; - gboolean has_windows; gboolean is_empty = TRUE; guint n_workspaces = 0; const gchar *name = NULL; @@ -1227,7 +1226,7 @@ window_menu_plugin_menu_new (WindowMenuPlugin *plugin) is_empty = FALSE; } - for (li = windows, has_windows = FALSE; li != NULL; li = li->next) + for (li = windows; li != NULL; li = li->next) { window = WNCK_WINDOW (li->data); @@ -1251,9 +1250,6 @@ window_menu_plugin_menu_new (WindowMenuPlugin *plugin) gtk_menu_shell_append (GTK_MENU_SHELL (menu), mi); gtk_widget_show (mi); - /* this workspace is not empty */ - has_windows = TRUE; - /* menu is not empty anymore */ is_empty = FALSE; -- cgit v1.2.1