mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 01:31:13 +00:00
quartz: Stop emitting setting events
Not needed anymore.
This commit is contained in:
parent
d3e45cf087
commit
627c0ae549
@ -64,26 +64,18 @@ gdk_quartz_ns_notification_callback (CFNotificationCenterRef center,
|
|||||||
const void *object,
|
const void *object,
|
||||||
CFDictionaryRef userInfo)
|
CFDictionaryRef userInfo)
|
||||||
{
|
{
|
||||||
GdkEvent new_event;
|
const char *setting = NULL;
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
/* Translate name */
|
/* Translate name */
|
||||||
if (CFStringCompare (name,
|
if (CFStringCompare (name,
|
||||||
CFSTR("AppleNoRedisplayAppearancePreferenceChanged"),
|
CFSTR("AppleNoRedisplayAppearancePreferenceChanged"),
|
||||||
0) == kCFCompareEqualTo)
|
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;
|
return;
|
||||||
|
|
||||||
gdk_event_put (&new_event);
|
gdk_display_setting_changed (_gdk_display, setting);
|
||||||
|
|
||||||
gdk_display_setting_changed (_gdk_display, new_event.setting.name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user