[gtk+/gtk-3-6] Remove bookmark duplicate of shortcut



commit 3ad6d77d45feebdcb1fb41874b70c1f3111c5676
Author: Timothy Arceri <t_arceri yahoo com au>
Date:   Wed Oct 31 22:05:48 2012 +1100

    Remove bookmark duplicate of shortcut
    
    Application code can set shortcut folders that are already bookmarks.
    This code causes the bookmarks to be refreshed after the shortcut is
    added removing any possible bookmark duplicates
    
    https://bugzilla.gnome.org/show_bug.cgi?id=577806

 gtk/gtkfilechooserdefault.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index 09d6303..ceab128 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -7978,6 +7978,9 @@ add_shortcut_get_info_cb (GCancellable *cancellable,
 
   shortcuts_insert_file (data->impl, pos, SHORTCUT_TYPE_FILE, NULL, data->file, NULL, FALSE, SHORTCUTS_SHORTCUTS);
 
+  /* need to call shortcuts_add_bookmarks to flush out any duplicates bug #577806 */
+  shortcuts_add_bookmarks (data->impl);
+
 out:
   g_object_unref (data->impl);
   g_object_unref (data->file);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]