summaryrefslogtreecommitdiff
path: root/gtk/gtktoolitemgroup.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/gtktoolitemgroup.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/gtktoolitemgroup.c')
-rw-r--r--gtk/gtktoolitemgroup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 2344c484b3..7f1db34e28 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1756,8 +1756,9 @@ static void
gtk_tool_item_group_force_expose (GtkToolItemGroup *group)
{
GtkToolItemGroupPrivate* priv = group->priv;
+ GtkWidget *widget = GTK_WIDGET (group);
- if (GTK_WIDGET_REALIZED (priv->header))
+ if (gtk_widget_get_realized (priv->header))
{
GtkWidget *alignment = gtk_tool_item_group_get_alignment (group);
GdkRectangle area;
@@ -1772,9 +1773,8 @@ gtk_tool_item_group_force_expose (GtkToolItemGroup *group)
gdk_window_invalidate_rect (priv->header->window, &area, TRUE);
}
- if (GTK_WIDGET_REALIZED (group))
+ if (gtk_widget_get_realized (widget))
{
- GtkWidget *widget = GTK_WIDGET (group);
GtkWidget *parent = gtk_widget_get_parent (widget);
int x, y, width, height;