[gtk+] gtk/gtkplug-x11.c: Use accessor functions to access GtkWidget



commit f25ad7899af6aa1b3bf845cafac2eb562f366fcc
Author: Javier Jardón <jjardon gnome org>
Date:   Sun Aug 15 17:30:40 2010 +0200

    gtk/gtkplug-x11.c: Use accessor functions to access GtkWidget

 gtk/gtkplug-x11.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkplug-x11.c b/gtk/gtkplug-x11.c
index f753493..b101ce8 100644
--- a/gtk/gtkplug-x11.c
+++ b/gtk/gtkplug-x11.c
@@ -56,25 +56,25 @@ static void xembed_set_info            (GdkWindow     *window,
 GdkNativeWindow
 _gtk_plug_windowing_get_id (GtkPlug *plug)
 {
-  return GDK_WINDOW_XWINDOW (GTK_WIDGET (plug)->window);
+  return GDK_WINDOW_XWINDOW (gtk_widget_get_window (GTK_WIDGET (plug)));
 }
 
 void
 _gtk_plug_windowing_realize_toplevel (GtkPlug *plug)
 {
-  xembed_set_info (GTK_WIDGET (plug)->window, 0);
+  xembed_set_info (gtk_widget_get_window (GTK_WIDGET (plug)), 0);
 }
 
 void
 _gtk_plug_windowing_map_toplevel (GtkPlug *plug)
 {
-  xembed_set_info (GTK_WIDGET (plug)->window, XEMBED_MAPPED);
+  xembed_set_info (gtk_widget_get_window (GTK_WIDGET (plug)), XEMBED_MAPPED);
 }
 
 void
 _gtk_plug_windowing_unmap_toplevel (GtkPlug *plug)
 {
-  xembed_set_info (GTK_WIDGET (plug)->window, 0);
+  xembed_set_info (gtk_widget_get_window (GTK_WIDGET (plug)), 0);
 }
 
 void



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