diff options
author | infirit <[email protected]> | 2015-08-03 21:00:00 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-03 21:00:00 +0200 |
commit | eb03540f077e40956544234451975001ab2fa4f0 (patch) | |
tree | 2e78b75750500c5a77d5099029a3dc23494a2423 /maximus/xutils.c | |
parent | 413b98a848a16de0b61479eb12fa5e3abb28506d (diff) | |
download | mate-netbook-eb03540f077e40956544234451975001ab2fa4f0.tar.bz2 mate-netbook-eb03540f077e40956544234451975001ab2fa4f0.tar.xz |
xutils: We can use gdk_display_get_default in both Gtk versions
Diffstat (limited to 'maximus/xutils.c')
-rw-r--r-- | maximus/xutils.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/maximus/xutils.c b/maximus/xutils.c index b082ced..1ca894a 100644 --- a/maximus/xutils.c +++ b/maximus/xutils.c @@ -43,11 +43,7 @@ _wnck_error_trap_push (void) int _wnck_error_trap_pop (void) { -#if GTK_CHECK_VERSION (3, 0, 0) XSync (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), False); -#else - XSync (gdk_display, False); -#endif return gdk_error_trap_pop (); } @@ -82,11 +78,7 @@ _wnck_get_wmclass (Window xwindow, ch.res_name = NULL; ch.res_class = NULL; -#if GTK_CHECK_VERSION (3, 0, 0) XGetClassHint (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), -#else - XGetClassHint (gdk_display, -#endif xwindow, &ch); |