[gnome-initial-setup] driver: apply maximum size hint flag



commit bf0dab31df7ea4e661320af2c7875b3fd529513a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Mar 15 17:28:32 2016 -0300

    driver: apply maximum size hint flag
    
    The driver was not considering the maximum size
    of the size hints since we were not passing the
    GDK_HINT_MAX_SIZE flag.
    
    Fix that by properly setting the max_{width,height}
    in the size hint and passing the MAX_SIZE flag.

 gnome-initial-setup/gis-driver.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index 9861c6c..1a48720 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -380,14 +380,14 @@ update_screen_size (GisDriver *driver)
                                       GTK_POLICY_NEVER,
                                       GTK_POLICY_NEVER);
 
-      size_hints.min_width = 1024;
-      size_hints.min_height = 768;
+      size_hints.min_width = size_hints.max_width = 1024;
+      size_hints.min_height = size_hints.max_height = 768;
       size_hints.win_gravity = GDK_GRAVITY_CENTER;
 
       gtk_window_set_geometry_hints (priv->main_window,
                                      NULL,
                                      &size_hints,
-                                     GDK_HINT_MIN_SIZE | GDK_HINT_WIN_GRAVITY);
+                                     GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE | GDK_HINT_WIN_GRAVITY);
       gtk_window_set_resizable (priv->main_window, FALSE);
       gtk_window_set_position (priv->main_window, GTK_WIN_POS_CENTER_ALWAYS);
 


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