[cheese] thumbview: set default width for vertical thumbview
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] thumbview: set default width for vertical thumbview
- Date: Mon, 10 Aug 2009 18:51:10 +0000 (UTC)
commit f9c45bb43cd7a4036190bf8e30bb3ab6735d85ba
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Sat Aug 8 10:58:50 2009 +0200
thumbview: set default width for vertical thumbview
src/cheese-thumb-view.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/cheese-thumb-view.c b/src/cheese-thumb-view.c
index 93d2da5..7ed76e2 100644
--- a/src/cheese-thumb-view.c
+++ b/src/cheese-thumb-view.c
@@ -569,6 +569,7 @@ cheese_thumb_view_init (CheeseThumbView *thumb_view)
GFile *file;
const int THUMB_VIEW_HEIGHT = 120;
+ const int THUMB_VIEW_WIDTH = 172;
eog_thumbnail_init ();
@@ -578,7 +579,7 @@ cheese_thumb_view_init (CheeseThumbView *thumb_view)
gtk_icon_view_set_model (GTK_ICON_VIEW (thumb_view), GTK_TREE_MODEL (priv->store));
- gtk_widget_set_size_request (GTK_WIDGET (thumb_view), -1, THUMB_VIEW_HEIGHT);
+ gtk_widget_set_size_request (GTK_WIDGET (thumb_view), THUMB_VIEW_WIDTH, THUMB_VIEW_HEIGHT);
path_videos = cheese_fileutil_get_video_path (priv->fileutil);
path_photos = cheese_fileutil_get_photo_path (priv->fileutil);
@@ -607,11 +608,8 @@ cheese_thumb_view_init (CheeseThumbView *thumb_view)
}
gtk_icon_view_set_pixbuf_column (GTK_ICON_VIEW (thumb_view), 0);
-#ifdef NETBOOK
- gtk_icon_view_set_columns (GTK_ICON_VIEW (thumb_view), -1);
-#else
- gtk_icon_view_set_columns (GTK_ICON_VIEW (thumb_view), G_MAX_INT);
-#endif
+
+ gtk_icon_view_set_columns (GTK_ICON_VIEW (thumb_view), G_MAXINT);
gtk_icon_view_enable_model_drag_source (GTK_ICON_VIEW (thumb_view), GDK_BUTTON1_MASK,
target_table, G_N_ELEMENTS (target_table),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]