summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2011-01-04 02:36:45 +0100
committerCarlos Garnacho <carlosg@gnome.org>2011-01-04 03:06:22 +0100
commit80e115331cfe3f31a0e6e3810fc5885409996aee (patch)
treee48580dcad4e277e0661124aa179876376e889e7 /gtk/gtkinvisible.c
parent7b3de2d5529c7902318130a5a23247b841c0c4b1 (diff)
downloadgtk+-80e115331cfe3f31a0e6e3810fc5885409996aee.tar.gz
GtkInvisible: Avoid chaining up in ::style-updated
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index 55baa8412d..7003a183f0 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -45,8 +45,7 @@ enum {
static void gtk_invisible_destroy (GtkWidget *widget);
static void gtk_invisible_realize (GtkWidget *widget);
-static void gtk_invisible_style_set (GtkWidget *widget,
- GtkStyle *previous_style);
+static void gtk_invisible_style_updated (GtkWidget *widget);
static void gtk_invisible_show (GtkWidget *widget);
static void gtk_invisible_size_allocate (GtkWidget *widget,
GtkAllocation *allocation);
@@ -75,7 +74,7 @@ gtk_invisible_class_init (GtkInvisibleClass *class)
gobject_class = (GObjectClass*) class;
widget_class->realize = gtk_invisible_realize;
- widget_class->style_set = gtk_invisible_style_set;
+ widget_class->style_updated = gtk_invisible_style_updated;
widget_class->show = gtk_invisible_show;
widget_class->size_allocate = gtk_invisible_size_allocate;
widget_class->destroy = gtk_invisible_destroy;
@@ -250,13 +249,10 @@ gtk_invisible_realize (GtkWidget *widget)
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
-gtk_invisible_style_set (GtkWidget *widget,
- GtkStyle *previous_style)
+gtk_invisible_style_updated (GtkWidget *widget)
{
/* Don't chain up to parent implementation */
}