Guard against NULL. (#330177, Raphael Slinckx)

2006-02-10  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected):
	Guard against NULL.  (#330177, Raphael Slinckx)
This commit is contained in:
Matthias Clasen 2006-02-10 19:19:54 +00:00 committed by Matthias Clasen
parent d47f64aca9
commit 5ffc0826ed
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-02-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected):
Guard against NULL. (#330177, Raphael Slinckx)
2006-02-10 Murray Cumming <murrayc@murrayc.com>
* docs/reference/gtk/tmpl/gtkcomboboxentry.sgml: Mention that

View File

@ -1,3 +1,8 @@
2006-02-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentrycompletion.c (gtk_entry_completion_match_selected):
Guard against NULL. (#330177, Raphael Slinckx)
2006-02-10 Murray Cumming <murrayc@murrayc.com>
* docs/reference/gtk/tmpl/gtkcomboboxentry.sgml: Mention that

View File

@ -1488,7 +1488,7 @@ gtk_entry_completion_match_selected (GtkEntryCompletion *completion,
gchar *str = NULL;
gtk_tree_model_get (model, iter, completion->priv->text_column, &str, -1);
gtk_entry_set_text (GTK_ENTRY (completion->priv->entry), str);
gtk_entry_set_text (GTK_ENTRY (completion->priv->entry), str ? str : "");
/* move cursor to the end */
gtk_editable_set_position (GTK_EDITABLE (completion->priv->entry), -1);