forked from AuroraMiddleware/gtk
testutils: Get rid of gdk_drawable_get_size() usage
This commit is contained in:
parent
f0c067063c
commit
e25208825f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user