mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
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]
This commit is contained in:
parent
65ae6ba3d2
commit
189c9a2a08
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user