diff options
author | Frederic Peters <fpeters@src.gnome.org> | 2008-08-26 22:26:31 +0800 |
---|---|---|
committer | Frederic Peters <fpeters@src.gnome.org> | 2008-08-26 22:26:31 +0800 |
commit | 76677c35123bdafa8bc089ac5e3ae3150d7ecbd7 (patch) | |
tree | fdde68fc3f05778805d5b71905be107af2217c76 | |
parent | 0b11af771d490a5cebffddcd39fbaed7b1f90be5 (diff) | |
download | gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.tar gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.tar.gz gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.tar.bz2 gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.tar.lz gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.tar.xz gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.tar.zst gsoc2013-empathy-76677c35123bdafa8bc089ac5e3ae3150d7ecbd7.zip |
don't use italic for status text in contact list (closes: #548632)
svn path=/trunk/; revision=1387
-rw-r--r-- | libempathy-gtk/empathy-cell-renderer-text.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/libempathy-gtk/empathy-cell-renderer-text.c b/libempathy-gtk/empathy-cell-renderer-text.c index c31a013aa..567a1d9d3 100644 --- a/libempathy-gtk/empathy-cell-renderer-text.c +++ b/libempathy-gtk/empathy-cell-renderer-text.c @@ -286,7 +286,7 @@ cell_renderer_text_update_text (EmpathyCellRendererText *cell, { EmpathyCellRendererTextPriv *priv; PangoAttrList *attr_list; - PangoAttribute *attr_color, *attr_style, *attr_size; + PangoAttribute *attr_color, *attr_size; GtkStyle *style; gchar *str; @@ -315,10 +315,10 @@ cell_renderer_text_update_text (EmpathyCellRendererText *cell, attr_list = pango_attr_list_new (); - attr_style = pango_attr_style_new (PANGO_STYLE_ITALIC); - attr_style->start_index = strlen (priv->name) + 1; - attr_style->end_index = -1; - pango_attr_list_insert (attr_list, attr_style); + attr_size = pango_attr_size_new (pango_font_description_get_size (style->font_desc) / 1.2); + attr_size->start_index = strlen (priv->name) + 1; + attr_size->end_index = -1; + pango_attr_list_insert (attr_list, attr_size); if (!selected) { GdkColor color; @@ -326,17 +326,11 @@ cell_renderer_text_update_text (EmpathyCellRendererText *cell, color = style->text_aa[GTK_STATE_NORMAL]; attr_color = pango_attr_foreground_new (color.red, color.green, color.blue); - attr_color->start_index = attr_style->start_index; + attr_color->start_index = attr_size->start_index; attr_color->end_index = -1; pango_attr_list_insert (attr_list, attr_color); } - attr_size = pango_attr_size_new (pango_font_description_get_size (style->font_desc) / 1.2); - - attr_size->start_index = attr_style->start_index; - attr_size->end_index = -1; - pango_attr_list_insert (attr_list, attr_size); - if (!priv->status || !priv->status[0] || !priv->show_status) { str = g_strdup (priv->name); } else { |