[empathy] set dim-label style class on the presence message label
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] set dim-label style class on the presence message label
- Date: Thu, 14 Jun 2012 07:48:32 +0000 (UTC)
commit 84f1e91d7dbfb27b07a76c057ecba36717c927b5
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Mon May 21 16:13:21 2012 +0200
set dim-label style class on the presence message label
libempathy-gtk/empathy-roster-item.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-roster-item.c b/libempathy-gtk/empathy-roster-item.c
index 75b8751..3e330b9 100644
--- a/libempathy-gtk/empathy-roster-item.c
+++ b/libempathy-gtk/empathy-roster-item.c
@@ -272,6 +272,7 @@ static void
empathy_roster_item_init (EmpathyRosterItem *self)
{
GtkWidget *box;
+ GtkStyleContext *context;
self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self,
EMPATHY_TYPE_ROSTER_ITEM, EmpathyRosterItemPriv);
@@ -296,6 +297,9 @@ empathy_roster_item_init (EmpathyRosterItem *self)
self->priv->presence_msg = gtk_label_new (NULL);
gtk_box_pack_start (GTK_BOX (box), self->priv->presence_msg, TRUE, TRUE, 0);
+ context = gtk_widget_get_style_context (self->priv->presence_msg);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_DIM_LABEL);
+
gtk_widget_show_all (box);
/* Presence icon */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]