mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 21:40:22 +00:00
Reset the state on dispose.
2007-05-18 Emmanuele Bassi <ebassi@gnome.org> * gtk/gtkrecentchooserdefault.c: (gtk_recent_chooser_default_dispose): Reset the state on dispose. (cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY is a valid state, if the main loop never had the chance to properly spin at least once. (#438671) svn path=/trunk/; revision=17866
This commit is contained in:
parent
963067da78
commit
52119349f6
@ -1,3 +1,12 @@
|
||||
2007-05-18 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkrecentchooserdefault.c:
|
||||
(gtk_recent_chooser_default_dispose): Reset the state on dispose.
|
||||
|
||||
(cleanup_after_load): load_id != 0 && load_state == LOAD_EMPTY
|
||||
is a valid state, if the main loop never had the chance to
|
||||
properly spin at least once. (#438671)
|
||||
|
||||
2007-05-18 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtkrecentchooserdefault.c (recent_meta_data_func): Mark
|
||||
|
@ -590,6 +590,7 @@ gtk_recent_chooser_default_dispose (GObject *object)
|
||||
if (impl->load_id)
|
||||
{
|
||||
g_source_remove (impl->load_id);
|
||||
impl->load_state = LOAD_EMPTY;
|
||||
impl->load_id = 0;
|
||||
}
|
||||
|
||||
@ -839,7 +840,8 @@ cleanup_after_load (gpointer user_data)
|
||||
|
||||
if (impl->load_id != 0)
|
||||
{
|
||||
g_assert ((impl->load_state == LOAD_PRELOAD) ||
|
||||
g_assert ((impl->load_state == LOAD_EMPTY) ||
|
||||
(impl->load_state == LOAD_PRELOAD) ||
|
||||
(impl->load_state == LOAD_LOADING) ||
|
||||
(impl->load_state == LOAD_FINISHED));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user