Mercurial > pidgin.yaz
comparison src/gtkroomlist.c @ 8584:058efd3cb86f
[gaim-migrate @ 9334]
" This is definitely not the most critical fix, but every
time i see the text "catagory" my eyes bleed a little bit.
This should remedy this unnecessary loss of blood -
hopefully this way i can make my visits to the Red
Cross more frequent." --Daniel Atallah
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 05 Apr 2004 17:33:34 +0000 |
parents | 6d8ec773a485 |
children | fd1a4ff1f7ed |
comparison
equal
deleted
inserted
replaced
8583:fc27237783ee | 8584:058efd3cb86f |
---|---|
269 } | 269 } |
270 | 270 |
271 static void row_expanded_cb(GtkTreeView *treeview, GtkTreeIter *arg1, GtkTreePath *arg2, gpointer user_data) | 271 static void row_expanded_cb(GtkTreeView *treeview, GtkTreeIter *arg1, GtkTreePath *arg2, gpointer user_data) |
272 { | 272 { |
273 GaimRoomlist *list = user_data; | 273 GaimRoomlist *list = user_data; |
274 GaimRoomlistRoom *catagory; | 274 GaimRoomlistRoom *category; |
275 GValue val = { 0, }; | 275 GValue val = { 0, }; |
276 | 276 |
277 gtk_tree_model_get_value(gtk_tree_view_get_model(treeview), arg1, ROOM_COLUMN, &val); | 277 gtk_tree_model_get_value(gtk_tree_view_get_model(treeview), arg1, ROOM_COLUMN, &val); |
278 catagory = g_value_get_pointer(&val); | 278 category = g_value_get_pointer(&val); |
279 | 279 |
280 if (!catagory->expanded_once) { | 280 if (!category->expanded_once) { |
281 gaim_roomlist_expand_catagory(list, catagory); | 281 gaim_roomlist_expand_category(list, category); |
282 catagory->expanded_once = TRUE; | 282 category->expanded_once = TRUE; |
283 } | 283 } |
284 } | 284 } |
285 | 285 |
286 static gboolean accounts_filter_func(GaimAccount *account) | 286 static gboolean accounts_filter_func(GaimAccount *account) |
287 { | 287 { |
655 if (append) | 655 if (append) |
656 gtk_tree_store_append(rl->model, &iter, (parentrr ? &parent : NULL)); | 656 gtk_tree_store_append(rl->model, &iter, (parentrr ? &parent : NULL)); |
657 else | 657 else |
658 iter = child; | 658 iter = child; |
659 | 659 |
660 if (room->type & GAIM_ROOMLIST_ROOMTYPE_CATAGORY) | 660 if (room->type & GAIM_ROOMLIST_ROOMTYPE_CATEGORY) |
661 gtk_tree_store_append(rl->model, &child, &iter); | 661 gtk_tree_store_append(rl->model, &child, &iter); |
662 | 662 |
663 path = gtk_tree_model_get_path(GTK_TREE_MODEL(rl->model), &iter); | 663 path = gtk_tree_model_get_path(GTK_TREE_MODEL(rl->model), &iter); |
664 | 664 |
665 if (room->type & GAIM_ROOMLIST_ROOMTYPE_CATAGORY) { | 665 if (room->type & GAIM_ROOMLIST_ROOMTYPE_CATEGORY) { |
666 rr = gtk_tree_row_reference_new(GTK_TREE_MODEL(rl->model), path); | 666 rr = gtk_tree_row_reference_new(GTK_TREE_MODEL(rl->model), path); |
667 g_hash_table_insert(rl->cats, room, rr); | 667 g_hash_table_insert(rl->cats, room, rr); |
668 } | 668 } |
669 | 669 |
670 gtk_tree_path_free(path); | 670 gtk_tree_path_free(path); |