Skip to content

Commit

Permalink
Add Collections to Shortcuts bar
Browse files Browse the repository at this point in the history
  • Loading branch information
caclark committed Sep 10, 2017
1 parent 435f7c0 commit 876de3d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
15 changes: 14 additions & 1 deletion doc/docbook/GuideMainWindowFolderPane.xml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,21 @@
</section>
<section id="Shortcutslist">
<title>Shortcuts</title>
<para>This is a list of shortcuts (bookmarks) to commonly used folders or images. A context menu will appear by right clicking on an item, or pressing the menu key when the item has the focus.</para>
<para>This is a list of shortcuts (bookmarks) to commonly used folders, images and collections. A context menu will appear by right clicking on an item, or pressing the menu key when the item has the focus.</para>
<para>Folders or images can be added to the list by activating the Add button at the bottom of the pane, or dragging a folder or image onto the list.</para>
<para>
Collections may be added by opening the
<menuchoice>
<shortcut>
<keycombo>
<keycap>O</keycap>
</keycombo>
</shortcut>
<guimenu>File</guimenu>
<guimenuitem>Open collection...</guimenuitem>
</menuchoice>
dialog and dragging a collection onto the list.
</para>
<para>
To edit an item select
<emphasis role="bold">Properties</emphasis>
Expand Down
11 changes: 10 additions & 1 deletion src/shortcuts.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "main.h"
#include "shortcuts.h"

#include "collect.h"
#include "layout.h"
#include "utilops.h"
#include "ui_bookmark.h"
Expand All @@ -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)
Expand Down

0 comments on commit 876de3d

Please sign in to comment.