forked from AuroraMiddleware/gtk
Handle double queuing, rather than asserting that it does not happen.
2006-03-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilechooserdefault.c (queue_edited_idle): Handle double queuing, rather than asserting that it does not happen. (#330617)
This commit is contained in:
parent
9bf4ee872c
commit
a560c6ba97
@ -1,3 +1,9 @@
|
||||
2006-03-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (queue_edited_idle): Handle
|
||||
double queuing, rather than asserting that it does not
|
||||
happen. (#330617)
|
||||
|
||||
2006-03-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_set_tab_detachable): Fix
|
||||
|
@ -1,3 +1,9 @@
|
||||
2006-03-29 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkfilechooserdefault.c (queue_edited_idle): Handle
|
||||
double queuing, rather than asserting that it does not
|
||||
happen. (#330617)
|
||||
|
||||
2006-03-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtknotebook.c (gtk_notebook_set_tab_detachable): Fix
|
||||
|
@ -1891,17 +1891,17 @@ queue_edited_idle (GtkFileChooserDefault *impl,
|
||||
* just now.
|
||||
*/
|
||||
|
||||
g_assert (!impl->edited_idle);
|
||||
g_assert (!impl->edited_new_text);
|
||||
if (!impl->edited_idle)
|
||||
{
|
||||
impl->edited_idle = g_idle_source_new ();
|
||||
g_source_set_closure (impl->edited_idle,
|
||||
g_cclosure_new_object (G_CALLBACK (edited_idle_cb),
|
||||
G_OBJECT (impl)));
|
||||
g_source_attach (impl->edited_idle, NULL);
|
||||
}
|
||||
|
||||
impl->edited_idle = g_idle_source_new ();
|
||||
g_source_set_closure (impl->edited_idle,
|
||||
g_cclosure_new_object (G_CALLBACK (edited_idle_cb),
|
||||
G_OBJECT (impl)));
|
||||
g_source_attach (impl->edited_idle, NULL);
|
||||
|
||||
if (new_text)
|
||||
impl->edited_new_text = g_strdup (new_text);
|
||||
g_free (impl->edited_new_text);
|
||||
impl->edited_new_text = g_strdup (new_text);
|
||||
}
|
||||
|
||||
/* Callback used from the text cell renderer when the new folder is named */
|
||||
|
Loading…
Reference in New Issue
Block a user