forked from AuroraMiddleware/gtk
Clear the iter instead of returning it unmodified. (#154186, Jonathan
2004-10-06 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
This commit is contained in:
parent
5fde6ffa0b
commit
cd79561f8f
@ -1,5 +1,8 @@
|
|||||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
|
||||||
|
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
|
||||||
|
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
|
||||||
|
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
2004-10-06 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtktreeselection.c (gtk_tree_selection_get_selected): Clear
|
||||||
|
the iter instead of returning it unmodified. (#154186, Jonathan Blandford)
|
||||||
|
|
||||||
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
* gtk/gtkfilechooserentry.c (gtk_file_chooser_entry_focus): Pop up
|
||||||
the completions again after tab. (#147700, Jens Bech Madsen)
|
the completions again after tab. (#147700, Jens Bech Madsen)
|
||||||
|
|
||||||
|
@ -364,6 +364,10 @@ gtk_tree_selection_get_selected (GtkTreeSelection *selection,
|
|||||||
g_return_val_if_fail (selection->type != GTK_SELECTION_MULTIPLE, FALSE);
|
g_return_val_if_fail (selection->type != GTK_SELECTION_MULTIPLE, FALSE);
|
||||||
g_return_val_if_fail (selection->tree_view != NULL, FALSE);
|
g_return_val_if_fail (selection->tree_view != NULL, FALSE);
|
||||||
|
|
||||||
|
/* Clear the iter */
|
||||||
|
if (iter)
|
||||||
|
memset (iter, 0, sizeof (GtkTreeIter));
|
||||||
|
|
||||||
if (model)
|
if (model)
|
||||||
*model = selection->tree_view->priv->model;
|
*model = selection->tree_view->priv->model;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user