[frogr] Updated layout for privacy radio buttons in settings dialog
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Updated layout for privacy radio buttons in settings dialog
- Date: Mon, 23 Dec 2013 15:57:20 +0000 (UTC)
commit a56f25c8d632aea54deeda803e20639e0cd2a56f
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Mon Dec 23 16:55:36 2013 +0100
Updated layout for privacy radio buttons in settings dialog
src/frogr-details-dialog.c | 2 +-
src/frogr-settings-dialog.c | 22 ++++++++++++++++------
2 files changed, 17 insertions(+), 7 deletions(-)
---
diff --git a/src/frogr-details-dialog.c b/src/frogr-details-dialog.c
index 9c446ab..2cb6d9a 100644
--- a/src/frogr-details-dialog.c
+++ b/src/frogr-details-dialog.c
@@ -40,7 +40,7 @@
#define DIALOG_MIN_HEIGHT 480
#define PICTURE_WIDTH 180
-#define PICTURE_HEIGHT 120
+#define PICTURE_HEIGHT 140
#define FROGR_DETAILS_DIALOG_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), \
diff --git a/src/frogr-settings-dialog.c b/src/frogr-settings-dialog.c
index 2c63ae9..51f9592 100644
--- a/src/frogr-settings-dialog.c
+++ b/src/frogr-settings-dialog.c
@@ -170,6 +170,7 @@ _add_general_page (FrogrSettingsDialog *self, GtkNotebook *notebook)
GtkWidget *box1 = NULL;
GtkWidget *box2 = NULL;
GtkWidget *box3 = NULL;
+ GtkWidget *box4 = NULL;
GtkWidget *align = NULL;
GtkWidget *label = NULL;
GtkWidget *combo = NULL;
@@ -199,20 +200,29 @@ _add_general_page (FrogrSettingsDialog *self, GtkNotebook *notebook)
box2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
gtk_box_set_homogeneous (GTK_BOX (box2), FALSE);
- _add_toggleable_item (self, GTK_BOX (box2), NULL,
- TRUE, _("P_ublic"), &priv->public_rb);
+ box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+ gtk_box_set_homogeneous (GTK_BOX (box3), FALSE);
+
+ _add_toggleable_item (self, GTK_BOX (box3), NULL,
+ TRUE, _("_Private"), &priv->private_rb);
+
+ _add_toggleable_item (self, GTK_BOX (box3), GTK_RADIO_BUTTON (priv->private_rb),
+ FALSE, _("P_ublic"), &priv->public_rb);
+
+ gtk_box_pack_start (GTK_BOX (box2), box3, FALSE, FALSE, 0);
box3 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
gtk_box_set_homogeneous (GTK_BOX (box3), FALSE);
- _add_toggleable_item (self, GTK_BOX (box3), GTK_RADIO_BUTTON (priv->public_rb),
- FALSE, _("_Private"), &priv->private_rb);
+ box4 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
+ gtk_box_set_homogeneous (GTK_BOX (box4), FALSE);
- _add_toggleable_item (self, GTK_BOX (box3), NULL, FALSE,
+ _add_toggleable_item (self, GTK_BOX (box4), NULL, FALSE,
_("_Family"), &priv->family_cb);
- _add_toggleable_item (self, GTK_BOX (box3), NULL, FALSE,
+ _add_toggleable_item (self, GTK_BOX (box4), NULL, FALSE,
_("F_riends"), &priv->friend_cb);
+ gtk_box_pack_start (GTK_BOX (box3), box4, FALSE, FALSE, 12);
gtk_box_pack_start (GTK_BOX (box2), box3, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (box1), box2, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]