diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-07-13 00:11:39 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:50 +0200 |
commit | cbbffa18f848d1b741ab5f69c53ae77343a9ebb6 (patch) | |
tree | bd4c2451b84d8f3bca610782dc416d460f1d8d80 /gtk/gtktestutils.c | |
parent | 57d870ac5b48ed0d4c15eb046728431c84fc935a (diff) | |
download | gtk+-cbbffa18f848d1b741ab5f69c53ae77343a9ebb6.tar.gz |
Add _gtk_spin_button_get_panel private function
It's needed in gtktestutils.c
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r-- | gtk/gtktestutils.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index e84d487ee0..3a76d6bae8 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -22,6 +22,7 @@ #include "config.h" #include <gtk/gtk.h> +#include "gtkspinbutton.h" #include <locale.h> #include <string.h> @@ -189,14 +190,18 @@ gtk_test_spin_button_click (GtkSpinButton *spinner, guint button, gboolean upwards) { + GdkWindow *panel; gboolean b1res = FALSE, b2res = FALSE; - if (spinner->panel) + + panel = _gtk_spin_button_get_panel (spinner); + + if (panel) { gint width, height, pos; - gdk_drawable_get_size (spinner->panel, &width, &height); + gdk_drawable_get_size (panel, &width, &height); pos = upwards ? 0 : height - 1; - b1res = gdk_test_simulate_button (spinner->panel, width - 1, pos, button, 0, GDK_BUTTON_PRESS); - b2res = gdk_test_simulate_button (spinner->panel, width - 1, pos, button, 0, GDK_BUTTON_RELEASE); + 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); } return b1res && b2res; } |