Mercurial > pidgin.yaz
diff src/gtkstatus.c @ 10337:682201b69107
[gaim-migrate @ 11545]
* Preliminary reading of status.xml using xmlnode.[h|c]
* I made a few changes the blist.xml readering code that I think makes
it cleaner
* "gaim_statuses_find_saved" makes more sense to me than
"gaim_statuses_find_stored"
* struct GaimStatus isn't really supposed to be used for keeping the
saved statuses, is it? I don't see how that would work. It seems
to make more sense to have a separate data structure for it. Maybe
I'm not seeing things clearly.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Dec 2004 03:55:19 +0000 |
parents | 1657438d537b |
children | 64bc206c7473 |
line wrap: on
line diff
--- a/src/gtkstatus.c Thu Dec 09 03:10:30 2004 +0000 +++ b/src/gtkstatus.c Thu Dec 09 03:55:19 2004 +0000 @@ -421,20 +421,19 @@ populate_saved_status_list(StatusWindow *dialog) { GtkTreeIter iter; + const GList *saved_statuses; + GaimStatusSaved *saved_status; gtk_list_store_clear(dialog->model); - gtk_list_store_append(dialog->model, &iter); - gtk_list_store_set(dialog->model, &iter, 0, "Dinner time!", -1); - - gtk_list_store_append(dialog->model, &iter); - gtk_list_store_set(dialog->model, &iter, 0, "I am not here because I am cow tipping with Jimmy.", -1); - - gtk_list_store_append(dialog->model, &iter); - gtk_list_store_set(dialog->model, &iter, 0, "Picking up the kids from the zoo.", -1); - - gtk_list_store_append(dialog->model, &iter); - gtk_list_store_set(dialog->model, &iter, 0, "In a meeting discussing what to do when King Kong gets here.", -1); + for (saved_statuses = gaim_statuses_get_saved(); saved_statuses != NULL; + saved_statuses = g_list_next(saved_statuses)) + { + saved_status = (GaimStatusSaved *)saved_statuses->data; + gtk_list_store_append(dialog->model, &iter); + gtk_list_store_set(dialog->model, &iter, 0, + gaim_statuses_saved_get_name(saved_status), -1); + } } static GtkWidget *