Include a Other Software section in Help file
[geeqie.git] / src / shortcuts.c
index c801fc8..fba8831 100644 (file)
@@ -22,6 +22,7 @@
 #include "main.h"
 #include "shortcuts.h"
 
+#include "collect.h"
 #include "layout.h"
 #include "utilops.h"
 #include "ui_bookmark.h"
@@ -47,7 +48,15 @@ static void shortcuts_bookmark_select(const gchar *path, gpointer data)
 {
        ShortcutsData *scd = data;
 
-       layout_set_path(scd->lw, path);
+       if (file_extension_match(path, GQ_COLLECTION_EXT))
+               {
+               collection_window_new(path);
+               }
+       else
+               {
+               layout_set_path(scd->lw, path);
+               }
+
 }
 
 static void shortcuts_add_close(ShortcutsData *scd)
@@ -100,7 +109,7 @@ static void shortcuts_add_cb(GtkWidget *button, gpointer data)
                                        shortcuts_add_cancel_cb, scd);
        file_dialog_add_button(scd->dialog, GTK_STOCK_OK, NULL, shortcuts_add_ok_cb, TRUE);
 
-       generic_dialog_add_message(GENERIC_DIALOG(scd->dialog), NULL, title, NULL);
+       generic_dialog_add_message(GENERIC_DIALOG(scd->dialog), NULL, title, NULL, FALSE);
 
        file_dialog_add_path_widgets(scd->dialog, NULL, NULL, "add_shortcuts", NULL, NULL);