summaryrefslogtreecommitdiffstats
path: root/widgets/src/BaseWindow.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2011-12-19 13:55:59 -0500
committerChris Lumens <clumens@redhat.com>2011-12-19 13:55:59 -0500
commitab1cc32c9eeb873b6f55052c7721d54c48a9d940 (patch)
treefe99b5ffe39e3b19a4065100e8132f64ac4de85d /widgets/src/BaseWindow.c
parent8df82048bbc03cb38925a11c220ca0fcf03c6742 (diff)
downloadanaconda-ab1cc32c9eeb873b6f55052c7721d54c48a9d940.tar.gz
anaconda-ab1cc32c9eeb873b6f55052c7721d54c48a9d940.tar.xz
anaconda-ab1cc32c9eeb873b6f55052c7721d54c48a9d940.zip
Tweak spacing and margins on UI screens.
First, remove the border width specified in each .ui file. This allows the info bar to extend all the way to the edges of the screen. Then, add back in some padding around the nav_area and various button areas.
Diffstat (limited to 'widgets/src/BaseWindow.c')
-rw-r--r--widgets/src/BaseWindow.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/widgets/src/BaseWindow.c b/widgets/src/BaseWindow.c
index 766c66ef2..c697dfe74 100644
--- a/widgets/src/BaseWindow.c
+++ b/widgets/src/BaseWindow.c
@@ -158,14 +158,13 @@ static void anaconda_base_window_init(AnacondaBaseWindow *win) {
/* Set properties on the parent (Gtk.Window) class. */
gtk_window_set_decorated(GTK_WINDOW(win), FALSE);
gtk_window_maximize(GTK_WINDOW(win));
- gtk_container_set_border_width(GTK_CONTAINER(win), 6);
+ gtk_container_set_border_width(GTK_CONTAINER(win), 0);
/* First, construct a top-level box that everything will go in. Remember
* a Window can only hold one widget, and we may very well need to add
* more things later.
*/
win->priv->main_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
- gtk_box_set_spacing(GTK_BOX(win->priv->main_box), 6);
gtk_container_add(GTK_CONTAINER(win), win->priv->main_box);
/* Then the navigation area that sits as the first item in the main box
@@ -174,6 +173,9 @@ static void anaconda_base_window_init(AnacondaBaseWindow *win) {
win->priv->nav_area = gtk_grid_new();
gtk_grid_set_row_homogeneous(GTK_GRID(win->priv->nav_area), FALSE);
gtk_grid_set_column_homogeneous(GTK_GRID(win->priv->nav_area), FALSE);
+ gtk_widget_set_margin_left(win->priv->nav_area, 6);
+ gtk_widget_set_margin_right(win->priv->nav_area, 6);
+ gtk_widget_set_margin_top(win->priv->nav_area, 6);
gtk_box_pack_start(GTK_BOX(win->priv->main_box), win->priv->nav_area, FALSE, FALSE, 0);
/* Second in the main box is an alignment, because we want to be able
@@ -187,7 +189,6 @@ static void anaconda_base_window_init(AnacondaBaseWindow *win) {
* place for content to go.
*/
win->priv->action_area = gtk_box_new(GTK_ORIENTATION_VERTICAL, 6);
- gtk_box_set_spacing(GTK_BOX(win->priv->action_area), 6);
gtk_container_add(GTK_CONTAINER(win->priv->alignment), win->priv->action_area);
/* And now we can finally create the widgets that go in all those layout