Skip to content

Commit 17e7642

Browse files
committed
data: Move the shortcut dialog UI to resource loading
We're using GTK+'s support for implicitly loading this from a well-known name.
1 parent 243f1f6 commit 17e7642

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

meld/meldwindow.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,6 @@ def __init__(self):
219219
rmenu = self.ui.get_widget('/Menubar/FileMenu/Recent').get_submenu()
220220
rmenu.connect("map", self._on_recentmenu_map)
221221

222-
builder = meld.ui.util.get_builder("shortcuts.ui")
223-
shortcut_window = builder.get_object("shortcuts-meld")
224-
self.set_help_overlay(shortcut_window)
225-
226222
def do_realize(self):
227223
Gtk.ApplicationWindow.do_realize(self)
228224

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<interface>
33
<!-- interface-requires gtk+ 3.17 -->
44

5-
<object class="GtkShortcutsWindow" id="shortcuts-meld">
5+
<object class="GtkShortcutsWindow" id="help_overlay">
66
<property name="modal">True</property>
77
<child>
88
<object class="GtkShortcutsSection">

meld/resources/meld.gresource.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<gresources>
33
<gresource prefix="/org/gnome/meld">
4+
<file>gtk/help-overlay.ui</file>
45
<file>icons/16x16/actions/meld-change-apply-left.png</file>
56
<file>icons/16x16/actions/meld-change-apply-right.png</file>
67
<file>icons/16x16/actions/meld-change-copy.png</file>

0 commit comments

Comments
 (0)