Mercurial > pidgin
comparison src/gtksavedstatuses.c @ 11889:04c2c3d84849
[gaim-migrate @ 14180]
Did I ever claim to know C? well then.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 29 Oct 2005 15:25:22 +0000 |
parents | 7d2d926704aa |
children | 351f4dd75718 |
comparison
equal
deleted
inserted
replaced
11888:7d2d926704aa | 11889:04c2c3d84849 |
---|---|
141 | 141 |
142 static void | 142 static void |
143 list_selected_helper(GtkTreeModel *model, GtkTreePath *path, | 143 list_selected_helper(GtkTreeModel *model, GtkTreePath *path, |
144 GtkTreeIter *iter, gpointer user_data) | 144 GtkTreeIter *iter, gpointer user_data) |
145 { | 145 { |
146 GList *list = (GList *)user_data; | 146 GList **list = (GList **)user_data; |
147 list = g_list_append(list, path); | 147 *list = g_list_append(*list, gtk_tree_path_copy(path)); |
148 } | 148 } |
149 #endif | 149 #endif |
150 | 150 |
151 static void | 151 static void |
152 status_window_use_cb(GtkButton *button, StatusWindow *dialog) | 152 status_window_use_cb(GtkButton *button, StatusWindow *dialog) |
153 { | 153 { |
154 GtkTreeSelection *selection; | 154 GtkTreeSelection *selection; |
155 GtkTreeIter iter; | 155 GtkTreeIter iter; |
156 GaimSavedStatus *saved_status; | 156 GaimSavedStatus *saved_status; |
157 GList *list; | 157 GList *list = NULL; |
158 int num_selected = 0; | 158 int num_selected = 0; |
159 | 159 |
160 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); | 160 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); |
161 | 161 |
162 #if GTK_CHECK_VERSION(2,2,0) | 162 #if GTK_CHECK_VERSION(2,2,0) |