[gtk+/wip/chergert/quartz-frame-clock: 132/138] quartz: squash compiler warning about enums
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/chergert/quartz-frame-clock: 132/138] quartz: squash compiler warning about enums
- Date: Thu, 1 Oct 2015 01:37:44 +0000 (UTC)
commit f9395b52f78c2f20c00ce7e6754b55a50a8f003e
Author: Christian Hergert <christian hergert me>
Date: Wed Sep 30 18:25:07 2015 -0700
quartz: squash compiler warning about enums
We don’t care about the other enums, fine to squash the warning.
gdk/quartz/gdkevents-quartz.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 2dc6319..87ee3f3 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -404,7 +404,7 @@ get_window_point_from_screen_point (GdkWindow *window,
static gboolean
is_mouse_button_press_event (NSEventType type)
{
- switch (type)
+ switch ((int)type)
{
case NSLeftMouseDown:
case NSRightMouseDown:
@@ -895,7 +895,7 @@ fill_button_event (GdkWindow *window,
state = get_keyboard_modifiers_from_ns_event (nsevent) |
_gdk_quartz_events_get_current_mouse_modifiers ();
- switch ([nsevent type])
+ switch ((int)[nsevent type])
{
case NSLeftMouseDown:
case NSRightMouseDown:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]