summaryrefslogtreecommitdiff
path: root/gtk/gtkruler.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkruler.c')
-rw-r--r--gtk/gtkruler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkruler.c b/gtk/gtkruler.c
index ae86b0b498..d066775df9 100644
--- a/gtk/gtkruler.c
+++ b/gtk/gtkruler.c
@@ -441,7 +441,8 @@ gtk_ruler_realize (GtkWidget *widget)
gint attributes_mask;
ruler = GTK_RULER (widget);
- GTK_WIDGET_SET_FLAGS (ruler, GTK_REALIZED);
+
+ gtk_widget_set_realized (widget, TRUE);
attributes.window_type = GDK_WINDOW_CHILD;
attributes.x = widget->allocation.x;