Mercurial > pidgin.yaz
comparison gtk/gtksavedstatuses.c @ 15341:29e9a2373d32
[gaim-migrate @ 18133]
Fix GTK+ 2.0.0 compatibility before nosnilmot notices.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 15 Jan 2007 23:33:50 +0000 |
parents | 9ebc7fa9d556 |
children | f51862b1fd93 |
comparison
equal
deleted
inserted
replaced
15340:9ebc7fa9d556 | 15341:29e9a2373d32 |
---|---|
302 GList *sel_paths, *l, *sel_titles = NULL; | 302 GList *sel_paths, *l, *sel_titles = NULL; |
303 GtkTreeModel *model = GTK_TREE_MODEL(dialog->model); | 303 GtkTreeModel *model = GTK_TREE_MODEL(dialog->model); |
304 char *title; | 304 char *title; |
305 | 305 |
306 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); | 306 selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); |
307 sel_paths = gtk_tree_selection_get_selected_rows(selection, &model); | 307 #if GTK_CHECK_VERSION(2,2,0) |
308 sel_paths = gtk_tree_selection_get_selected_rows(selection, NULL); | |
309 #else | |
310 gtk_tree_selection_selected_foreach(selection, list_selected_helper, &sel_paths); | |
311 #endif | |
308 | 312 |
309 /* This is ugly because we're not allowed to modify the model from within | 313 /* This is ugly because we're not allowed to modify the model from within |
310 * gtk_tree_selection_selected_foreach() and the GtkTreePaths can become invalid | 314 * gtk_tree_selection_selected_foreach() and the GtkTreePaths can become invalid |
311 * when something is removed from the model. The selection can also change while | 315 * when something is removed from the model. The selection can also change while |
312 * the request dialog is displayed, so we need to capture the selected rows at this time. */ | 316 * the request dialog is displayed, so we need to capture the selected rows at this time. */ |