diff options
author | ZenWalker <[email protected]> | 2017-07-17 01:03:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-27 15:33:35 +0200 |
commit | 39fa8f54b18ee53030344cb7e2a898cb12f93d59 (patch) | |
tree | fa2059e28dc04dfdd4b5d3594edab2be88706a53 /plugins/xsettings | |
parent | ef85d5b77978fd6f9c927ab2b3638b07301eb657 (diff) | |
download | mate-settings-daemon-39fa8f54b18ee53030344cb7e2a898cb12f93d59.tar.bz2 mate-settings-daemon-39fa8f54b18ee53030344cb7e2a898cb12f93d59.tar.xz |
avoid deprecated gdk_screen_get_number
Diffstat (limited to 'plugins/xsettings')
-rw-r--r-- | plugins/xsettings/msd-xsettings-manager.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/xsettings/msd-xsettings-manager.c b/plugins/xsettings/msd-xsettings-manager.c index 445be61..b88e71f 100644 --- a/plugins/xsettings/msd-xsettings-manager.c +++ b/plugins/xsettings/msd-xsettings-manager.c @@ -415,7 +415,7 @@ update_property (GString *props, const gchar* key, const gchar* value) needle_len = strlen (needle); if (g_str_has_prefix (props->str, needle)) found = props->str; - else + else found = strstr (props->str, needle); if (found) { @@ -652,7 +652,7 @@ setup_xsettings_managers (MateXSettingsManager *manager) n_screens = gdk_display_get_n_screens (display); res = xsettings_manager_check_running (gdk_x11_display_get_xdisplay (display), - gdk_screen_get_number (gdk_screen_get_default ())); + gdk_x11_screen_get_screen_number (gdk_screen_get_default ())); if (res) { g_warning ("You can only run one xsettings manager at a time; exiting"); return FALSE; @@ -667,7 +667,7 @@ setup_xsettings_managers (MateXSettingsManager *manager) screen = gdk_display_get_screen (display, i); manager->priv->managers [i] = xsettings_manager_new (gdk_x11_display_get_xdisplay (display), - gdk_screen_get_number (screen), + gdk_x11_screen_get_screen_number (screen), terminate_cb, &terminated); if (! manager->priv->managers [i]) { |