summaryrefslogtreecommitdiff
path: root/gtk/gtktestutils.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-20 16:44:06 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:44 +0200
commite25208825fe8c18e3367301d15a3c269064cb900 (patch)
tree28105e8212bdb2e330fab82cae8080fe993e8cd8 /gtk/gtktestutils.c
parentf0c067063cc4532c1a3ac66f442cc083ada0e0a5 (diff)
downloadgtk+-e25208825fe8c18e3367301d15a3c269064cb900.tar.gz
testutils: Get rid of gdk_drawable_get_size() usage
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r--gtk/gtktestutils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c
index cedb5e7c46..c2306feccb 100644
--- a/gtk/gtktestutils.c
+++ b/gtk/gtktestutils.c
@@ -201,9 +201,9 @@ gtk_test_spin_button_click (GtkSpinButton *spinner,
if (panel)
{
- gint width, height, pos;
- gdk_drawable_get_size (panel, &width, &height);
- pos = upwards ? 0 : height - 1;
+ gint width, pos;
+ width = gdk_window_get_width (panel);
+ pos = upwards ? 0 : gdk_window_get_height (panel) - 1;
b1res = gdk_test_simulate_button (panel, width - 1, pos, button, 0, GDK_BUTTON_PRESS);
b2res = gdk_test_simulate_button (panel, width - 1, pos, button, 0, GDK_BUTTON_RELEASE);
}