[eog/gnome-2-26] Fix size requisition in one row/column EogThumbNav



commit 30cdce7787d7d3f28b4b7e696563454f97970f93
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Apr 23 23:10:41 2009 +0300

    Fix size requisition in one row/column EogThumbNav
    
    * src/eog-thumb-nav.c: (eog_thumb_nav_set_mode): Do not set
    a size request on one row/column mode, since it breaks when
    a scrollbar is needed.
---
 ChangeLog           |    6 ++++++
 src/eog-thumb-nav.c |    4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f629ab2..d762bd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-23  Claudio Saavedra  <csaavedra igalia com>
+
+	* src/eog-thumb-nav.c: (eog_thumb_nav_set_mode): Do not set
+	a size request on one row/column mode, since it breaks when
+	a scrollbar is needed.
+
 2009-04-18  Felix Riemann  <friemann svn gnome org>
 
 	* src/eog-uri-converter.c (eog_uri_converter_get_property):
diff --git a/src/eog-thumb-nav.c b/src/eog-thumb-nav.c
index a46637c..2b9148d 100644
--- a/src/eog-thumb-nav.c
+++ b/src/eog-thumb-nav.c
@@ -526,7 +526,7 @@ eog_thumb_nav_set_mode (EogThumbNav *nav, EogThumbNavMode mode)
 		gtk_icon_view_set_columns (GTK_ICON_VIEW (priv->thumbview),
 					   G_MAXINT);
 
-		gtk_widget_set_size_request (priv->thumbview, -1, 123);
+		gtk_widget_set_size_request (priv->thumbview, -1, -1);
 		eog_thumb_view_set_item_height (EOG_THUMB_VIEW (priv->thumbview),
 						115);
 
@@ -541,7 +541,7 @@ eog_thumb_nav_set_mode (EogThumbNav *nav, EogThumbNavMode mode)
 	case EOG_THUMB_NAV_MODE_ONE_COLUMN:
 		gtk_icon_view_set_columns (GTK_ICON_VIEW (priv->thumbview), 1);
 
-		gtk_widget_set_size_request (priv->thumbview, 113, -1);
+		gtk_widget_set_size_request (priv->thumbview, -1, -1);
 		eog_thumb_view_set_item_height (EOG_THUMB_VIEW (priv->thumbview),
 						-1);
 



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