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)
This commit is contained in:
Matthias Clasen 2004-10-31 18:26:49 +00:00 committed by Matthias Clasen
parent 463c26358c
commit d9f91432c9
5 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,8 @@
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.

View File

@ -1,5 +1,8 @@
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.

View File

@ -1,5 +1,8 @@
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.

View File

@ -1,5 +1,8 @@
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.

View File

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