Skip to content

Commit 7a290ef

Browse files
committed
Add 'Get Your IP' shortcut
1 parent 16264f9 commit 7a290ef

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/gtk/help-overlay.ui

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
<child>
1010
<object class="GtkShortcutsGroup">
1111
<property name="title" translatable="yes" context="shortcut window">General</property>
12+
<child>
13+
<object class="GtkShortcutsShortcut">
14+
<property name="title" translatable="yes" context="shortcut window">Get Your IP</property>
15+
<property name="action-name">app.get-your-ip</property>
16+
</object>
17+
</child>
1218
<child>
1319
<object class="GtkShortcutsShortcut">
1420
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self):
3636
flags=Gio.ApplicationFlags.FLAGS_NONE)
3737
self.create_action('quit', self.on_quit_action, ['<primary>q'])
3838
self.create_action('about', self.on_about_action)
39-
self.create_action('get-your-ip', self.on_get_your_ip_action)
39+
self.create_action('get-your-ip', self.on_get_your_ip_action, ['<primary>g'])
4040

4141
def do_activate(self):
4242
"""Called when the application is activated.

0 commit comments

Comments
 (0)