Skip to content

Commit

Permalink
Port to 47 runtime
Browse files Browse the repository at this point in the history
Use AdwAboutDialog
  • Loading branch information
lo2dev committed Sep 20, 2024
1 parent 4a9a14a commit 7562224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion flatpak/io.github.bytezz.IPLookup.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"app-id" : "io.github.bytezz.IPLookup",
"runtime" : "org.gnome.Platform",
"runtime-version" : "45",
"runtime-version" : "47",
"sdk" : "org.gnome.Sdk",
"command" : "iplookup",
"finish-args" : [
Expand Down
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def on_quit_action(self, widget, _):

def on_about_action(self, *args):
"""Callback for the app.about action."""
about = Adw.AboutWindow(transient_for=self.props.active_window,
application_name='IP Lookup',
about = Adw.AboutDialog(application_name='IP Lookup',
application_icon='io.github.bytezz.IPLookup',
developer_name='Bytez',
website='https://github.com/Bytezz/IPLookup-gtk',
Expand All @@ -68,7 +67,7 @@ def on_about_action(self, *args):
translator_credits=_("translator-credits"),
license_type=Gtk.License.GPL_3_0,
copyright='Copyright© 2023 Bytez')
about.present()
about.present(self.props.active_window)

def on_get_your_ip_action(self, widget, _):
self.win.ip_entry.set_text(ipapi.get_your_ip())
Expand Down

0 comments on commit 7562224

Please sign in to comment.