comparison src/gtkblist.c @ 12744:fcd9477e4476

[gaim-migrate @ 15091] " Adds an emblem to a buddy if they have a queued message (hidden conversation). In the large buddy list it is added in the northwest corner, sliding the existing northwest emblem (if specified) to the northeast position and discarding the northeast emblem. In the small buddy list, the emblem is added to the southeast. Attached is a patch and an emblem image to be dropped in pixmaps/status/default/. The emblem image is a scaled down version of the send-im.png image." -- Casey Harkins as I asked for this patch, and since there don't seem to be objections to it (yet), I'm going ahead and applying it. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Fri, 06 Jan 2006 04:46:00 +0000
parents d7043c3c793d
children 42af52cb61f7
comparison
equal deleted inserted replaced
12743:33ed71b35a43 12744:fcd9477e4476
2857 &emblems[1].filename, &emblems[2].filename, 2857 &emblems[1].filename, &emblems[2].filename,
2858 &emblems[3].filename); 2858 &emblems[3].filename);
2859 } 2859 }
2860 } 2860 }
2861 2861
2862 if(buddy) {
2863 GaimConversation *conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM,
2864 gaim_buddy_get_name(buddy),
2865 gaim_buddy_get_account(buddy));
2866 if(conv != NULL) {
2867 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION(conv);
2868 if(gtkconv != NULL && gaim_gtkconv_is_hidden(gtkconv)) {
2869 /* add pending emblem */
2870 if(size == GAIM_STATUS_ICON_SMALL) {
2871 emblems[0].filename="pending";
2872 }
2873 else {
2874 emblems[3].filename=emblems[2].filename;
2875 emblems[2].filename="pending";
2876 }
2877 }
2878 }
2879 }
2880
2862 if(size == GAIM_STATUS_ICON_SMALL) { 2881 if(size == GAIM_STATUS_ICON_SMALL) {
2863 scalesize = 15; 2882 scalesize = 15;
2864 /* So that only the se icon will composite */ 2883 /* So that only the se icon will composite */
2865 emblems[1].filename = emblems[2].filename = emblems[3].filename = NULL; 2884 emblems[1].filename = emblems[2].filename = emblems[3].filename = NULL;
2866 } 2885 }
3300 GList *l = NULL; 3319 GList *l = NULL;
3301 3320
3302 if (type != GAIM_CONV_UPDATE_UNSEEN) 3321 if (type != GAIM_CONV_UPDATE_UNSEEN)
3303 return; 3322 return;
3304 3323
3324 if(conv->account != NULL && conv->name != NULL) {
3325 GaimBuddy *buddy = gaim_find_buddy(conv->account, conv->name);
3326 if(buddy != NULL)
3327 gaim_gtk_blist_update_buddy(NULL, (GaimBlistNode *)buddy);
3328 }
3329
3305 if (gtkblist->menutrayicon) { 3330 if (gtkblist->menutrayicon) {
3306 gtk_widget_destroy(gtkblist->menutrayicon); 3331 gtk_widget_destroy(gtkblist->menutrayicon);
3307 gtkblist->menutrayicon = NULL; 3332 gtkblist->menutrayicon = NULL;
3308 } 3333 }
3309 3334