Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/gtk/gtksavedstatuses.c Mon Jan 15 23:19:12 2007 +0000 +++ b/gtk/gtksavedstatuses.c Mon Jan 15 23:33:50 2007 +0000 @@ -304,7 +304,11 @@ char *title; selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(dialog->treeview)); - sel_paths = gtk_tree_selection_get_selected_rows(selection, &model); +#if GTK_CHECK_VERSION(2,2,0) + sel_paths = gtk_tree_selection_get_selected_rows(selection, NULL); +#else + gtk_tree_selection_selected_foreach(selection, list_selected_helper, &sel_paths); +#endif /* This is ugly because we're not allowed to modify the model from within * gtk_tree_selection_selected_foreach() and the GtkTreePaths can become invalid