[libgd] GdHeaderBar: make label bold
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] GdHeaderBar: make label bold
- Date: Sun, 17 Feb 2013 15:53:53 +0000 (UTC)
commit 05d481404a8eb4e9cd3e7cc5d50bb44673cd70cc
Author: William Jon McCann <jmccann redhat com>
Date: Sun Feb 17 10:53:09 2013 -0500
GdHeaderBar: make label bold
libgd/gd-header-bar.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/libgd/gd-header-bar.c b/libgd/gd-header-bar.c
index 967f3b5..48c0b8a 100644
--- a/libgd/gd-header-bar.c
+++ b/libgd/gd-header-bar.c
@@ -64,6 +64,16 @@ enum {
G_DEFINE_TYPE (GdHeaderBar, gd_header_bar, GTK_TYPE_CONTAINER);
static void
+boldify_label (GtkWidget *label)
+{
+ PangoAttrList *attrs;
+ attrs = pango_attr_list_new ();
+ pango_attr_list_insert (attrs, pango_attr_weight_new (PANGO_WEIGHT_BOLD));
+ gtk_label_set_attributes (GTK_LABEL (label), attrs);
+ pango_attr_list_unref (attrs);
+}
+
+static void
gd_header_bar_init (GdHeaderBar *bar)
{
GtkStyleContext *context;
@@ -76,6 +86,7 @@ gd_header_bar_init (GdHeaderBar *bar)
gtk_widget_set_redraw_on_allocate (GTK_WIDGET (bar), FALSE);
priv->label = gtk_label_new ("");
+ boldify_label (priv->label);
gtk_widget_set_parent (priv->label, GTK_WIDGET (bar));
gtk_widget_set_valign (priv->label, GTK_ALIGN_CENTER);
gtk_label_set_line_wrap (GTK_LABEL (priv->label), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]