rename to flatpost
This commit is contained in:
parent
92c14ab5a0
commit
9034ccc087
1 changed files with 7 additions and 7 deletions
14
main.py
14
main.py
|
|
@ -20,7 +20,7 @@ from datetime import datetime
|
||||||
|
|
||||||
class MainWindow(Gtk.Window):
|
class MainWindow(Gtk.Window):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__(title="Flatshop")
|
super().__init__(title="Flatpost")
|
||||||
# Store search results as an instance variable
|
# Store search results as an instance variable
|
||||||
self.all_apps = []
|
self.all_apps = []
|
||||||
self.current_component_type = None
|
self.current_component_type = None
|
||||||
|
|
@ -599,7 +599,7 @@ class MainWindow(Gtk.Window):
|
||||||
"""Show the about dialog with version and license information."""
|
"""Show the about dialog with version and license information."""
|
||||||
# Create the dialog
|
# Create the dialog
|
||||||
about_dialog = Gtk.Dialog(
|
about_dialog = Gtk.Dialog(
|
||||||
title="About Flatshop",
|
title="About Flatpost",
|
||||||
parent=self,
|
parent=self,
|
||||||
modal=True,
|
modal=True,
|
||||||
destroy_with_parent=True
|
destroy_with_parent=True
|
||||||
|
|
@ -628,17 +628,17 @@ class MainWindow(Gtk.Window):
|
||||||
license_event_box = Gtk.EventBox()
|
license_event_box = Gtk.EventBox()
|
||||||
license_event_box.add(license_url)
|
license_event_box.add(license_url)
|
||||||
license_event_box.connect("button-release-event",
|
license_event_box.connect("button-release-event",
|
||||||
lambda w, e: Gio.AppInfo.launch_default_for_uri("https://github.com/GloriousEggroll/flatshop/blob/main/LICENSE"))
|
lambda w, e: Gio.AppInfo.launch_default_for_uri("https://github.com/GloriousEggroll/flatpost/blob/main/LICENSE"))
|
||||||
|
|
||||||
issue_label = Gtk.Label(label="Report an Issue:")
|
issue_label = Gtk.Label(label="Report an Issue:")
|
||||||
issue_url = Gtk.Label(label="https://github.com/GloriousEggroll/flatshop/issue")
|
issue_url = Gtk.Label(label="https://github.com/GloriousEggroll/flatpost/issue")
|
||||||
issue_url.set_use_underline(True)
|
issue_url.set_use_underline(True)
|
||||||
issue_url.set_use_markup(True)
|
issue_url.set_use_markup(True)
|
||||||
issue_url.set_markup('<span color="#18A3FF">https://github.com/GloriousEggroll/flatshop/issue</span>')
|
issue_url.set_markup('<span color="#18A3FF">https://github.com/GloriousEggroll/flatpost/issue</span>')
|
||||||
issue_event_box = Gtk.EventBox()
|
issue_event_box = Gtk.EventBox()
|
||||||
issue_event_box.add(issue_url)
|
issue_event_box.add(issue_url)
|
||||||
issue_event_box.connect("button-release-event",
|
issue_event_box.connect("button-release-event",
|
||||||
lambda w, e: Gio.AppInfo.launch_default_for_uri("https://github.com/GloriousEggroll/flatshop/issues"))
|
lambda w, e: Gio.AppInfo.launch_default_for_uri("https://github.com/GloriousEggroll/flatpost/issues"))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -3860,7 +3860,7 @@ class MainWindow(Gtk.Window):
|
||||||
image_data = fp_turbo.screenshot_details(screenshot)
|
image_data = fp_turbo.screenshot_details(screenshot)
|
||||||
url = image_data.get_url()
|
url = image_data.get_url()
|
||||||
|
|
||||||
local_path = f"{home_dir}/.local/share/flatshop/app-screenshots/{app_id}/{os.path.basename(url)}"
|
local_path = f"{home_dir}/.local/share/flatpost/app-screenshots/{app_id}/{os.path.basename(url)}"
|
||||||
|
|
||||||
if os.path.exists(local_path):
|
if os.path.exists(local_path):
|
||||||
image.set_from_file(local_path)
|
image.set_from_file(local_path)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue