Merge pull request #158 from spark4160/queue-hotkeys

Added queue up/down hotkeys to the Qt & GTK+ clients.
This commit is contained in:
Mike Gelfand 2017-05-01 19:11:11 +03:00 committed by GitHub
commit 0545d06eb7
2 changed files with 8 additions and 2 deletions

View File

@ -109,8 +109,8 @@ static GtkActionEntry entries[] =
{ "help", GTK_STOCK_HELP, N_("_Contents"), "F1", NULL, G_CALLBACK(action_cb) },
{ "torrent-reannounce", GTK_STOCK_NETWORK, N_("Ask Tracker for _More Peers"), NULL, NULL, G_CALLBACK(action_cb) },
{ "queue-move-top", GTK_STOCK_GOTO_TOP, N_("Move to _Top"), NULL, NULL, G_CALLBACK(action_cb) },
{ "queue-move-up", GTK_STOCK_GO_UP, N_("Move _Up"), NULL, NULL, G_CALLBACK(action_cb) },
{ "queue-move-down", GTK_STOCK_GO_DOWN, N_("Move _Down"), NULL, NULL, G_CALLBACK(action_cb) },
{ "queue-move-up", GTK_STOCK_GO_UP, N_("Move _Up"), "<control>Up", NULL, G_CALLBACK(action_cb) },
{ "queue-move-down", GTK_STOCK_GO_DOWN, N_("Move _Down"), "<control>Down", NULL, G_CALLBACK(action_cb) },
{ "queue-move-bottom", GTK_STOCK_GOTO_BOTTOM, N_("Move to _Bottom"), NULL, NULL, G_CALLBACK(action_cb) },
{ "present-main-window", NULL, N_("Present Main Window"), NULL, NULL, G_CALLBACK(action_cb) }
};

View File

@ -753,11 +753,17 @@
<property name="text">
<string>Move &amp;Up</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+Up</string>
</property>
</action>
<action name="action_QueueMoveDown">
<property name="text">
<string>Move &amp;Down</string>
</property>
<property name="shortcut">
<string notr="true">Ctrl+Down</string>
</property>
</action>
<action name="action_QueueMoveBottom">
<property name="text">