Skip to content

Commit

Permalink
ported to adw about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokse22 committed May 25, 2024
1 parent 7c34e5b commit 9661c16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def update_controls(self, a=None, b=None):

def on_about_action(self, *args):
"""Callback for the app.about action."""
about = Adw.AboutWindow(transient_for=self.props.active_window,
about = Adw.AboutDialog(
application_name='Mini Text',
application_icon='io.github.nokse22.minitext',
developer_name='Nokse',
version='0.2.1',
version='0.2.2',
developers=['Nokse'],
license_type="GTK_LICENSE_GPL_3_0",
issue_url='https://github.com/Nokse22/mini-text/issues',
Expand All @@ -100,7 +100,7 @@ def on_about_action(self, *args):
# Translator credits. Replace "translator-credits" with your name/username, and optionally an email or URL.
# One name per line, please do not remove previous names.
about.set_translator_credits(_("translator-credits"))
about.present()
about.present(self.props.active_window)

# def on_preferences_action(self, widget, _):
# """Callback for the app.preferences action."""
Expand Down
2 changes: 1 addition & 1 deletion src/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<property name="modal">true</property>
<property name="title">Mini Text</property>
<property name="height-request">178</property>
<property name="width-request">300</property>
<property name="width-request">360</property>
<child>
<object class="AdwBreakpoint">
<condition>min-height: 360px</condition>
Expand Down

0 comments on commit 9661c16

Please sign in to comment.