[evolution] Adjust EAlertBar text attributes.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Adjust EAlertBar text attributes.
- Date: Tue, 12 Oct 2010 21:42:00 +0000 (UTC)
commit 3c5f899f2dffb805aeff4bde6172a6dcfd8bae79
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Oct 12 17:39:28 2010 -0400
Adjust EAlertBar text attributes.
widgets/misc/e-alert-bar.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/widgets/misc/e-alert-bar.c b/widgets/misc/e-alert-bar.c
index 7796482..0e9d2b7 100644
--- a/widgets/misc/e-alert-bar.c
+++ b/widgets/misc/e-alert-bar.c
@@ -189,8 +189,6 @@ e_alert_bar_init (EAlertBar *alert_bar)
container = widget;
attr_list = pango_attr_list_new ();
- attr = pango_attr_scale_new (PANGO_SCALE_LARGE);
- pango_attr_list_insert (attr_list, attr);
attr = pango_attr_weight_new (PANGO_WEIGHT_BOLD);
pango_attr_list_insert (attr_list, attr);
@@ -202,7 +200,14 @@ e_alert_bar_init (EAlertBar *alert_bar)
alert_bar->priv->primary_label = widget;
gtk_widget_show (widget);
+ pango_attr_list_unref (attr_list);
+
+ attr_list = pango_attr_list_new ();
+ attr = pango_attr_scale_new (PANGO_SCALE_SMALL);
+ pango_attr_list_insert (attr_list, attr);
+
widget = gtk_label_new (NULL);
+ gtk_label_set_attributes (GTK_LABEL (widget), attr_list);
gtk_label_set_line_wrap (GTK_LABEL (widget), TRUE);
gtk_misc_set_alignment (GTK_MISC (widget), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (container), widget, FALSE, FALSE, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]