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 /battstat | |
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 'battstat')
-rw-r--r-- | battstat/battstat_applet.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/battstat/battstat_applet.c b/battstat/battstat_applet.c index 25a83d06..1c9d10c9 100644 --- a/battstat/battstat_applet.c +++ b/battstat/battstat_applet.c @@ -1004,12 +1004,8 @@ copy_gdk_pixmap( GdkPixmap *src, GdkGC *gc ) gint height, width; GdkPixmap *dest; - #if GTK_CHECK_VERSION(3, 0, 0) width = gdk_window_get_width(GDK_WINDOW(src)); height = gdk_window_get_height(GDK_WINDOW(src)); - #else - gdk_drawable_get_size(GDK_DRAWABLE(src), &width, &height); - #endif dest = gdk_pixmap_new( GDK_DRAWABLE( src ), width, height, -1 ); |