--- a/pidgin/gtkblist.c Mon Mar 21 20:31:15 2022 -0500
+++ b/pidgin/gtkblist.c Mon Mar 21 20:33:13 2022 -0500
@@ -121,10 +121,7 @@
STATUS_ICON_VISIBLE_COLUMN,
- BUDDY_ICON_VISIBLE_COLUMN,
GROUP_EXPANDER_VISIBLE_COLUMN,
@@ -1977,11 +1974,6 @@
protocol = purple_connection_get_protocol(purple_account_get_connection(account));
- if (!purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons"))
/* If we have a contact then this is either a contact or a buddy and
* we want to fetch the custom icon for the contact. If we don't have
* a contact then this is a group or some other type of node and we
@@ -2883,7 +2875,6 @@
PurplePresence *presence;
PidginBlistNode *gtkcontactnode = NULL;
char *idletime = NULL, *statustext = NULL, *nametext = NULL;
- gboolean biglist = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons");
/* XXX Good luck cleaning up this crap */
@@ -2910,7 +2901,7 @@
presence = purple_buddy_get_presence(b);
/* Name is all that is needed */
- if (!aliased || biglist) {
PurpleAccount *account = purple_buddy_get_account(b);
@@ -2982,7 +2973,7 @@
/* Put it all together */
- if ((!aliased || biglist) && (statustext || idletime)) {
+ if(statustext || idletime) { /* using <span size='smaller'> breaks the status, so it must be separated into <small><span>*/
text = g_strdup_printf("<span foreground='%s'>%s</span>\n"
@@ -3807,15 +3798,6 @@
g_object_set(rend, "ypad", 0, "yalign", 0.5, NULL);
g_object_set(rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
- rend = gtk_cell_renderer_text_new();
- g_object_set(rend, "xalign", 1.0, "ypad", 0, NULL);
- gtk_tree_view_column_pack_start(column, rend, FALSE);
- gtk_tree_view_column_set_attributes(column, rend,
- "visible", IDLE_VISIBLE_COLUMN,
rend = gtk_cell_renderer_pixbuf_new();
g_object_set(rend, "xalign", 1.0, "yalign", 0.5, "ypad", 0, "xpad", 3,
@@ -3840,7 +3822,6 @@
gtk_tree_view_column_pack_start(column, rend, FALSE);
gtk_tree_view_column_set_attributes(column, rend,
"pixbuf", BUDDY_ICON_COLUMN,
- "visible", BUDDY_ICON_VISIBLE_COLUMN,
@@ -3931,10 +3912,7 @@
GDK_TYPE_PIXBUF, /* Status icon */
G_TYPE_BOOLEAN, /* Status icon visible */
G_TYPE_STRING, /* Name */
- G_TYPE_STRING, /* Idle */
- G_TYPE_BOOLEAN, /* Idle visible */
GDK_TYPE_PIXBUF, /* Buddy icon */
- G_TYPE_BOOLEAN, /* Buddy icon visible */
G_TYPE_POINTER, /* Node */
G_TYPE_BOOLEAN, /* Group expander */
G_TYPE_BOOLEAN, /* Group expander visible */
@@ -4019,8 +3997,6 @@
handle = pidgin_blist_get_handle();
/* things that affect how buddies are displayed */
- purple_prefs_connect_callback(handle, PIDGIN_PREFS_ROOT "/blist/show_buddy_icons",
- _prefs_change_redo_list, NULL);
purple_prefs_connect_callback(handle, PIDGIN_PREFS_ROOT "/blist/show_idle_time",
_prefs_change_redo_list, NULL);
purple_prefs_connect_callback(handle, PIDGIN_PREFS_ROOT "/blist/show_empty_groups",
@@ -4302,7 +4278,6 @@
@@ -4316,11 +4291,7 @@
gtk_tree_path_free(path);
title = pidgin_get_group_title(gnode, expanded);
- biglist = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons");
- avatar = pidgin_blist_get_buddy_icon(gnode, TRUE, TRUE);
+ avatar = pidgin_blist_get_buddy_icon(gnode, TRUE, TRUE); gtk_tree_store_set(gtkblist->treemodel, &iter,
STATUS_ICON_VISIBLE_COLUMN, FALSE,
@@ -4331,8 +4302,6 @@
GROUP_EXPANDER_VISIBLE_COLUMN, TRUE,
CONTACT_EXPANDER_VISIBLE_COLUMN, FALSE,
BUDDY_ICON_COLUMN, avatar,
- BUDDY_ICON_VISIBLE_COLUMN, biglist,
- IDLE_VISIBLE_COLUMN, FALSE,
EMBLEM_VISIBLE_COLUMN, FALSE,
@@ -4382,7 +4351,6 @@
gboolean selected = (gtkblist->selected_node == node);
- gboolean biglist = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons");
@@ -4391,13 +4359,8 @@
pidgin_node = g_object_get_data(G_OBJECT(node->parent), UI_DATA);
status = pidgin_blist_get_status_icon(PURPLE_BLIST_NODE(buddy),
- biglist ? PIDGIN_STATUS_ICON_LARGE : PIDGIN_STATUS_ICON_SMALL);
- /* Speed it up if we don't want buddy icons. */
- avatar = pidgin_blist_get_buddy_icon(PURPLE_BLIST_NODE(buddy), TRUE, TRUE);
+ PIDGIN_STATUS_ICON_LARGE); + avatar = pidgin_blist_get_buddy_icon(PURPLE_BLIST_NODE(buddy), TRUE, TRUE); if(!PURPLE_BUDDY_IS_ONLINE(buddy) || purple_presence_is_idle(presence)) {
@@ -4408,41 +4371,13 @@
emblem = pidgin_blist_get_emblem(PURPLE_BLIST_NODE(buddy));
mark = pidgin_blist_get_name_markup(buddy, selected, TRUE);
- if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_idle_time") &&
- purple_presence_is_idle(presence) && !biglist)
- time_t idle_secs = purple_presence_get_idle_time(presence);
- ihrs = (t - idle_secs) / 3600;
- imin = ((t - idle_secs) / 60) % 60;
- idle = g_strdup_printf("%d:%02d", ihrs, imin);
- idle = g_strdup_printf("<span color='%s'>%d:%02d</span>",
- pidgin_style_context_is_dark()
protocol_icon = pidgin_create_protocol_icon(purple_buddy_get_account(buddy), PIDGIN_PROTOCOL_ICON_SMALL);
gtk_tree_store_set(gtkblist->treemodel, iter,
STATUS_ICON_COLUMN, status,
STATUS_ICON_VISIBLE_COLUMN, TRUE,
- IDLE_VISIBLE_COLUMN, !biglist && idle,
BUDDY_ICON_COLUMN, avatar,
- BUDDY_ICON_VISIBLE_COLUMN, biglist,
EMBLEM_VISIBLE_COLUMN, (emblem != NULL),
PROTOCOL_ICON_COLUMN, protocol_icon,
@@ -4471,7 +4406,6 @@
- gboolean biglist = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons");
PidginBlistNode *gtknode;
@@ -4509,14 +4443,12 @@
mark = g_markup_escape_text(purple_contact_get_alias(contact), -1);
status = pidgin_blist_get_status_icon(cnode,
- biglist? PIDGIN_STATUS_ICON_LARGE : PIDGIN_STATUS_ICON_SMALL);
+ PIDGIN_STATUS_ICON_LARGE); gtk_tree_store_set(gtkblist->treemodel, &iter,
STATUS_ICON_COLUMN, status,
STATUS_ICON_VISIBLE_COLUMN, TRUE,
- IDLE_VISIBLE_COLUMN, FALSE,
CONTACT_EXPANDER_COLUMN, TRUE,
CONTACT_EXPANDER_VISIBLE_COLUMN, TRUE,
@@ -4586,23 +4518,15 @@
GdkPixbuf *status, *avatar, *emblem, *protocol_icon;
const gchar *color = NULL;
- gboolean showicons = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons");
- gboolean biglist = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons");
gboolean selected = (gtkblist->selected_node == node);
gboolean nick_said = FALSE;
if (!insert_node(list, node, &iter))
- status = pidgin_blist_get_status_icon(node,
- biglist ? PIDGIN_STATUS_ICON_LARGE : PIDGIN_STATUS_ICON_SMALL);
+ status = pidgin_blist_get_status_icon(node, PIDGIN_STATUS_ICON_LARGE); emblem = pidgin_blist_get_emblem(node);
- /* Speed it up if we don't want buddy icons. */
- avatar = pidgin_blist_get_buddy_icon(node, TRUE, FALSE);
+ avatar = pidgin_blist_get_buddy_icon(node, TRUE, FALSE); mark = g_markup_escape_text(purple_chat_get_name(chat), -1);
@@ -4623,7 +4547,6 @@
STATUS_ICON_COLUMN, status,
STATUS_ICON_VISIBLE_COLUMN, TRUE,
BUDDY_ICON_COLUMN, avatar,
- BUDDY_ICON_VISIBLE_COLUMN, showicons,
EMBLEM_VISIBLE_COLUMN, emblem != NULL,
PROTOCOL_ICON_COLUMN, protocol_icon,
@@ -5186,9 +5109,11 @@
cached_emblems = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
+ purple_prefs_remove(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons"); purple_prefs_add_none(PIDGIN_PREFS_ROOT "/blist");
- purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/blist/show_buddy_icons", TRUE);
purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/blist/show_empty_groups", FALSE);
purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/blist/show_idle_time", TRUE);
purple_prefs_add_bool(PIDGIN_PREFS_ROOT "/blist/show_offline_buddies", FALSE);