[gtk+/wip/matthiasc/gdk-settings: 9/12] quartz: Stop emitting setting events
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gdk-settings: 9/12] quartz: Stop emitting setting events
- Date: Mon, 30 Oct 2017 13:50:35 +0000 (UTC)
commit 627c0ae54901f50ac46ce647797c17e080c76ca9
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Oct 30 09:35:30 2017 -0400
quartz: Stop emitting setting events
Not needed anymore.
gdk/quartz/gdkevents-quartz.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/gdk/quartz/gdkevents-quartz.c b/gdk/quartz/gdkevents-quartz.c
index 707d295..6328128 100644
--- a/gdk/quartz/gdkevents-quartz.c
+++ b/gdk/quartz/gdkevents-quartz.c
@@ -64,26 +64,18 @@ gdk_quartz_ns_notification_callback (CFNotificationCenterRef center,
const void *object,
CFDictionaryRef userInfo)
{
- GdkEvent new_event;
-
- new_event.type = GDK_SETTING;
- new_event.setting.window = gdk_screen_get_root_window (_gdk_screen);
- new_event.setting.send_event = FALSE;
- new_event.setting.action = GDK_SETTING_ACTION_CHANGED;
- new_event.setting.name = NULL;
+ const char *setting = NULL;
/* Translate name */
if (CFStringCompare (name,
CFSTR("AppleNoRedisplayAppearancePreferenceChanged"),
0) == kCFCompareEqualTo)
- new_event.setting.name = "gtk-primary-button-warps-slider";
+ setting = "gtk-primary-button-warps-slider";
- if (!new_event.setting.name)
+ if (!setting)
return;
- gdk_event_put (&new_event);
-
- gdk_display_setting_changed (_gdk_display, new_event.setting.name);
+ gdk_display_setting_changed (_gdk_display, setting);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]