diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 41ab9aac..4300ab15 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -184,7 +184,7 @@ class Application(Gtk.Application): builder = Gtk.Builder() builder.set_translation_domain("demon-editor") builder.add_from_file(UI_RESOURCES_PATH + "main_window.glade") - builder.connect_signals(handlers) + builder.connect_signals(self._handlers) self._main_window = builder.get_object("main_window") main_window_size = self._settings.get("window_size") # Setting the last size of the window if it was saved @@ -875,7 +875,7 @@ class Application(Gtk.Application): self.show_error_dialog(str(e)) def on_data_open(self, action, param=None): - response = show_dialog(DialogType.CHOOSER, self._main_window, options=self._options.get(self._profile)) + response = show_dialog(DialogType.CHOOSER, self._main_window, settings=self._settings) if response in (Gtk.ResponseType.CANCEL, Gtk.ResponseType.DELETE_EVENT): return self.open_data(response) @@ -2101,9 +2101,10 @@ class Application(Gtk.Application): def update_profile_label(self): if self._profile is Profile.ENIGMA_2: - self._header_bar.set_subtitle("{} Enigma2 v.{}".format(get_message("Profile:"), self.get_format_version())) + ver = self.get_format_version() + self._main_window.set_title("DemonEditor [{} Enigma2 v.{}]".format(get_message("Profile:"), ver)) elif self._profile is Profile.NEUTRINO_MP: - self._header_bar.set_subtitle("{} Neutrino-MP".format(get_message("Profile:"))) + self._main_window.set_title("DemonEditor [{} Neutrino-MP]".format(get_message("Profile:"))) def get_format_version(self): return 5 if self._settings.v5_support else 4 diff --git a/app/ui/transmitter.py b/app/ui/transmitter.py index e286edb6..16cc7a96 100644 --- a/app/ui/transmitter.py +++ b/app/ui/transmitter.py @@ -2,7 +2,6 @@ from urllib.parse import urlparse from gi.repository import GLib from app.connections import HttpRequestType from app.tools.yt import YouTube -from app.ui.iptv import get_yt_icon from .uicommons import Gtk, Gdk, UI_RESOURCES_PATH, TEXT_DOMAIN @@ -71,7 +70,7 @@ class LinksTransmitter: yield True if yt_id: - self._url_entry.set_icon_from_pixbuf(Gtk.EntryIconPosition.SECONDARY, get_yt_icon("youtube", 32)) + self._url_entry.set_icon_from_pixbuf(Gtk.EntryIconPosition.SECONDARY, Gtk.STOCK_INFO) links, title = YouTube.get_yt_link(yt_id) yield True if links: diff --git a/deb/usr/share/locale/es/LC_MESSAGES/demon-editor.mo b/deb/usr/share/locale/es/LC_MESSAGES/demon-editor.mo deleted file mode 100644 index 1be1ad1e..00000000 Binary files a/deb/usr/share/locale/es/LC_MESSAGES/demon-editor.mo and /dev/null differ