Commit a2cb3433 authored by Matthias Clasen's avatar Matthias Clasen

fix recent files issues

parent d9f077ff
2006-08-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentchooser.c (gtk_recent_chooser_get_uris): Behave as
documented and always return a NULL-terminated array.
* gtk/gtkrecentmanager.c (gtk_recent_manager_real_changed): Make sure
to reset write_in_progress.
2006-08-17 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
......
2006-08-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentchooser.c (gtk_recent_chooser_get_uris): Behave as
documented and always return a NULL-terminated array.
* gtk/gtkrecentmanager.c (gtk_recent_manager_real_changed): Make sure
to reset write_in_progress.
2006-08-17 Matthias Clasen <mclasen@redhat.com>
* configure.in: Bump version
......
......@@ -836,8 +836,6 @@ gtk_recent_chooser_get_uris (GtkRecentChooser *chooser,
gsize n_items, i;
items = gtk_recent_chooser_get_items (chooser);
if (!items)
return NULL;
n_items = g_list_length (items);
retval = g_new0 (gchar *, n_items + 1);
......
......@@ -402,6 +402,7 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager)
g_bookmark_file_to_file (priv->recent_items,
priv->filename,
&write_error);
if (write_error)
{
filename_warning ("Attempting to store changes into `%s', "
......@@ -411,6 +412,8 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager)
g_error_free (write_error);
}
priv->write_in_progress = FALSE;
/* we have sync'ed our list with the storage file, so we
* update the file mtime in order to skip the timed check
* and spare us from a re-read.
......@@ -422,8 +425,6 @@ gtk_recent_manager_real_changed (GtkRecentManager *manager)
priv->filename,
g_strerror (errno));
priv->write_in_progress = FALSE;
g_object_thaw_notify (G_OBJECT (manager));
return;
......
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