tests/testxinerama.c: Use accessor functions to access GtkWidget

This commit is contained in:
Javier Jardón
2010-08-16 00:31:12 +02:00
parent bd52a8541e
commit c8afa3f000

View File

@ -32,7 +32,7 @@ request (GtkWidget *widget,
gchar *str;
GdkScreen *screen = gtk_widget_get_screen (widget);
gint i = gdk_screen_get_monitor_at_window (screen,
widget->window);
gtk_widget_get_window (widget));
if (i < 0)
str = g_strdup ("<big><span foreground='white' background='black'>Not on a monitor </span></big>");