mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
Set model in all cases. (#357791, Andreas Köhler)
2006-10-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_get_selected_rows): Set model in all cases. (#357791, Andreas Köhler)
This commit is contained in:
parent
3fc307a069
commit
c247b1bc4a
@ -413,13 +413,13 @@ gtk_tree_selection_get_selected_rows (GtkTreeSelection *selection,
|
||||
g_return_val_if_fail (GTK_IS_TREE_SELECTION (selection), NULL);
|
||||
g_return_val_if_fail (selection->tree_view != NULL, NULL);
|
||||
|
||||
if (model)
|
||||
*model = selection->tree_view->priv->model;
|
||||
|
||||
if (selection->tree_view->priv->tree == NULL ||
|
||||
selection->tree_view->priv->tree->root == NULL)
|
||||
return NULL;
|
||||
|
||||
if (model)
|
||||
*model = selection->tree_view->priv->model;
|
||||
|
||||
if (selection->type == GTK_SELECTION_NONE)
|
||||
return NULL;
|
||||
else if (selection->type != GTK_SELECTION_MULTIPLE)
|
||||
|
Loading…
Reference in New Issue
Block a user