[gtk+] tests/testsocket.c: Use accessor functions to access GtkWidget
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] tests/testsocket.c: Use accessor functions to access GtkWidget
- Date: Sun, 22 Aug 2010 17:01:03 +0000 (UTC)
commit b012f0f93017329d47dddc50b0ba7978c518b975
Author: Javier Jardón <jjardon gnome org>
Date: Mon Aug 16 00:32:28 2010 +0200
tests/testsocket.c: Use accessor functions to access GtkWidget
tests/testsocket.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tests/testsocket.c b/tests/testsocket.c
index 103b965..b4ef476 100644
--- a/tests/testsocket.c
+++ b/tests/testsocket.c
@@ -286,7 +286,8 @@ grab_window_toggled (GtkToggleButton *button,
{
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)
g_warning ("Could not grab keyboard! (%s)", grab_string (status));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]