diff options
author | infirit <[email protected]> | 2014-06-02 22:42:37 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-06-02 22:42:37 +0200 |
commit | 9bf73874d45075aad80303e9c0ee96cdc9f3c450 (patch) | |
tree | 1be1670be2ea9e872cd4c444652ff697b2753726 /stickynotes/stickynotes.c | |
parent | 53a1fe800f9f0c90dc298ba228b29852147794bb (diff) | |
download | mate-applets-9bf73874d45075aad80303e9c0ee96cdc9f3c450.tar.bz2 mate-applets-9bf73874d45075aad80303e9c0ee96cdc9f3c450.tar.xz |
Cleanup GTK_CHECK_VERSION and unify where possible
gdk_x11_window_foreign_new_for_display | since 2.24
gdk_window_get_width | since 2.24
gdk_window_get_height | since 2.24
gdk_x11_display_get_xdisplay | since 2.2
gdk_window_get_display | since 2.24
gdk_x11_window_foreign_new_for_display | since 2.24
GDK_WINDOW_XID | since always
GDK_SCREEN_XDISPLAY | since always
Diffstat (limited to 'stickynotes/stickynotes.c')
-rw-r--r-- | stickynotes/stickynotes.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/stickynotes/stickynotes.c b/stickynotes/stickynotes.c index 77439795..2a2cad17 100644 --- a/stickynotes/stickynotes.c +++ b/stickynotes/stickynotes.c @@ -54,12 +54,7 @@ set_icon_geometry (GdkWindow *window, int height) { gulong data[4]; -#if GTK_CHECK_VERSION (3, 0, 0) Display *dpy = gdk_x11_display_get_xdisplay (gdk_window_get_display (window)); -#else - Display *dpy = gdk_x11_drawable_get_xdisplay (window); -#endif - data[0] = x; data[1] = y; data[2] = width; @@ -68,11 +63,7 @@ set_icon_geometry (GdkWindow *window, XChangeProperty (dpy, GDK_WINDOW_XID (window), gdk_x11_get_xatom_by_name_for_display ( -#if GTK_CHECK_VERSION (3, 0, 0) gdk_window_get_display (window), -#else - gdk_drawable_get_display (window), -#endif "_NET_WM_ICON_GEOMETRY"), XA_CARDINAL, 32, PropModeReplace, (guchar *)&data, 4); |