summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-08-11 23:10:10 +0200
committerJavier Jardón <jjardon@gnome.org>2010-08-22 22:56:10 +0200
commit0a3431e8f63590bff1bff1164ed17873397c9bd9 (patch)
tree3bddbeb95672f947e63ea2f5f0c014c554632e56 /gtk/gtkinvisible.c
parent84297150e810b1efbce593179b66654cba515d1a (diff)
downloadgtk+-0a3431e8f63590bff1bff1164ed17873397c9bd9.tar.gz
gtk/gtkinvisible.c: use accessor functions to access GtkWidget
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index 2d8bd65b74..64031547a1 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -232,6 +232,7 @@ static void
gtk_invisible_realize (GtkWidget *widget)
{
GdkWindow *parent;
+ GdkWindow *window;
GdkWindowAttr attributes;
gint attributes_mask;
@@ -252,11 +253,11 @@ gtk_invisible_realize (GtkWidget *widget)
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_NOREDIR;
- widget->window = gdk_window_new (parent, &attributes, attributes_mask);
-
- gdk_window_set_user_data (widget->window, widget);
-
- widget->style = gtk_style_attach (widget->style, widget->window);
+ window = gdk_window_new (parent, &attributes, attributes_mask);
+ gtk_widget_set_window (widget, window);
+ gdk_window_set_user_data (window, widget);
+
+ gtk_widget_style_attach (widget);
}
static void
@@ -275,10 +276,10 @@ gtk_invisible_show (GtkWidget *widget)
static void
gtk_invisible_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation)
+ GtkAllocation *allocation)
{
- widget->allocation = *allocation;
-}
+ gtk_widget_set_allocation (widget, allocation);
+}
static void