aboutsummaryrefslogtreecommitdiffstats
path: root/composer
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
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')
-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);
eletions'>-2/+2 * Use libtool port instead of included version to avoid objformat a.out botchkris2007-02-012-0/+3 * Bump PORTREVISION on glib12/gtk12 consumer ports to ease the upgrade path.ade2006-03-071-1/+1 * Repocopy math/netcdf to science/netcdf, along with cdf, hdf and hdf5.thierry2006-01-311-1/+1 * SHA256ifyedwin2006-01-241-0/+1 * - Update graphics/libglut to 6.4.1.sem2006-01-121-1/+1 * Chase libversion bumb to libMagick.so.9edwin2006-01-051-1/+1 * Fix PTHREAD_* misspellingsvs2005-08-311-1/+1 * Assign maintainership to new victim^Wvolunteerkris2004-12-211-1/+1 * Fix build with gcc 3.4arved2004-08-21