[cheese/netbook-mode] thumbnav: fix some box packing issue



commit 5aa8a3acf7feb7996caee95da982245cacaae3fd
Author: Filippo Argiolas <filippo argiolas gmail com>
Date:   Wed Aug 5 20:29:18 2009 +0200

    thumbnav: fix some box packing issue

 src/cheese-thumb-view.c |    4 ++--
 src/eog-thumb-nav.c     |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/cheese-thumb-view.c b/src/cheese-thumb-view.c
index 3c57f8c..93d2da5 100644
--- a/src/cheese-thumb-view.c
+++ b/src/cheese-thumb-view.c
@@ -607,10 +607,10 @@ cheese_thumb_view_init (CheeseThumbView *thumb_view)
   }
 
   gtk_icon_view_set_pixbuf_column (GTK_ICON_VIEW (thumb_view), 0);
-#ifdef HILDON
+#ifdef NETBOOK
   gtk_icon_view_set_columns (GTK_ICON_VIEW (thumb_view), -1);
 #else
-  gtk_icon_view_set_columns (GTK_ICON_VIEW (thumb_view), 10); /* FIXME ASAP */
+  gtk_icon_view_set_columns (GTK_ICON_VIEW (thumb_view), G_MAX_INT);
 #endif
 
   gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (thumb_view), GDK_BUTTON1_MASK,
diff --git a/src/eog-thumb-nav.c b/src/eog-thumb-nav.c
index 000b166..5db2ad3 100644
--- a/src/eog-thumb-nav.c
+++ b/src/eog-thumb-nav.c
@@ -519,7 +519,7 @@ eog_thumb_nav_init (EogThumbNav *nav)
                     nav);
 
   gtk_box_pack_start (GTK_BOX (nav), priv->button_left, FALSE, FALSE, 0);
-  gtk_box_pack_start (GTK_BOX (nav), priv->vbox, TRUE, TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (nav), priv->vbox, FALSE, FALSE, 0);
   gtk_box_pack_start (GTK_BOX (nav), priv->button_right, FALSE, FALSE, 0);
 
   priv->button_down = gtk_button_new ();
@@ -569,7 +569,7 @@ eog_thumb_nav_init (EogThumbNav *nav)
                     nav);
 
   gtk_box_pack_start (GTK_BOX (priv->vbox), priv->button_up, FALSE, FALSE, 0);
-  gtk_box_pack_start (GTK_BOX (priv->vbox), priv->sw, FALSE, FALSE, 0);
+  gtk_box_pack_start (GTK_BOX (priv->vbox), priv->sw, TRUE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (priv->vbox), priv->button_down, FALSE, FALSE, 0);
 
   gtk_adjustment_value_changed (priv->hadj);



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