diff options
author | jstebbins <[email protected]> | 2011-03-22 01:31:48 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-03-22 01:31:48 +0000 |
commit | 36a97492d3a09e579077a6ea96c5a4585154590b (patch) | |
tree | 4f3c5e10e8591eeca819ec54680182f2aa5c7d17 /gtk/src/ghbcompositor.c | |
parent | 8af0a82a5e85c29663f56092e148c54680e17bf7 (diff) |
LinGui: Remove use of deprecated GTK_WIDGET_VISIBLE macro
Replace with gtk_widget_get_visible()
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3866 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/ghbcompositor.c')
-rw-r--r-- | gtk/src/ghbcompositor.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gtk/src/ghbcompositor.c b/gtk/src/ghbcompositor.c index 2da37c6da..eb46cde50 100644 --- a/gtk/src/ghbcompositor.c +++ b/gtk/src/ghbcompositor.c @@ -225,8 +225,11 @@ ghb_compositor_set_child_property( break; } - if (GTK_WIDGET_VISIBLE (child) && GTK_WIDGET_VISIBLE (compositor)) + if (gtk_widget_get_visible (child) && + gtk_widget_get_visible (GTK_WIDGET(compositor))) + { gtk_widget_queue_resize (child); + } } @@ -415,12 +418,12 @@ ghb_compositor_remove(GtkContainer *container, GtkWidget *child) cc = (GhbCompositorChild*)link->data; if (cc->widget == child) { - gboolean was_visible = GTK_WIDGET_VISIBLE( child ); + gboolean was_visible = gtk_widget_get_visible( child ); gtk_widget_unparent(child); compositor->children = g_list_remove(compositor->children, child); g_free(child); - if (was_visible && GTK_WIDGET_VISIBLE (container)) + if (was_visible && gtk_widget_get_visible (GTK_WIDGET(container))) gtk_widget_queue_resize(GTK_WIDGET(container)); break; } @@ -538,7 +541,7 @@ ghb_compositor_size_request( for (link = compositor->children; link != NULL; link = link->next) { cc = (GhbCompositorChild*)link->data; - if (GTK_WIDGET_VISIBLE(cc->widget)) + if (gtk_widget_get_visible(cc->widget)) { gtk_widget_size_request(cc->widget, NULL); gtk_widget_get_child_requisition(cc->widget, &child_requisition); @@ -621,8 +624,8 @@ ghb_compositor_blend (GtkWidget *widget, GdkEventExpose *event) { /* get our child */ child = GTK_WIDGET(draw->data); - if (!GTK_WIDGET_VISIBLE(cc->widget) || - !GTK_WIDGET_VISIBLE(child)) + if (!gtk_widget_get_visible(cc->widget) || + !gtk_widget_get_visible(child)) continue; /* the source data is the (composited) event box */ |