summaryrefslogtreecommitdiff
path: root/gtk/gtkcalendar.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/gtkcalendar.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/gtkcalendar.c')
-rw-r--r--gtk/gtkcalendar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c
index 319a9e63a5..3b275656a8 100644
--- a/gtk/gtkcalendar.c
+++ b/gtk/gtkcalendar.c
@@ -2024,7 +2024,7 @@ gtk_calendar_size_allocate (GtkWidget *widget,
priv->week_width = 0;
}
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_get_realized (widget))
{
gdk_window_move_resize (widget->window,
allocation->x, allocation->y,
@@ -3219,7 +3219,7 @@ calendar_set_background (GtkWidget *widget)
GtkCalendarPrivate *priv = GTK_CALENDAR_GET_PRIVATE (widget);
gint i;
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_get_realized (widget))
{
for (i = 0; i < 4; i++)
{
@@ -3249,7 +3249,7 @@ static void
gtk_calendar_style_set (GtkWidget *widget,
GtkStyle *previous_style)
{
- if (previous_style && GTK_WIDGET_REALIZED (widget))
+ if (previous_style && gtk_widget_get_realized (widget))
calendar_set_background (widget);
}
@@ -3557,7 +3557,7 @@ gtk_calendar_set_display_options (GtkCalendar *calendar,
old_flags = calendar->display_flags;
- if (GTK_WIDGET_REALIZED (widget))
+ if (gtk_widget_get_realized (widget))
{
if ((flags ^ calendar->display_flags) & GTK_CALENDAR_NO_MONTH_CHANGE)
{