From 36a97492d3a09e579077a6ea96c5a4585154590b Mon Sep 17 00:00:00 2001 From: jstebbins Date: Tue, 22 Mar 2011 01:31:48 +0000 Subject: 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 --- gtk/src/ghbcompositor.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'gtk/src/ghbcompositor.c') 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 */ -- cgit v1.2.3