[gtk+/refactor: 4/96] gtkwin32embedwidget: use accessor functions to access GtkWidget



commit 4f6ce71b53db790d6ff07fb0e75eb268f745e7e4
Author: Javier Jardón <jjardon gnome org>
Date:   Wed Aug 11 22:04:27 2010 +0200

    gtkwin32embedwidget: use accessor functions to access GtkWidget

 gtk/gtkwin32embedwidget.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c
index c8d892f..56da951 100644
--- a/gtk/gtkwin32embedwidget.c
+++ b/gtk/gtkwin32embedwidget.c
@@ -239,8 +239,8 @@ gtk_win32_embed_widget_realize (GtkWidget *widget)
   /* Enable tab to focus the widget */
   styles = GetWindowLongPtr(GDK_WINDOW_HWND (widget->window), GWL_STYLE);
   SetWindowLongPtrW(GDK_WINDOW_HWND (widget->window), GWL_STYLE, styles | WS_TABSTOP);
-  
-  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);
 }
 
@@ -292,7 +292,7 @@ gtk_win32_embed_widget_size_allocate (GtkWidget     *widget,
   GtkBin    *bin = GTK_BIN (widget);
   GtkWidget *child;
   
-  widget->allocation = *allocation;
+  gtk_widget_set_allocation (widget, allocation);
   
   if (gtk_widget_get_realized (widget))
     gdk_window_move_resize (widget->window,



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