[balsa/wip/gtk4: 24/351] Fix identity dialog string alignments
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/wip/gtk4: 24/351] Fix identity dialog string alignments
- Date: Wed, 23 May 2018 21:18:57 +0000 (UTC)
commit a6c40b05ca3e772a19731481d51c2ae04cdb9570
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Oct 6 21:59:27 2017 -0400
Fix identity dialog string alignments
libbalsa/identity.c | 2 +-
libbalsa/misc.c | 6 ++++++
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/libbalsa/identity.c b/libbalsa/identity.c
index 99181bf..4068721 100644
--- a/libbalsa/identity.c
+++ b/libbalsa/identity.c
@@ -1394,7 +1394,7 @@ ident_dialog_add_file_chooser_button(GtkWidget * grid, gint row,
g_free(filename);
gtk_widget_set_hexpand(button, TRUE);
- gtk_widget_set_vexpand(button, TRUE);
+ gtk_widget_set_vexpand(button, FALSE);
gtk_grid_attach(GTK_GRID(grid), button, 1, row, 1, 1);
g_object_set_data(G_OBJECT(dialog), path_info[type].path_key, button);
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index e1356c4..7a040df 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -918,8 +918,14 @@ libbalsa_create_grid_check(const gchar * text, GtkWidget * grid, gint row,
gboolean initval)
{
GtkWidget *check_button;
+ GtkWidget *label;
check_button = gtk_check_button_new_with_mnemonic(text);
+ label = gtk_bin_get_child((GtkBin *) check_button);
+ if (GTK_IS_LABEL(label)) {
+ gtk_label_set_xalign((GtkLabel *) label, 0.0);
+ gtk_label_set_yalign((GtkLabel *) label, 0.5);
+ }
gtk_grid_attach(GTK_GRID(grid), check_button, 0, row, 2, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]