diff --git a/src/img/facebook.png b/src/img/facebook.png new file mode 100644 index 0000000..2ae19c2 Binary files /dev/null and b/src/img/facebook.png differ diff --git a/src/img/google+.png b/src/img/google+.png new file mode 100644 index 0000000..4b6c1cc Binary files /dev/null and b/src/img/google+.png differ diff --git a/src/img/reddit.png b/src/img/reddit.png new file mode 100644 index 0000000..50033fb Binary files /dev/null and b/src/img/reddit.png differ diff --git a/src/img/twitter.png b/src/img/twitter.png new file mode 100644 index 0000000..0119c9c Binary files /dev/null and b/src/img/twitter.png differ diff --git a/src/manjaro-hello.glade b/src/manjaro-hello.glade index fe44973..0193b9a 100644 --- a/src/manjaro-hello.glade +++ b/src/manjaro-hello.glade @@ -94,7 +94,7 @@ 0 0 - 4 + 3 @@ -110,7 +110,7 @@ 0 1 - 4 + 3 @@ -128,7 +128,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we 0 2 - 4 + 3 @@ -173,20 +173,6 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we 3 - - - True - False - SOCIAL - - - - - - 3 - 3 - - Read me @@ -314,91 +300,137 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we - - Google+ - True - True - True - none - https://plus.google.com/118244873957924966264 - - - 3 - 4 - - - - - Facebook - True - True - True - none - https://www.facebook.com/ManjaroLinux - - - 3 - 5 - - - - - Twitter - True - True - True - none - https://twitter.com/ManjaroLinux - - - 3 - 6 - - - - - Reddit - True - True - True - none - https://www.reddit.com/r/ManjaroLinux/ - - - 3 - 7 - - - - + True False - end - Launch at start + end + True + 10 + + + True + False + 5 + + + google+ + True + False + + + + True + False + img/google+.png + + + + + False + True + 0 + + + + + facebook + True + False + + + + True + False + img/facebook.png + + + + + False + True + 1 + + + + + twitter + True + False + + + + True + False + img/twitter.png + + + + + False + True + 2 + + + + + reddit + True + False + + + + True + False + img/reddit.png + + + + + False + True + 3 + + + + + False + True + 0 + + + + + True + False + end + Launch at start + + + True + True + 1 + + + + + True + True + end + + + + False + True + 2 + + - 2 + 0 8 + 3 - - - True - True - end - - - - 3 - 8 - - - - - - - - diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 5b7adfa..789f7ad 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -4,8 +4,9 @@ import locale import gettext import os import json -import gi import shutil +import webbrowser +import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk @@ -31,6 +32,14 @@ class ManjaroHello(Gtk.Window): self.infos = get_infos() + # Social urls + self.social_urls = { + "google+": "https://plus.google.com/118244873957924966264", + "facebook": "https://www.facebook.com/ManjaroLinux", + "twitter": "https://twitter.com/ManjaroLinux", + "reddit": "https://www.reddit.com/r/ManjaroLinux" + } + # Init language locale.setlocale(locale.LC_ALL, "") locale.bindtextdomain(self.app, self.locale_dir) @@ -115,6 +124,9 @@ class ManjaroHello(Gtk.Window): self.builder.get_object("stack").set_visible_child(self.builder.get_object("project")) self.builder.get_object("project").set_current_page(0) + def on_social_pressed(self, eventbox, _): + webbrowser.open_new_tab(self.social_urls[eventbox.get_name()]) + def on_autostart_switched(self, switch, _): autostart = True if switch.get_active() else False self.change_autostart(autostart)