[frogr] Adjusted margins and paddings in 'Add to group|set' dialogs
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Adjusted margins and paddings in 'Add to group|set' dialogs
- Date: Mon, 29 Sep 2014 09:41:31 +0000 (UTC)
commit e645b575d69f0d3471a3b91d07056ee0d79fb162
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Mon Sep 29 10:29:32 2014 +0100
Adjusted margins and paddings in 'Add to group|set' dialogs
src/frogr-add-to-group-dialog.c | 2 +-
src/frogr-add-to-set-dialog.c | 2 +-
src/frogr-create-new-set-dialog.c | 11 ++++++++---
3 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/frogr-add-to-group-dialog.c b/src/frogr-add-to-group-dialog.c
index 930476a..1cba4ae 100644
--- a/src/frogr-add-to-group-dialog.c
+++ b/src/frogr-add-to-group-dialog.c
@@ -564,7 +564,7 @@ frogr_add_to_group_dialog_init (FrogrAddToGroupDialog *self)
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (widget),
GTK_SHADOW_ETCHED_IN);
- gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 6);
+ gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 12);
priv->treeview = _create_tree_view (self);
gtk_container_add (GTK_CONTAINER (widget), priv->treeview);
diff --git a/src/frogr-add-to-set-dialog.c b/src/frogr-add-to-set-dialog.c
index 9cdd036..b447c7a 100644
--- a/src/frogr-add-to-set-dialog.c
+++ b/src/frogr-add-to-set-dialog.c
@@ -565,7 +565,7 @@ frogr_add_to_set_dialog_init (FrogrAddToSetDialog *self)
GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (widget),
GTK_SHADOW_ETCHED_IN);
- gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 6);
+ gtk_box_pack_start (GTK_BOX (vbox), widget, TRUE, TRUE, 12);
priv->treeview = _create_tree_view (self);
gtk_container_add (GTK_CONTAINER (widget), priv->treeview);
diff --git a/src/frogr-create-new-set-dialog.c b/src/frogr-create-new-set-dialog.c
index c28e187..e5edea0 100644
--- a/src/frogr-create-new-set-dialog.c
+++ b/src/frogr-create-new-set-dialog.c
@@ -314,6 +314,7 @@ static void
frogr_create_new_set_dialog_init (FrogrCreateNewSetDialog *self)
{
FrogrCreateNewSetDialogPrivate *priv = NULL;
+ GtkWidget *content_area = NULL;
GtkWidget *vbox = NULL;
GtkWidget *grid = NULL;
GtkWidget *scroller = NULL;
@@ -332,12 +333,14 @@ frogr_create_new_set_dialog_init (FrogrCreateNewSetDialog *self)
NULL);
gtk_container_set_border_width (GTK_CONTAINER (self), 6);
- vbox = gtk_dialog_get_content_area (GTK_DIALOG (self));
+ content_area = gtk_dialog_get_content_area (GTK_DIALOG (self));
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ gtk_widget_set_margin_bottom (vbox, 12);
grid = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID (grid), 6);
- gtk_grid_set_column_spacing (GTK_GRID (grid), 6);
- gtk_box_pack_start (GTK_BOX (vbox), grid, TRUE, TRUE, 6);
+ gtk_grid_set_column_spacing (GTK_GRID (grid), 12);
+ gtk_box_pack_start (GTK_BOX (vbox), grid, TRUE, TRUE, 0);
widget = gtk_label_new (_("Title:"));
gtk_widget_set_halign (GTK_WIDGET (widget), GTK_ALIGN_END);
@@ -374,6 +377,8 @@ frogr_create_new_set_dialog_init (FrogrCreateNewSetDialog *self)
gtk_grid_attach (GTK_GRID (grid), widget, 1, 2, 1, 1);
priv->copy_to_pictures_cb = widget;
+ gtk_container_add (GTK_CONTAINER (content_area), vbox);
+
g_signal_connect (G_OBJECT (priv->copy_to_pictures_cb), "toggled",
G_CALLBACK (_on_button_toggled),
self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]