diff options
Diffstat (limited to 'gtk/gtktestutils.c')
-rw-r--r-- | gtk/gtktestutils.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gtk/gtktestutils.c b/gtk/gtktestutils.c index ab9e267f0c..dac8f1daec 100644 --- a/gtk/gtktestutils.c +++ b/gtk/gtktestutils.c @@ -18,10 +18,6 @@ * Boston, MA 02111-1307, USA. */ -/* need to get the prototypes of all get_type functions */ -#undef GTK_DISABLE_DEPRECATED -/* Need to get GDK_WINDOW_OBJECT */ -#undef GDK_DISABLE_DEPRECATED #include "config.h" @@ -92,13 +88,13 @@ test_find_widget_input_windows (GtkWidget *widget, GSList *matches = NULL; gpointer udata; gdk_window_get_user_data (widget->window, &udata); - if (udata == widget && (!input_only || (GDK_IS_WINDOW (widget->window) && GDK_WINDOW_OBJECT (widget->window)->input_only))) + if (udata == widget && (!input_only || (GDK_IS_WINDOW (widget->window) && gdk_window_is_input_only (GDK_WINDOW (widget->window))))) matches = g_slist_prepend (matches, widget->window); children = gdk_window_get_children (gtk_widget_get_parent_window (widget)); for (node = children; node; node = node->next) { gdk_window_get_user_data (node->data, &udata); - if (udata == widget && (!input_only || (GDK_IS_WINDOW (node->data) && GDK_WINDOW_OBJECT (node->data)->input_only))) + if (udata == widget && (!input_only || (GDK_IS_WINDOW (node->data) && gdk_window_is_input_only (GDK_WINDOW (node->data))))) matches = g_slist_prepend (matches, node->data); } return g_slist_reverse (matches); |