Mercurial > pidgin.yaz
view pixmaps/plugins.xpm @ 5438:6e7ba9efd1f4
[gaim-migrate @ 5820]
I wrote sort-by-status.
Index: src/gtkblist.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/gtkblist.c,v
retrieving revision 1.28
diff -u -r1.28 gtkblist.c
--- src/gtkblist.c 18 May 2003 07:54:53 -0000 1.28
+++ src/gtkblist.c 18 May 2003 21:13:36 -0000
@@ -1319,11 +1320,11 @@
void gaim_gtk_blist_setup_sort_methods()
{
- gaim_gtk_blist_sort_method_reg("None", sort_method_none);
- gaim_gtk_blist_sort_method_reg("Alphabetical", sort_method_alphabetical);
- gaim_gtk_blist_sort_method_reg("By status", sort_method_status);
- gaim_gtk_blist_sort_method_reg("By log size", sort_method_log);
- gaim_gtk_blist_sort_method_set(sort_method[0] ? sort_method : "None");
+ gaim_gtk_blist_sort_method_reg(_("None"), sort_method_none);
+ gaim_gtk_blist_sort_method_reg(_("Alphabetical"), sort_method_alphabetical);
+ gaim_gtk_blist_sort_method_reg(_("By status"), sort_method_status);
+ gaim_gtk_blist_sort_method_reg(_("By log size"), sort_method_log);
+ gaim_gtk_blist_sort_method_set(sort_method[0] ? sort_method : _("None"));
}
@@ -2229,15 +2230,23 @@
if (n && GAIM_BLIST_NODE_IS_BUDDY(n)) {
struct buddy *new = (struct buddy*)node, *it = (struct buddy*)n;
- - if (it->idle > new->idle)
+ printf("Add %s (%d) before %s (%d)... ", new->name, new->idle, it->name, it->idle);
+ + /* This is the worst if statement ever. */
+ if ((it->present < new->present) ||
+ ((it->present == new->present) && (it->uc & UC_UNAVAILABLE) > (new->uc & UC_UNAVAILABLE)) ||
+ ((it->present == new->present) && ((it->uc & UC_UNAVAILABLE) == (new->uc & UC_UNAVAILABLE)) &&
+ ((it->idle && !new->idle) || (it->idle && (it->idle < new->idle)))) ||
+ + ((it->present == new->present) && (it->uc & UC_UNAVAILABLE) == (new->uc & UC_UNAVAILABLE) && (it->idle == new->idle) &&
+ (gaim_utf8_strcasecmp(gaim_get_buddy_alias((struct buddy*)node), gaim_get_buddy_alias((struct buddy*)n)) < 0)))
{
- printf("Inserting %s before %s\n", new->name, it->name);
+ printf("yes\n");
gtk_tree_store_insert_before(gtkblist->treemodel, &iter, &groupiter, &more_z);
newpath = gtk_tree_model_get_path(GTK_TREE_MODEL(gtkblist->treemodel), &iter);
gtknode->row = gtk_tree_row_reference_new(GTK_TREE_MODEL(gtkblist->treemodel), newpath);
gtk_tree_path_free(newpath);
return iter;
}
+ printf("no\n");
g_value_unset(&val);
}
} while (gtk_tree_model_iter_next (GTK_TREE_MODEL(gtkblist->treemodel), &more_z));
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sun, 18 May 2003 21:17:31 +0000 |
parents | 991bf4e3c9fe |
children |
line wrap: on
line source
/* XPM */ static char * plugins_xpm[] = { "24 24 74 1", " c None", ". c #000000", "+ c #B2A97E", "@ c #B6AD81", "# c #7A7356", "$ c #B0A77C", "% c #B5AC80", "& c #BAB184", "* c #BBB284", "= c #B6AD80", "- c #ADA57B", "; c #B7AE81", "> c #BDB486", ", c #837C5C", "' c #B4AC80", ") c #7C7557", "! c #C0B687", "~ c #BEB586", "{ c #B1A87D", "] c #B9B082", "^ c #C0B788", "/ c #AFA77C", "( c #BAB183", "_ c #BBB285", ": c #BCB385", "< c #C4BB8B", "[ c #C6BC8C", "} c #C7BD8D", "| c #C7BE8D", "1 c #C8BF8E", "2 c #C8BE8D", "3 c #C5BC8B", "4 c #C1B788", "5 c #CDC391", "6 c #D0C693", "7 c #D1C794", "8 c #D3C995", "9 c #CDC491", "0 c #C2B889", "a c #CAC18F", "b c #D5CB97", "c c #D6CC97", "d c #D6CC98", "e c #D7CD98", "f c #CEC491", "g c #C2B98A", "h c #CBC18F", "i c #C1B889", "j c #8A8261", "k c #D4CA96", "l c #80785A", "m c #B9B183", "n c #827C5B", "o c #CFC592", "p c #C7BD8C", "q c #C3BA8A", "r c #CAC08F", "s c #D0C793", "t c #7C7657", "u c #D2C894", "v c #D2C995", "w c #CCC290", "x c #C4BA8A", "y c #D1C793", "z c #CEC592", "A c #C5BC8C", "B c #CFC693", "C c #C1B888", "D c #C8BF8D", "E c #C9C08F", "F c #C9BF8E", "G c #C5BB8B", "H c #C2B989", "I c #BFB687", " ", " ", " ", " .... ", " .+.@#. ", " .$%&*=-. ", " ..;>,$.. ", " .-')!~@. ... ", " ..{]~^.. . / . . ", " .#.(#. ..&_:.. . ", " . .. <[}|12134 . ", " .156788791. ", " .0a7bcdec8f.. ", " . gh7cij|ek62 . ", " .*ga7blmnekop~. ", " . qr6kstruvwx . ", " ..29u8oyuz2.. ", " .ArfB6ow2C. ", " . q[DEF|G^* . ", " . ..H0I.. . ", " . . ( . . ", " ... ", " ", " "};