Commit d9f91432 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't try to remove stuff from an empty model. (#156575, Christian Persch)

2004-10-31  Matthias Clasen  <mclasen@redhat.com>

	* tests/testentrycompletion.c (animation_timer): Don't try to
	remove stuff from an empty model.  (#156575, Christian Persch)
parent 463c2635
2004-10-31 Matthias Clasen <mclasen@redhat.com>
* tests/testentrycompletion.c (animation_timer): Don't try to
remove stuff from an empty model. (#156575, Christian Persch)
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
Update doc comments.
......
2004-10-31 Matthias Clasen <mclasen@redhat.com>
* tests/testentrycompletion.c (animation_timer): Don't try to
remove stuff from an empty model. (#156575, Christian Persch)
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
Update doc comments.
......
2004-10-31 Matthias Clasen <mclasen@redhat.com>
* tests/testentrycompletion.c (animation_timer): Don't try to
remove stuff from an empty model. (#156575, Christian Persch)
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
Update doc comments.
......
2004-10-31 Matthias Clasen <mclasen@redhat.com>
* tests/testentrycompletion.c (animation_timer): Don't try to
remove stuff from an empty model. (#156575, Christian Persch)
* gtk/gtkentrycompletion.c (gtk_entry_completion_class_init):
* gtk/gtkcellrenderercombo.c (gtk_cell_renderer_combo_class_init):
Update doc comments.
......
......@@ -217,7 +217,7 @@ animation_timer (GtkEntryCompletion *completion)
{
g_print ("readding model!\n");
gtk_entry_completion_set_model (completion, GTK_TREE_MODEL(old_store));
gtk_entry_completion_set_model (completion, GTK_TREE_MODEL (old_store));
g_object_unref (old_store);
old_store = NULL;
}
......@@ -237,8 +237,8 @@ animation_timer (GtkEntryCompletion *completion)
}
else
{
gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter);
gtk_list_store_remove (store, &iter);
if (gtk_tree_model_get_iter_first (GTK_TREE_MODEL (store), &iter))
gtk_list_store_remove (store, &iter);
}
}
......
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