[gnome-initial-setup] driver: Remove the window's border width



commit b39d4e12b0156e5127b6718e6b0b26c76becc915
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Oct 31 18:30:16 2013 -0400

    driver: Remove the window's border width
    
    We need the summary page's background to hit the floor.
    
    Do this by setting padding on every page by default instead.

 gnome-initial-setup/gis-driver.c |    1 -
 gnome-initial-setup/gis-page.c   |    4 ++++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/gis-driver.c b/gnome-initial-setup/gis-driver.c
index 6380402..f13fc63 100644
--- a/gnome-initial-setup/gis-driver.c
+++ b/gnome-initial-setup/gis-driver.c
@@ -259,7 +259,6 @@ gis_driver_startup (GApplication *app)
   priv->main_window = g_object_new (GTK_TYPE_APPLICATION_WINDOW,
                                     "application", app,
                                     "type", GTK_WINDOW_TOPLEVEL,
-                                    "border-width", 12,
                                     "icon-name", "preferences-system",
                                     "resizable", FALSE,
                                     "window-position", GTK_WIN_POS_CENTER_ALWAYS,
diff --git a/gnome-initial-setup/gis-page.c b/gnome-initial-setup/gis-page.c
index 9643eaa..537a22f 100644
--- a/gnome-initial-setup/gis-page.c
+++ b/gnome-initial-setup/gis-page.c
@@ -207,6 +207,10 @@ gis_page_class_init (GisPageClass *klass)
 static void
 gis_page_init (GisPage *page)
 {
+  gtk_widget_set_margin_left (GTK_WIDGET (page), 12);
+  gtk_widget_set_margin_top (GTK_WIDGET (page), 12);
+  gtk_widget_set_margin_bottom (GTK_WIDGET (page), 12);
+  gtk_widget_set_margin_right (GTK_WIDGET (page), 12);
 }
 
 char *


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