[evolution/relayout-composer] Right-align the labels of the composer's headers
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/relayout-composer] Right-align the labels of the composer's headers
- Date: Mon, 3 May 2010 23:15:37 +0000 (UTC)
commit e92669121800419e63c903d446548e25362f0606
Author: Federico Mena Quintero <federico novell com>
Date: Mon May 3 17:18:52 2010 -0500
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>
composer/e-composer-header.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/composer/e-composer-header.c b/composer/e-composer-header.c
index 34c2c0c..4c968d4 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]