Commit 5ffc0826 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent d47f64ac
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
......
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
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment