[gnome-settings-daemon/wip/benzea/cleanups-and-small-fixes: 51/51] xsettings: Use X11 specific GDK API to fix compile time warnings
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/benzea/cleanups-and-small-fixes: 51/51] xsettings: Use X11 specific GDK API to fix compile time warnings
- Date: Tue, 26 Feb 2019 10:55:58 +0000 (UTC)
commit 68cd6c78d21aafa9dd1a24e03f4d71bb37e08dac
Author: Benjamin Berg <bberg redhat com>
Date: Tue Feb 26 11:48:49 2019 +0100
xsettings: Use X11 specific GDK API to fix compile time warnings
Use gdk_x11_screen_get_screen_number rather than the deprecated
gdk_screen_get_number.
plugins/xsettings/gsd-xsettings-manager.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/xsettings/gsd-xsettings-manager.c b/plugins/xsettings/gsd-xsettings-manager.c
index 7e8ee9ef..3b1ebc3a 100644
--- a/plugins/xsettings/gsd-xsettings-manager.c
+++ b/plugins/xsettings/gsd-xsettings-manager.c
@@ -1051,7 +1051,7 @@ setup_xsettings_managers (GsdXSettingsManager *manager)
display = gdk_display_get_default ();
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");
@@ -1060,7 +1060,7 @@ setup_xsettings_managers (GsdXSettingsManager *manager)
terminated = FALSE;
manager->manager = xsettings_manager_new (gdk_x11_display_get_xdisplay (display),
- gdk_screen_get_number (gdk_screen_get_default ()),
+ gdk_x11_screen_get_screen_number (gdk_screen_get_default
()),
terminate_cb,
&terminated);
if (! manager->manager) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]