[gnome-panel] panel-action-protocol: fix sign-compare warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-action-protocol: fix sign-compare warnings
- Date: Mon, 17 Sep 2018 14:58:00 +0000 (UTC)
commit 36eb2ec626778810b6be379f815eb6d53d5c2272
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Sep 17 15:22:58 2018 +0300
panel-action-protocol: fix sign-compare warnings
gnome-panel/panel-action-protocol.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/gnome-panel/panel-action-protocol.c b/gnome-panel/panel-action-protocol.c
index 06ff85118..5892475de 100644
--- a/gnome-panel/panel-action-protocol.c
+++ b/gnome-panel/panel-action-protocol.c
@@ -121,6 +121,7 @@ panel_action_protocol_filter (GdkXEvent *gdk_xevent,
GdkScreen *screen;
GdkDisplay *display;
XEvent *xevent = (XEvent *) gdk_xevent;
+ Atom atom;
if (xevent->type != ClientMessage)
return GDK_FILTER_CONTINUE;
@@ -137,11 +138,13 @@ panel_action_protocol_filter (GdkXEvent *gdk_xevent,
if (window != gdk_screen_get_root_window (screen))
return GDK_FILTER_CONTINUE;
- if (xevent->xclient.data.l [0] == atom_gnome_panel_action_main_menu)
+ atom = xevent->xclient.data.l[0];
+
+ if (atom == atom_gnome_panel_action_main_menu)
panel_action_protocol_main_menu (screen, xevent->xclient.data.l [1]);
- else if (xevent->xclient.data.l [0] == atom_gnome_panel_action_run_dialog)
+ else if (atom == atom_gnome_panel_action_run_dialog)
panel_action_protocol_run_dialog (screen, xevent->xclient.data.l [1]);
- else if (xevent->xclient.data.l [0] == atom_gnome_panel_action_kill_dialog)
+ else if (atom == atom_gnome_panel_action_kill_dialog)
panel_action_protocol_kill_dialog (screen, xevent->xclient.data.l [1]);
else
return GDK_FILTER_CONTINUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]