empathy r1387 - trunk/libempathy-gtk
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1387 - trunk/libempathy-gtk
- Date: Tue, 26 Aug 2008 14:26:31 +0000 (UTC)
Author: fpeters
Date: Tue Aug 26 14:26:31 2008
New Revision: 1387
URL: http://svn.gnome.org/viewvc/empathy?rev=1387&view=rev
Log:
don't use italic for status text in contact list (closes: #548632)
Modified:
trunk/libempathy-gtk/empathy-cell-renderer-text.c
Modified: trunk/libempathy-gtk/empathy-cell-renderer-text.c
==============================================================================
--- trunk/libempathy-gtk/empathy-cell-renderer-text.c (original)
+++ trunk/libempathy-gtk/empathy-cell-renderer-text.c Tue Aug 26 14:26:31 2008
@@ -286,7 +286,7 @@
{
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 @@
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 @@
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]