Fix #150406, reported by Fernando San Martín Woerner, patch by Gustavo
Sun Aug 22 00:08:44 2004 Matthias Clasen <maclas@gmx.de> Fix #150406, reported by Fernando San Martín Woerner, patch by Gustavo Carneiro. * gtk/gtkentrycompletion.c (gtk_entry_completion_default_completion_func): Check that column is of type G_TYPE_STRING before proceeding.
This commit is contained in:

committed by
Matthias Clasen

parent
54938b0c6d
commit
07b5626f00
@ -1,3 +1,12 @@
|
|||||||
|
Sun Aug 22 00:08:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
Fix #150406, reported by Fernando San Martín Woerner, patch
|
||||||
|
by Gustavo Carneiro.
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c
|
||||||
|
(gtk_entry_completion_default_completion_func): Check that
|
||||||
|
column is of type G_TYPE_STRING before proceeding.
|
||||||
|
|
||||||
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sun Aug 22 00:08:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
Fix #150406, reported by Fernando San Martín Woerner, patch
|
||||||
|
by Gustavo Carneiro.
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c
|
||||||
|
(gtk_entry_completion_default_completion_func): Check that
|
||||||
|
column is of type G_TYPE_STRING before proceeding.
|
||||||
|
|
||||||
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sun Aug 22 00:08:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
Fix #150406, reported by Fernando San Martín Woerner, patch
|
||||||
|
by Gustavo Carneiro.
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c
|
||||||
|
(gtk_entry_completion_default_completion_func): Check that
|
||||||
|
column is of type G_TYPE_STRING before proceeding.
|
||||||
|
|
||||||
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
Sun Aug 22 00:08:44 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
Fix #150406, reported by Fernando San Martín Woerner, patch
|
||||||
|
by Gustavo Carneiro.
|
||||||
|
|
||||||
|
* gtk/gtkentrycompletion.c
|
||||||
|
(gtk_entry_completion_default_completion_func): Check that
|
||||||
|
column is of type G_TYPE_STRING before proceeding.
|
||||||
|
|
||||||
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
Sat Aug 21 23:52:13 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
* gtk/gtktreestore.c (gtk_tree_store_swap): Don't use an
|
||||||
|
@ -675,6 +675,9 @@ gtk_entry_completion_default_completion_func (GtkEntryCompletion *completion,
|
|||||||
|
|
||||||
model = gtk_tree_model_filter_get_model (completion->priv->filter_model);
|
model = gtk_tree_model_filter_get_model (completion->priv->filter_model);
|
||||||
|
|
||||||
|
g_return_val_if_fail (gtk_tree_model_get_column_type (model, completion->priv->text_column) == G_TYPE_STRING,
|
||||||
|
FALSE);
|
||||||
|
|
||||||
gtk_tree_model_get (model, iter,
|
gtk_tree_model_get (model, iter,
|
||||||
completion->priv->text_column, &item,
|
completion->priv->text_column, &item,
|
||||||
-1);
|
-1);
|
||||||
|
Reference in New Issue
Block a user