summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJan Ziak <0xe2.0x9a.0x9b@gmail.com>2020-11-07 01:05:36 +0100
committerSimon Steinbeiß <ochosi@xfce.org>2020-11-10 11:56:41 +0100
commit50b2f0f2ece900761d30400dc9203384039382f8 (patch)
treec4e019aa483ea8ca7d5e516fba875e4db09a2864 /plugins
parentc1e61a5289d51e0490cd396629b65bce0e8990e7 (diff)
downloadxfce4-panel-50b2f0f2ece900761d30400dc9203384039382f8.tar.gz
Fix compiler warnings
This patch fixes some (not all) warnings printed by GCC.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/actions/actions.c2
-rw-r--r--plugins/systray/systray.c2
-rw-r--r--plugins/windowmenu/windowmenu.c6
3 files changed, 3 insertions, 7 deletions
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;