diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-03-01 07:47:38 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-04-03 20:58:20 -0400 |
commit | edc65ce1d239aed73a0a273825ea4886757fd1c2 (patch) | |
tree | 24bdf286f232267b9c0201b846bd55036cf3ceca /gtk/gtkviewport.c | |
parent | eb90ec751354db580e125a1526eb6c1be9a565d4 (diff) | |
download | gtk+-edc65ce1d239aed73a0a273825ea4886757fd1c2.tar.gz |
Deprecate widget flag: GTK_WIDGET_VISIBLE
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Diffstat (limited to 'gtk/gtkviewport.c')
-rw-r--r-- | gtk/gtkviewport.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index b4411cfb27..5d707d96fc 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -378,7 +378,7 @@ viewport_set_hadjustment_values (GtkViewport *viewport, hadjustment->lower = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { GtkRequisition child_requisition; @@ -415,7 +415,7 @@ viewport_set_vadjustment_values (GtkViewport *viewport, vadjustment->lower = 0; - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { GtkRequisition child_requisition; @@ -529,7 +529,7 @@ gtk_viewport_set_shadow_type (GtkViewport *viewport, { viewport->shadow_type = type; - if (GTK_WIDGET_VISIBLE (viewport)) + if (gtk_widget_get_visible (GTK_WIDGET (viewport))) { gtk_widget_size_allocate (GTK_WIDGET (viewport), &(GTK_WIDGET (viewport)->allocation)); gtk_widget_queue_draw (GTK_WIDGET (viewport)); @@ -738,7 +738,7 @@ gtk_viewport_size_request (GtkWidget *widget, requisition->height += 2 * widget->style->ythickness; } - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) { gtk_widget_size_request (bin->child, &child_requisition); requisition->width += child_requisition.width; @@ -797,7 +797,7 @@ gtk_viewport_size_allocate (GtkWidget *widget, child_allocation.width, child_allocation.height); } - if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) + if (bin->child && gtk_widget_get_visible (bin->child)) gtk_widget_size_allocate (bin->child, &child_allocation); gtk_adjustment_changed (hadjustment); @@ -815,7 +815,7 @@ gtk_viewport_adjustment_value_changed (GtkAdjustment *adjustment, GtkViewport *viewport = GTK_VIEWPORT (data); GtkBin *bin = GTK_BIN (data); - if (bin->child && GTK_WIDGET_VISIBLE (bin->child) && + if (bin->child && gtk_widget_get_visible (bin->child) && GTK_WIDGET_REALIZED (viewport)) { GtkAdjustment *hadjustment = gtk_viewport_get_hadjustment (viewport); |