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

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

View File

@ -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;