[gtk+/refactor] tests/testselection.c: Use accessor functions to access GtkWidget
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/refactor] tests/testselection.c: Use accessor functions to access GtkWidget
- Date: Sun, 15 Aug 2010 22:40:50 +0000 (UTC)
commit 075c33191b98ed1f997aa7a14f61a5a26e809e6c
Author: Javier Jardón <jjardon gnome org>
Date: Mon Aug 16 00:32:44 2010 +0200
tests/testselection.c: Use accessor functions to access GtkWidget
tests/testselection.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/testselection.c b/tests/testselection.c
index 77ac345..ff7a99c 100644
--- a/tests/testselection.c
+++ b/tests/testselection.c
@@ -152,7 +152,7 @@ selection_toggled (GtkWidget *widget)
{
if (have_selection)
{
- if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) == widget->window)
+ if (gdk_selection_owner_get (GDK_SELECTION_PRIMARY) == gtk_widget_get_window (widget))
gtk_selection_owner_set (NULL, GDK_SELECTION_PRIMARY,
GDK_CURRENT_TIME);
have_selection = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]