Commit c024312b authored by Roman Alifanov's avatar Roman Alifanov

down with unnecessary buttons!

parent c10967cf
msgid ""
msgstr ""
"Project-Id-Version: ru.eepm.PlayGUI\n"
"POT-Creation-Date: 2024-09-30 20:28+0300\n"
"PO-Revision-Date: 2024-09-30 20:35+0300\n"
"POT-Creation-Date: 2024-09-30 20:54+0300\n"
"PO-Revision-Date: 2024-09-30 20:54+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru\n"
......@@ -49,13 +49,5 @@ msgid "Apply"
msgstr "Применить"
#: window.ui:120
msgid "_Preferences"
msgstr ""
#: window.ui:124
msgid "_Keyboard Shortcuts"
msgstr ""
#: window.ui:128
msgid "_About Eepm-play-gui"
msgstr "О программе"
......@@ -35,7 +35,6 @@ class EepmPlayGuiApplication(Adw.Application):
flags=Gio.ApplicationFlags.DEFAULT_FLAGS)
self.create_action('quit', lambda *_: self.quit(), ['<primary>q'])
self.create_action('about', self.on_about_action)
self.create_action('preferences', self.on_preferences_action)
def do_activate(self):
"""Called when the application is activated.
......@@ -59,10 +58,6 @@ class EepmPlayGuiApplication(Adw.Application):
copyright='© 2024 Etersoft')
about.present()
def on_preferences_action(self, widget, _):
"""Callback for the app.preferences action."""
print('app.preferences action activated')
def create_action(self, name, callback, shortcuts=None):
"""Add an application action.
......
......@@ -28,9 +28,7 @@
(1,15,"GtkListBox",None,14,None,"center",None,0,None,None),
(1,17,"(menu)","primary_menu",None,None,None,None,1,None,None),
(1,18,"(section)",None,17,None,None,None,0,None,None),
(1,19,"(item)",None,18,None,None,None,0,None,None),
(1,20,"(item)",None,18,None,None,None,1,None,None),
(1,21,"(item)",None,18,None,None,None,2,None,None),
(1,21,"(item)",None,18,None,None,None,0,None,None),
(1,22,"AdwButtonRow","apply_button",15,None,None,None,0,None,None)
</object>
<object_property>
......@@ -62,10 +60,6 @@
(1,14,"GtkWidget","margin-end","12",0,None,None,None,None,None,None,None,None),
(1,14,"GtkWidget","margin-start","12",0,None,None,None,None,None,None,None,None),
(1,14,"GtkWidget","margin-top","12",0,None,None,None,None,None,None,None,None),
(1,19,"(item)","action","app.preferences",0,None,None,None,None,None,None,None,None),
(1,19,"(item)","label","_Preferences",1,None,None,None,None,None,None,None,None),
(1,20,"(item)","action","win.show-help-overlay",0,None,None,None,None,None,None,None,None),
(1,20,"(item)","label","_Keyboard Shortcuts",1,None,None,None,None,None,None,None,None),
(1,21,"(item)","action","app.about",0,None,None,None,None,None,None,None,None),
(1,21,"(item)","label","_About Eepm-play-gui",1,None,None,None,None,None,None,None,None),
(1,22,"AdwPreferencesRow","title","Apply",1,None,None,None,None,None,None,None,None),
......
......@@ -116,14 +116,6 @@
<menu id="primary_menu">
<section>
<item>
<attribute name="action">app.preferences</attribute>
<attribute name="label" translatable="yes">_Preferences</attribute>
</item>
<item>
<attribute name="action">win.show-help-overlay</attribute>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
</item>
<item>
<attribute name="action">app.about</attribute>
<attribute name="label" translatable="yes">_About Eepm-play-gui</attribute>
</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment