From 9bf73874d45075aad80303e9c0ee96cdc9f3c450 Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 2 Jun 2014 22:42:37 +0200 Subject: 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 --- battstat/battstat_applet.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'battstat') 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 ); -- cgit v1.2.1