[cheese/three-point-oh] resize_children needs children to be visible to work



commit 8934635772b9311db49743c8c435d861d8935c85
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Mon Jul 12 21:25:11 2010 +0200

    resize_children needs children to be visible to work
    
    gtk_container_resize_children triggers size negotiation but if the
    children are not visible they have no size request so it doesn't do
    anything. Everything should work fine now.

 src/cheese-window.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 2b3b0c2..51f1d7c 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -425,8 +425,8 @@ public class Cheese.MainWindow : Gtk.Window
         thumbnails_bottom.remove (thumb_nav);
       }
       thumbnails_right.add (thumb_nav);
-      thumbnails_right.resize_children ();
       thumbnails_right.show_all ();
+      thumbnails_right.resize_children ();
       thumbnails_bottom.hide_all ();
     }
     else
@@ -438,9 +438,9 @@ public class Cheese.MainWindow : Gtk.Window
         thumbnails_right.remove (thumb_nav);
       }
       thumbnails_bottom.add (thumb_nav);
+      thumbnails_bottom.show_all ();
       thumbnails_bottom.resize_children ();
       thumbnails_right.hide_all ();
-      thumbnails_bottom.show_all ();
     }
 
 	/* handy trick to keep the window to the desired size while not



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]