summaryrefslogtreecommitdiff
path: root/mate-session/msm-gnome.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-18 00:05:00 +0200
committerinfirit <[email protected]>2014-05-20 14:51:21 +0200
commit796701300b69c4b008f92e55cd11cf8edc3497eb (patch)
tree8a65fde1816c0d3f990bfa1e0b29cec9acdb26bc /mate-session/msm-gnome.c
parent1f3832e19b9e40f332999f3622d55a13efcd3b7b (diff)
downloadmate-session-manager-796701300b69c4b008f92e55cd11cf8edc3497eb.tar.bz2
mate-session-manager-796701300b69c4b008f92e55cd11cf8edc3497eb.tar.xz
Use gdk_display* functions for both gtk+2 and gtk+3
The following functions are available in version 2 and 3. gdk_display_get_default GDK_DISPLAY_XDISPLAY gdk_display_get_name gdk_display_get_default
Diffstat (limited to 'mate-session/msm-gnome.c')
-rw-r--r--mate-session/msm-gnome.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/mate-session/msm-gnome.c b/mate-session/msm-gnome.c
index 661d9e3..f92c45e 100644
--- a/mate-session/msm-gnome.c
+++ b/mate-session/msm-gnome.c
@@ -175,11 +175,7 @@ msm_compat_gnome_smproxy_startup (void)
* This has another advantage, since it prevents people from running
* gnome-smproxy in xfce4, which would cause trouble otherwise.
*/
-#if GTK_CHECK_VERSION (3, 0, 0)
dpy = GDK_DISPLAY_XDISPLAY(gdk_display_get_default());
-#else
- dpy = gdk_display;
-#endif
root = RootWindow (dpy, 0);
if (gnome_smproxy_window != None)
@@ -211,13 +207,8 @@ msm_compat_gnome_smproxy_shutdown (void)
if (gnome_smproxy_window != None)
{
-#if GTK_CHECK_VERSION (3, 0, 0)
XDestroyWindow (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), gnome_smproxy_window);
XSync (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), False);
-#else
- XDestroyWindow (gdk_display, gnome_smproxy_window);
- XSync (gdk_display, False);
-#endif
gnome_smproxy_window = None;
}
#if GTK_CHECK_VERSION (3, 0, 0)