[gthumb] fixed run-time warning about visible but unmapped children
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed run-time warning about visible but unmapped children
- Date: Sat, 19 Jan 2013 18:35:47 +0000 (UTC)
commit 498339ec6a89cc6e47cbfd4a39228956ac12ab93
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Jan 19 18:58:57 2013 +0100
fixed run-time warning about visible but unmapped children
gthumb/gth-browser.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index 7098a32..e687daf 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -4015,10 +4015,12 @@ pref_ui_viewer_thumbnails_orient_changed (GSettings *settings,
child2 = gtk_paned_get_child2 (GTK_PANED (browser->priv->viewer_thumbnails_pane));
g_object_ref (child1);
+ gtk_widget_set_visible (child1, FALSE);
gtk_widget_unrealize (child1);
gtk_container_remove (GTK_CONTAINER (browser->priv->viewer_thumbnails_pane), child1);
g_object_ref (child2);
+ gtk_widget_set_visible (child2, FALSE);
gtk_widget_unrealize (child2);
gtk_container_remove (GTK_CONTAINER (browser->priv->viewer_thumbnails_pane), child2);
@@ -4031,6 +4033,9 @@ pref_ui_viewer_thumbnails_orient_changed (GSettings *settings,
gtk_paned_pack2 (GTK_PANED (viewer_thumbnails_pane), browser->priv->viewer_sidebar_pane, TRUE, FALSE);
}
+ gtk_widget_set_visible (child1, TRUE);
+ gtk_widget_set_visible (child2, TRUE);
+
g_object_notify (G_OBJECT (child1), "parent");
g_object_unref (child1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]