[gnome-calendar] Added constraint to minimum window size.



commit 9b4e13f1fc5794c33ec1c49d18e6da1b29acb1cf
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Wed Nov 21 22:51:12 2012 -0500

    Added constraint to minimum window size.
    
    In fair play I should implement get_preferred_width/width_for_height and
    friends methods on the views, but since I'm lazy and these days I doubt
    someone using calendar will have less than 800x600 pixels.

 src/gcal-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index e2bb482..8b0800f 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -487,6 +487,7 @@ gcal_window_constructed (GObject *object)
                     object);
 
   gtk_widget_show (embed);
+  gtk_widget_set_size_request (GTK_WIDGET (object), 800, 600);
 }
 
 static void



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