pidgin: 6522d05d: De-emphasize the () around the collapsed...
deryni at pidgin.im
deryni at pidgin.im
Sun Jul 5 11:16:38 EDT 2009
-----------------------------------------------------------------
Revision: 6522d05da0d63e9d0832680f0780e22a58f5c16c
Ancestor: 7687c9e68d5e1210b00a75a75e108c2c6c1dae0d
Author: deryni at pidgin.im
Date: 2009-06-25T05:11:21
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6522d05da0d63e9d0832680f0780e22a58f5c16c
Modified files:
pidgin/gtkblist.c
ChangeLog:
De-emphasize the () around the collapsed group counts. I can't actually see
this with the font setup I have here but I think it looks nicer when I bump
the font up so I can see the difference.
-------------- next part --------------
============================================================
--- pidgin/gtkblist.c 832ffd9090e4fbf9242aebfade72e14e490095ed
+++ pidgin/gtkblist.c e1481a26025ffed7ac1060d312b5a151e5b43df7
@@ -6300,7 +6300,7 @@ static char *pidgin_get_group_title(Purp
selected = (gnode == selected_node);
if (!expanded) {
- g_snprintf(group_count, sizeof(group_count), " (%d/%d)",
+ g_snprintf(group_count, sizeof(group_count), "%d/%d",
purple_blist_get_group_online_count(group),
purple_blist_get_group_size(group, FALSE));
}
@@ -6319,11 +6319,18 @@ static char *pidgin_get_group_title(Purp
esc = g_markup_escape_text(group->name, -1);
if (text_color) {
- mark = g_strdup_printf("<span foreground='%s' font_desc='%s'><b>%s</b>%s</span>",
- text_color, text_font, esc ? esc : "", group_count);
+ mark = g_strdup_printf("<span foreground='%s' font_desc='%s'><b>%s</b>%s%s%s</span>",
+ text_color, text_font,
+ esc ? esc : "",
+ !expanded ? " <span font_weight='light'>(</span>" : "",
+ group_count,
+ !expanded ? "<span font_weight='light'>)</span>" : "");
} else {
- mark = g_strdup_printf("<span font_desc='%s'><b>%s</b>%s</span>",
- text_font, esc ? esc : "", group_count);
+ mark = g_strdup_printf("<span font_desc='%s'><b>%s</b>%s%s%s</span>",
+ text_font, esc ? esc : "",
+ !expanded ? " <span font_weight='light'>(</span>" : "",
+ group_count,
+ !expanded ? "<span font_weight='light'>)</span>" : "");
}
g_free(esc);
More information about the Commits
mailing list