[gnome-panel] free-the-fish: fix build warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] free-the-fish: fix build warnings
- Date: Sat, 26 Sep 2015 22:01:19 +0000 (UTC)
commit 6677b6382f959340ab63ab3d6a729fbaff30bec6
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 27 00:15:55 2015 +0300
free-the-fish: fix build warnings
gnome-panel/free-the-fish.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/gnome-panel/free-the-fish.c b/gnome-panel/free-the-fish.c
index e4f97da..6a5185e 100644
--- a/gnome-panel/free-the-fish.c
+++ b/gnome-panel/free-the-fish.c
@@ -158,15 +158,11 @@ fish_handle_event (GdkEvent *event)
if (fish.hide_mode)
goto out;
- switch (event->type) {
- case GDK_SCROLL:
- case GDK_BUTTON_PRESS:
- case GDK_2BUTTON_PRESS:
- case GDK_3BUTTON_PRESS:
- fish_start_hide_mode ();
- break;
- default:
- break;
+ if (event->type == GDK_SCROLL ||
+ event->type == GDK_BUTTON_PRESS ||
+ event->type == GDK_2BUTTON_PRESS ||
+ event->type == GDK_3BUTTON_PRESS) {
+ fish_start_hide_mode ();
}
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]