diff options
author | Stefano Karapetsas <[email protected]> | 2012-12-23 11:14:36 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-12-23 11:14:36 -0800 |
commit | 3ec2cb1ade8ed91ed472091adcc592485dc49f4d (patch) | |
tree | 122f234160898266040a89a6767871856bd607c9 /eel/eel-art-gtk-extensions.c | |
parent | 8379b1dc107c9e0daf31ef1b654c9ab44d9bac23 (diff) | |
parent | c598aa7e65d9e370c63f883acbbb6504044c2531 (diff) | |
download | caja-3ec2cb1ade8ed91ed472091adcc592485dc49f4d.tar.bz2 caja-3ec2cb1ade8ed91ed472091adcc592485dc49f4d.tar.xz |
Merge pull request #65 from jasmineaura/develop
Most of remaining deprecations, some cleanups, and a leak fix
Diffstat (limited to 'eel/eel-art-gtk-extensions.c')
-rw-r--r-- | eel/eel-art-gtk-extensions.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/eel/eel-art-gtk-extensions.c b/eel/eel-art-gtk-extensions.c index 09f6d9d5..59963583 100644 --- a/eel/eel-art-gtk-extensions.c +++ b/eel/eel-art-gtk-extensions.c @@ -90,13 +90,8 @@ eel_gdk_window_get_bounds (GdkWindow *gdk_window) gdk_window_get_position (gdk_window, &bounds.x0, &bounds.y0); -#if GTK_CHECK_VERSION(3, 0, 0) width = gdk_window_get_width(gdk_window); height = gdk_window_get_height(gdk_window); -#else - gdk_drawable_get_size (gdk_window, &width, &height); -#endif - bounds.x1 = bounds.x0 + width; bounds.y1 = bounds.y0 + height; @@ -128,12 +123,8 @@ eel_gdk_window_get_screen_relative_bounds (GdkWindow *gdk_window) return eel_irect_empty; } -#if GTK_CHECK_VERSION(3, 0, 0) width = gdk_window_get_width(gdk_window); height = gdk_window_get_height(gdk_window); -#else - gdk_drawable_get_size(gdk_window, &width, &height); -#endif screen_bounds.x1 = screen_bounds.x0 + width; screen_bounds.y1 = screen_bounds.y0 + height; @@ -321,12 +312,8 @@ eel_gdk_window_get_dimensions (GdkWindow *gdk_window) g_return_val_if_fail (gdk_window != NULL, eel_dimensions_empty); -#if GTK_CHECK_VERSION(3, 0, 0) dimensions.width = gdk_window_get_width(gdk_window); dimensions.height = gdk_window_get_height(gdk_window); -#else - gdk_drawable_get_size (gdk_window, &dimensions.width, &dimensions.height); -#endif return dimensions; } |