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



commit 3d301c59dec3aa005d5dcf6701b263fbc64a114e
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]