[gnome-initial-setup] gis-driver: Add a sane minimum size
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] gis-driver: Add a sane minimum size
- Date: Fri, 18 Jan 2013 03:17:10 +0000 (UTC)
commit c721c9dfcd0bde3c9667790d2cd380485e3b60d5
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 17 21:58:57 2013 -0500
gis-driver: Add a sane minimum size
With the account page no longer there, we need to have something
to force the size to be reasonable.
gnome-initial-setup/gis-driver.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index 304a4e9..190950d 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -94,6 +94,16 @@ static void
prepare_main_window (GisDriver *driver)
{
GisDriverPrivate *priv = driver->priv;
+ GdkGeometry size_hints;
+
+ size_hints.min_width = 680;
+ size_hints.min_height = 440;
+ size_hints.win_gravity = GDK_GRAVITY_CENTER;
+
+ gtk_window_set_geometry_hints (priv->main_window,
+ GTK_WIDGET (priv->main_window),
+ &size_hints,
+ GDK_HINT_MIN_SIZE | GDK_HINT_WIN_GRAVITY);
g_signal_connect (priv->assistant, "notify::title",
G_CALLBACK (title_changed_cb), driver);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]