mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
tests/testsocket.c: Use accessor functions to access GtkWidget
This commit is contained in:
parent
07e38c51e8
commit
b012f0f930
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user