[gtk+/refactor: 96/96] gtk/gtkaboutdialog.c: use accessor functions to access GtkWidget



commit adb29e4398f48f0635f1d47788edadd00e3214be
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Aug 11 23:19:31 2010 +0200

    gtk/gtkaboutdialog.c: use accessor functions to access GtkWidget

 gtk/gtkaboutdialog.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index b16ed8c..2ebda9f 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2010,7 +2010,8 @@ text_view_visibility_notify_event (GtkWidget          *text_view,
     {
       GdkDevice *dev = d->data;
 
-      gdk_window_get_device_position (text_view->window, dev, &wx, &wy, NULL);
+      gdk_window_get_device_position (gtk_widget_get_window (text_view), dev,
+                                      &wx, &wy, NULL);
 
       gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (text_view),
                                              GTK_TEXT_WINDOW_WIDGET,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]