[eog] Fix size requisition in one row/column EogThumbNav
- From: Claudio Saavedra <csaavedra src gnome org>
- To: svn-commits-list gnome org
- Subject: [eog] Fix size requisition in one row/column EogThumbNav
- Date: Thu, 23 Apr 2009 16:21:11 -0400 (EDT)
commit 9cadb4593283a6dbd17f7919698908592c0e9db9
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 2400da4..280eb60 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-22 Felix Riemann <friemann svn gnome org>
* src/Makefile.am:
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]