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

This commit is contained in:
Javier Jardón 2010-08-16 00:32:28 +02:00
parent 07e38c51e8
commit b012f0f930

View File

@ -286,7 +286,8 @@ grab_window_toggled (GtkToggleButton *button,
{ {
int status; int status;
status = gdk_keyboard_grab (widget->window, FALSE, GDK_CURRENT_TIME); status = gdk_keyboard_grab (gtk_widget_get_window (widget),
FALSE, GDK_CURRENT_TIME);
if (status != GDK_GRAB_SUCCESS) if (status != GDK_GRAB_SUCCESS)
g_warning ("Could not grab keyboard! (%s)", grab_string (status)); g_warning ("Could not grab keyboard! (%s)", grab_string (status));