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:
Matthias Clasen 2004-10-06 18:51:03 +00:00 committed by Matthias Clasen
parent 5fde6ffa0b
commit cd79561f8f
5 changed files with 16 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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;