[gimp] plug-ins: use gdk_window_get_width/height() on GTK+ >= 2.24
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: use gdk_window_get_width/height() on GTK+ >= 2.24
- Date: Thu, 17 Mar 2011 14:57:21 +0000 (UTC)
commit d7c1788f2cc9292f3151b9df2c9db3c602f28f85
Author: Michael Natterer <mitch gimp org>
Date: Thu Mar 17 15:56:53 2011 +0100
plug-ins: use gdk_window_get_width/height() on GTK+ >= 2.24
plug-ins/common/screenshot.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/screenshot.c b/plug-ins/common/screenshot.c
index 47a7af4..5b016a5 100644
--- a/plug-ins/common/screenshot.c
+++ b/plug-ins/common/screenshot.c
@@ -949,7 +949,12 @@ shoot (GdkScreen *screen)
return -1;
}
+#if GTK_CHECK_VERSION (2, 24, 0)
+ rect.width = gdk_window_get_width (window);
+ rect.height = gdk_window_get_height (window);
+#else
gdk_drawable_get_size (GDK_DRAWABLE (window), &rect.width, &rect.height);
+#endif
gdk_window_get_origin (window, &x, &y);
rect.x = x;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]