Cleanup: loading About and Shortcuts .ui files
This commit is contained in:
parent
b099a53c16
commit
cd9332b19f
@ -25,8 +25,8 @@ class HelpService(Service, ActionProvider):
|
|||||||
@action(name="app.about")
|
@action(name="app.about")
|
||||||
def about(self):
|
def about(self):
|
||||||
builder = Gtk.Builder()
|
builder = Gtk.Builder()
|
||||||
builder.add_objects_from_string(
|
builder.add_from_string(
|
||||||
translated_ui_string("gaphor.services.helpservice", "about.ui"), ("about",)
|
translated_ui_string("gaphor.services.helpservice", "about.ui")
|
||||||
)
|
)
|
||||||
|
|
||||||
about = builder.get_object("about")
|
about = builder.get_object("about")
|
||||||
@ -41,9 +41,8 @@ class HelpService(Service, ActionProvider):
|
|||||||
@action(name="app.shortcuts")
|
@action(name="app.shortcuts")
|
||||||
def shortcuts(self):
|
def shortcuts(self):
|
||||||
builder = Gtk.Builder()
|
builder = Gtk.Builder()
|
||||||
builder.add_objects_from_string(
|
builder.add_from_string(
|
||||||
translated_ui_string("gaphor.services.helpservice", "shortcuts.ui"),
|
translated_ui_string("gaphor.services.helpservice", "shortcuts.ui")
|
||||||
("shortcuts-gaphor",),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
shortcuts = builder.get_object("shortcuts-gaphor")
|
shortcuts = builder.get_object("shortcuts-gaphor")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user