Index: gtk/rgfetchprogress.cc =================================================================== --- gtk/rgfetchprogress.cc (revision 191) +++ gtk/rgfetchprogress.cc (working copy) @@ -353,7 +353,8 @@ GtkTreePath *path; if (append == true) { gtk_list_store_insert(_tableListStore, &iter, row); - path = gtk_tree_path_new_from_indices(row, -1); + path = gtk_tree_path_new(); + gtk_tree_path_append_index(path, row); gtk_tree_view_set_cursor(GTK_TREE_VIEW(_table), path, NULL, false); gtk_tree_path_free(path); // can't we use the iterator here? Index: gtk/gtkpkglist.cc =================================================================== --- gtk/gtkpkglist.cc (revision 191) +++ gtk/gtkpkglist.cc (working copy) @@ -77,7 +77,9 @@ iter.user_data = List[i]; iter.user_data2 = GINT_TO_POINTER(i); // fill in treepath - GtkTreePath *path = gtk_tree_path_new_from_indices(i,-1); + GtkTreePath *path = gtk_tree_path_new(); + gtk_tree_path_append_index(path, i); + gtk_tree_model_row_changed(GTK_TREE_MODEL(_pkgList), path, &iter); gtk_tree_path_free(path); @@ -101,7 +103,8 @@ if(_lastDisplayList[j] == List[i]) break; // cout << "removed at pos: " << j << endl; - GtkTreePath *path = gtk_tree_path_new_from_indices(j,-1); + GtkTreePath *path = gtk_tree_path_new(); + gtk_tree_path_append_index(path,j); gtk_tree_model_row_deleted(GTK_TREE_MODEL(_pkgList), path); gtk_tree_path_free(path); } @@ -110,7 +113,9 @@ if(_lister->getElement(j) == List[i]) break; // cout << "inserted " << List[i]->name() << " at pos: " << j << endl; - GtkTreePath *path = gtk_tree_path_new_from_indices(j,-1); + GtkTreePath *path = gtk_tree_path_new(); + gtk_tree_path_append_index(path,j); + iter.user_data = List[i]; iter.user_data2 = GINT_TO_POINTER(j); iter.stamp = 140677; Index: gtk/rgmainwindow.cc =================================================================== --- gtk/rgmainwindow.cc (revision 191) +++ gtk/rgmainwindow.cc (working copy) @@ -115,6 +115,8 @@ #if ! GTK_CHECK_VERSION(2,2,0) // this function is needed to be compatible with gtk2.0 +// data takes a GList** and fills the list with GtkTreePathes +// (just like the return of gtk_tree_selection_get_selected_rows()) void multipleSelectionHelper(GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, Index: gtk/rgfiltermanager.cc =================================================================== --- gtk/rgfiltermanager.cc (revision 191) +++ gtk/rgfiltermanager.cc (working copy) @@ -31,6 +31,14 @@ #include "rgfiltermanager.h" +#if ! GTK_CHECK_VERSION(2,2,0) +extern void multipleSelectionHelper(GtkTreeModel *model, + GtkTreePath *path, + GtkTreeIter *iter, + gpointer data); +#endif + + RGFilterManagerWindow::RGFilterManagerWindow(RGWindow *win, RPackageLister *lister) : RGGladeWindow(win, "filters"), _selectedPath(NULL), @@ -599,7 +607,12 @@ f.clear(); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(_sectionList)); +#if GTK_CHECK_VERSION(2,2,0) list = gtk_tree_selection_get_selected_rows(selection, NULL); +#else + gtk_tree_selection_selected_foreach(selection, multipleSelectionHelper, + &list); +#endif while (list) { if(gtk_tree_model_get_iter(GTK_TREE_MODEL(_sectionListStore), Index: common/rpackage.cc =================================================================== --- common/rpackage.cc (revision 191) +++ common/rpackage.cc (working copy) @@ -35,6 +35,7 @@ #include "i18n.h" #include +#include #include #include #include Index: common/raptoptions.cc =================================================================== --- common/raptoptions.cc (revision 191) +++ common/raptoptions.cc (working copy) @@ -25,7 +25,7 @@ #include "config.h" #include "i18n.h" #include -#include +#include #include #include @@ -89,7 +89,7 @@ // new stuff while(!in.eof()) { getline(in, line); - istrstream strstr(line.c_str()); + istringstream strstr(line.c_str()); strstr >> pkg >> o >> ws; _packageOptions[pkg] = o; } Index: NEWS =================================================================== --- NEWS (revision 191) +++ NEWS (working copy) @@ -9,6 +9,8 @@ later reload them) - should build with gtk2.0 again (for all people that use RH8.x or UnitedLinux 1.0) + - a new "not installable" filter was added + - search for multiple words improved 0.36 - new filter dialog