From: Simon Tatham Date: Wed, 11 Jun 2008 18:03:35 +0000 (+0000) Subject: Work around a bug in early versions of GTK (which I'm still forced X-Git-Tag: 0.61~244 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=189c9a2a08198ce11bfae1f8630b3792012dedcf;p=PuTTY.git Work around a bug in early versions of GTK (which I'm still forced to use, gah) in which the "model" argument to gtk_tree_selection_get_selected_rows() couldn't be NULL. [originally from svn r8069] --- diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 53a70259..d48a3162 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -701,6 +701,7 @@ int dlg_listbox_index(union control *ctrl, void *dlg) if (uc->treeview) { GtkTreeSelection *treesel; GtkTreePath *path; + GtkTreeModel *model; GList *sellist; gint *indices; int ret; @@ -711,7 +712,7 @@ int dlg_listbox_index(union control *ctrl, void *dlg) if (gtk_tree_selection_count_selected_rows(treesel) != 1) return -1; - sellist = gtk_tree_selection_get_selected_rows(treesel, NULL); + sellist = gtk_tree_selection_get_selected_rows(treesel, &model); assert(sellist && sellist->data); path = sellist->data;