From e16bf0fd915afbacca1ea0fe326f9b9fc12589a5 Mon Sep 17 00:00:00 2001 From: Alan Fitton Date: Mon, 12 Sep 2011 21:16:24 +0000 Subject: up/down queue keys with alt + up/down --- src/torrent.c | 2 +- src/trg-main-window.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/torrent.c b/src/torrent.c index b848629..c4cb2c8 100644 --- a/src/torrent.c +++ b/src/torrent.c @@ -305,7 +305,7 @@ gchar *torrent_get_status_string(gint64 rpcv, gint64 value) } } - g_warning("Unknown status: %ld", value); + //g_warning("Unknown status: %ld", value); return g_strdup(_("Unknown")); } diff --git a/src/trg-main-window.c b/src/trg-main-window.c index dc8374d..ee48abe 100644 --- a/src/trg-main-window.c +++ b/src/trg-main-window.c @@ -1308,11 +1308,16 @@ static void clear_filter_entry_cb(GtkWidget * w, gpointer data G_GNUC_UNUSED) { static gboolean torrent_tv_key_press_event(GtkWidget * w, GdkEventKey * key, gpointer data) { + TrgMainWindowPrivate *priv = TRG_MAIN_WINDOW_GET_PRIVATE(data); if (key->keyval == GDK_Delete) { if (key->state & GDK_SHIFT_MASK) delete_cb(w, data); else remove_cb(w, data); + } else if (priv->queuesEnabled && (key->state & GDK_MOD1_MASK) && key->keyval == GDK_Up) { + up_queue_cb(w, data); + } else if (priv->queuesEnabled && (key->state & GDK_MOD1_MASK) && key->keyval == GDK_Down) { + down_queue_cb(w, data); } return FALSE; } -- cgit v1.2.3