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



commit e8a0b73717c96726357e633f1ea64f7b7726ac4a
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 acf1aff..250793a 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]