aboutsummaryrefslogtreecommitdiff
path: root/main/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-12-17 22:54:08 +0100
committerfiaxh <git@lightrise.org>2019-12-17 23:47:57 +0100
commit97647f9b5251dfc7a5a84d7432a1914fa7ec66b9 (patch)
tree1ae43dde46cb1017f402dadc86214ed6f39a3072 /main/src
parent11c18cdf72f36a36b52d8305d24418397af21785 (diff)
downloaddino-97647f9b5251dfc7a5a84d7432a1914fa7ec66b9.tar.gz
dino-97647f9b5251dfc7a5a84d7432a1914fa7ec66b9.zip
Add shortcuts window
Diffstat (limited to 'main/src')
-rw-r--r--main/src/ui/application.vala9
1 files changed, 9 insertions, 0 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index f031bf43..0f932d18 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -140,6 +140,15 @@ public class Dino.Ui.Application : Gtk.Application, Dino.Application {
loop_conversations_bw_action.activate.connect(() => { window.loop_conversations(true); });
add_action(loop_conversations_bw_action);
set_accels_for_action("app.loop_conversations_bw", new string[]{"<Ctrl><Shift>Tab"});
+
+ SimpleAction open_shortcuts_action = new SimpleAction("open_shortcuts", null);
+ open_shortcuts_action.activate.connect((variant) => {
+ Builder builder = new Builder.from_resource("/im/dino/Dino/shortcuts.ui");
+ var dialog = (ShortcutsWindow) builder.get_object("shortcuts-window");
+ dialog.set_transient_for(get_active_window());
+ dialog.present();
+ });
+ add_action(open_shortcuts_action);
}
public bool use_csd() {