[gnome-photos] main-window: Set minimum size



commit 81a88f80e3654dcb854e1597b293cdfec7192aca
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Mon Jan 28 00:49:51 2013 +0100

    main-window: Set minimum size
    
    Fixes: https://bugzilla.gnome.org/691316

 src/photos-main-window.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index b17d387..ce0e110 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -51,7 +51,9 @@ G_DEFINE_TYPE_WITH_PRIVATE (PhotosMainWindow, photos_main_window, GTK_TYPE_APPLI
 
 enum
 {
-  CONFIGURE_ID_TIMEOUT = 100 /* ms */
+  CONFIGURE_ID_TIMEOUT = 100, /* ms */
+  WINDOW_MIN_HEIGHT = 600,
+  WINDOW_MIN_WIDTH = 640,
 };
 
 
@@ -303,6 +305,8 @@ photos_main_window_new (GtkApplication *application)
   g_return_val_if_fail (GTK_IS_APPLICATION (application), NULL);
 
   return g_object_new (PHOTOS_TYPE_MAIN_WINDOW,
+                       "width_request", WINDOW_MIN_WIDTH,
+                       "height_request", WINDOW_MIN_HEIGHT,
                        "application", application,
                        "hide-titlebar-when-maximized", TRUE,
                        "title", _(PACKAGE_NAME),


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