mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
463c26358c
commit
d9f91432c9
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user