[gtk+/refactor: 2/96] gtkwindow: use accessor functions to access GtkWidget



commit 68ebec1c469b68075c51bfbf9833b344386da690
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Aug 11 22:02:36 2010 +0200

    gtkwindow: use accessor functions to access GtkWidget

 gtk/gtkwindow.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f2230c9..ea2a22a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4825,8 +4825,8 @@ gtk_window_realize (GtkWidget *widget)
   gdk_window_enable_synchronized_configure (widget->window);
     
   gdk_window_set_user_data (widget->window, window);
-      
-  widget->style = gtk_style_attach (widget->style, widget->window);
+
+  gtk_widget_style_attach (widget);
   gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
   if (window->frame)
     gtk_style_set_background (widget->style, window->frame, GTK_STATE_NORMAL);
@@ -4935,7 +4935,7 @@ gtk_window_size_allocate (GtkWidget     *widget,
   guint border_width;
 
   window = GTK_WINDOW (widget);
-  widget->allocation = *allocation;
+  gtk_widget_set_allocation (widget, allocation);
 
   child = gtk_bin_get_child (&(window->bin));
   if (child && gtk_widget_get_visible (child))



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