summaryrefslogtreecommitdiff
path: root/gtk/gtkexpander.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-03-02 07:16:02 +0100
committerJavier Jardón <jjardon@gnome.org>2010-03-03 20:41:05 +0100
commit16a59ad9129c680833c584768e6a81b2ba365268 (patch)
tree8fb157b75372c73767d658bce9a6070a3d936fe9 /gtk/gtkexpander.c
parent1fe7d3cefd1aeabd6d8cab2a68673bb1f7876988 (diff)
downloadgtk+-16a59ad9129c680833c584768e6a81b2ba365268.tar.gz
Deprecate widget flag: GTK_WIDGET_REALIZED
Use gtk_widget_get_realized() instead https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkexpander.c')
-rw-r--r--gtk/gtkexpander.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index ec8971e465..55fd004f76 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -669,7 +669,7 @@ gtk_expander_size_allocate (GtkWidget *widget,
label_height = 0;
}
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_get_realized (widget))
{
GdkRectangle rect;
@@ -966,7 +966,7 @@ gtk_expander_redraw_expander (GtkExpander *expander)
widget = GTK_WIDGET (expander);
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_get_realized (widget))
gdk_window_invalidate_rect (widget->window, &widget->allocation, FALSE);
}
@@ -1318,7 +1318,7 @@ gtk_expander_animation_timeout (GtkExpander *expander)
GdkRectangle area;
gboolean finish = FALSE;
- if (GTK_WIDGET_REALIZED (expander))
+ if (gtk_widget_get_realized (GTK_WIDGET (expander)))
{
get_expander_bounds (expander, &area);
gdk_window_invalidate_rect (GTK_WIDGET (expander)->window, &area, TRUE);
@@ -1406,7 +1406,7 @@ gtk_expander_set_expanded (GtkExpander *expander,
g_object_get (settings, "gtk-enable-animations", &enable_animations, NULL);
- if (enable_animations && GTK_WIDGET_REALIZED (expander))
+ if (enable_animations && gtk_widget_get_realized (GTK_WIDGET (expander)))
{
gtk_expander_start_animation (expander);
}