diff --git a/data/gtkmediathekviewer.png b/data/gtkmediathekviewer.png new file mode 100644 index 0000000..4a43744 Binary files /dev/null and b/data/gtkmediathekviewer.png differ diff --git a/data/gtkmediathekviewer.svg b/data/gtkmediathekviewer.svg new file mode 100644 index 0000000..527324b --- /dev/null +++ b/data/gtkmediathekviewer.svg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d6b847c --- /dev/null +++ b/setup.py @@ -0,0 +1,28 @@ +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="gtk_mediathek_player", + version="0.0.1", + author="Jonas Weinz", + author_email="jo.we93@gmx.de", + description="A simple viewer for german public broadcasts using MediathekWeb", + long_description=long_description, + long_description_content_type="text/markdown", + #url="https://github.com/pypa/sampleproject", + packages=['gtk_mediathek_player'], + package_dir = {'gtk_mediathek_player': 'src/gtk_mediathek_player'}, + data_files = [ + ('share/applications', ['data/org.gtk_mediathek_player.desktop']), + ('share/icons/hicolor/128x128/apps', ['data/gtkmediathekviewer.png']), + ('share/icons/hicolor/scalable/apps', ['data/gtkmediathekviewer.svg']), + ], + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: MIT License", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +) \ No newline at end of file diff --git a/src/gtk_mediathek_player/main_window.py b/src/gtk_mediathek_player/main_window.py index 1682307..8157799 100644 --- a/src/gtk_mediathek_player/main_window.py +++ b/src/gtk_mediathek_player/main_window.py @@ -1,7 +1,5 @@ import gi -from gtk_mediathek_player.tools import new_button_with_icon, new_radio_button_with_icon - gi.require_version("Gtk", "3.0") from gi.repository import Gtk, GLib @@ -14,9 +12,10 @@ class MainApp(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Gtk Mediathek Player") - self.set_default_icon_name("totem") + self.set_default_icon_name("gtkmediathekplayer") - self.set_wmclass("app-name", "Gtk Mediathek Player"); + self.set_role("GtkMediathekPlayer") + self.set_wmclass("GtkMediathekPlayer", "GtkMediathekPlayer") self.set_default_size(800, 600) @@ -76,7 +75,7 @@ class MainApp(Gtk.Window): def _create_context_switch(self): - self._search_radio = new_button_with_icon("edit-find") + self._search_radio = tools.new_button_with_icon("edit-find") self._search_radio.connect("clicked", self.on_search)