[cheese] window: prevent icon view to shrink down when empty
- From: Filippo Argiolas <fargiolas src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [cheese] window: prevent icon view to shrink down when empty
- Date: Mon, 10 Aug 2009 18:51:50 +0000 (UTC)
commit cbe79ca5391817ee05a3ec11792319f0014d1450
Author: Filippo Argiolas <filippo argiolas gmail com>
Date: Mon Aug 10 16:51:05 2009 +0200
window: prevent icon view to shrink down when empty
Quite an hack, but didn't find any better way to do it. If you have
better ideas please fix it.
src/cheese-window.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/cheese-window.c b/src/cheese-window.c
index 258631f..3576e2c 100644
--- a/src/cheese-window.c
+++ b/src/cheese-window.c
@@ -349,6 +349,16 @@ cheese_window_thumb_view_size_req_cb (GtkWidget *widget,
CheeseThumbView *thumbview = CHEESE_THUMB_VIEW (widget);
+ /* every time this shit runs a sweet lovely puppy dies somewhere in
+ * the world, please spend some time and save them! */
+ /* the thing is: how to keep the icon view to a minimum size without
+ setting a permanent size request? */
+ if ((req->width == 0) && (req->height == 0)) {
+ gtk_widget_set_size_request (widget, 140, 100);
+ } else {
+ gtk_widget_set_size_request (widget, -1, -1);
+ }
+
/* at this time the toplevel window has still no size requisition,
* wait for its next size-request */
if (cheese_window->needs_resizing) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]