aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-composer-header.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-05-04 06:18:52 +0800
committerFederico Mena Quintero <federico@novell.com>2010-05-04 07:17:42 +0800
commite92669121800419e63c903d446548e25362f0606 (patch)
treeceeb7a5612c20627ad1c33c8b32f99ff5be62d90 /composer/e-composer-header.c
parent9a6064142f77c7ca112424bad68ddc5dd6d63d8f (diff)
downloadgsoc2013-evolution-e92669121800419e63c903d446548e25362f0606.tar.gz
gsoc2013-evolution-e92669121800419e63c903d446548e25362f0606.tar.zst
gsoc2013-evolution-e92669121800419e63c903d446548e25362f0606.zip
Right-align the labels of the composer's headers
This is so that the colons of the labels will align vertically. Although the labels inside buttons don't align 100% perfectly with the buttonless labels, this looks good enough for now, and certainly much better than all-centered labels. Signed-off-by: Federico Mena Quintero <federico@novell.com>
Diffstat (limited to 'composer/e-composer-header.c')
-rw-r--r--composer/e-composer-header.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c
index 34c2c0c451..4c968d43d8 100644
--- a/composer/e-composer-header.c
+++ b/composer/e-composer-header.c
@@ -75,6 +75,7 @@ composer_header_constructor (GType type,
GObject *object;
GtkWidget *widget;
EComposerHeader *header;
+ GtkWidget *label;
/* Chain up to parent's constructor() method. */
object = G_OBJECT_CLASS (parent_class)->constructor (
@@ -89,12 +90,15 @@ composer_header_constructor (GType type,
widget, "clicked",
G_CALLBACK (composer_header_button_clicked_cb),
header);
+ label = gtk_bin_get_child (GTK_BIN (widget));
} else {
widget = gtk_label_new_with_mnemonic (header->priv->label);
- gtk_label_set_mnemonic_widget (
- GTK_LABEL (widget), header->input_widget);
+ gtk_label_set_mnemonic_widget (GTK_LABEL (widget), header->input_widget);
+ label = widget;
}
+ gtk_misc_set_alignment (GTK_MISC (label), 1.0, 0.5);
+
header->priv->action_label = NULL;
header->title_widget = g_object_ref_sink (widget);