Remove menu

merge-requests/64/head
Hugo Posnic 2016-12-16 22:21:09 +01:00
parent 1ea3837f4f
commit 644ea62ad4
5 changed files with 52 additions and 69 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-10 23:58+0100\n" "POT-Creation-Date: 2016-12-16 22:11+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -21,19 +21,19 @@ msgstr ""
msgid "About" msgid "About"
msgstr "" msgstr ""
#: manjaro-hello.glade:13 #: manjaro-hello.glade:12
msgid "Welcome screen for Manjaro" msgid "Welcome screen for Manjaro"
msgstr "" msgstr ""
#: manjaro-hello.glade:15 #: manjaro-hello.glade:14
msgid "Github" msgid "Github"
msgstr "" msgstr ""
#: manjaro-hello.glade:103 #: manjaro-hello.glade:94
msgid "Welcome to Manjaro!" msgid "Welcome to Manjaro!"
msgstr "" msgstr ""
#: manjaro-hello.glade:120 #: manjaro-hello.glade:111
msgid "" msgid ""
"Thank you for joining our community!\n" "Thank you for joining our community!\n"
"\n" "\n"
@ -43,78 +43,78 @@ msgid ""
"your feedback." "your feedback."
msgstr "" msgstr ""
#: manjaro-hello.glade:137 #: manjaro-hello.glade:128
msgid "DOCUMENTATION" msgid "DOCUMENTATION"
msgstr "" msgstr ""
#: manjaro-hello.glade:151 #: manjaro-hello.glade:142
msgid "SUPPORT" msgid "SUPPORT"
msgstr "" msgstr ""
#: manjaro-hello.glade:165 #: manjaro-hello.glade:156
msgid "PROJECT" msgid "PROJECT"
msgstr "" msgstr ""
#: manjaro-hello.glade:177 manjaro-hello.glade:537 #: manjaro-hello.glade:168 manjaro-hello.glade:528
msgid "Read me" msgid "Read me"
msgstr "" msgstr ""
#: manjaro-hello.glade:191 manjaro-hello.glade:577 #: manjaro-hello.glade:182 manjaro-hello.glade:568
msgid "Release info" msgid "Release info"
msgstr "" msgstr ""
#: manjaro-hello.glade:205 #: manjaro-hello.glade:196
msgid "Wiki" msgid "Wiki"
msgstr "" msgstr ""
#: manjaro-hello.glade:219 manjaro-hello.glade:638 #: manjaro-hello.glade:210 manjaro-hello.glade:629
msgid "Get involved" msgid "Get involved"
msgstr "" msgstr ""
#: manjaro-hello.glade:233 #: manjaro-hello.glade:224
msgid "Forums" msgid "Forums"
msgstr "" msgstr ""
#: manjaro-hello.glade:247 #: manjaro-hello.glade:238
msgid "Chat room" msgid "Chat room"
msgstr "" msgstr ""
#: manjaro-hello.glade:261 #: manjaro-hello.glade:252
msgid "Mailling lists" msgid "Mailling lists"
msgstr "" msgstr ""
#: manjaro-hello.glade:275 #: manjaro-hello.glade:266
msgid "Build Manjaro" msgid "Build Manjaro"
msgstr "" msgstr ""
#: manjaro-hello.glade:289 #: manjaro-hello.glade:280
msgid "Donate" msgid "Donate"
msgstr "" msgstr ""
#: manjaro-hello.glade:401 #: manjaro-hello.glade:392
msgid "Launch at start" msgid "Launch at start"
msgstr "" msgstr ""
#: manjaro-hello.glade:438 #: manjaro-hello.glade:429
msgid "Use Calamares (Graphic method)" msgid "Use Calamares (Graphic method)"
msgstr "" msgstr ""
#: manjaro-hello.glade:452 #: manjaro-hello.glade:443
msgid "Use CLI-Installer (Command line)" msgid "Use CLI-Installer (Command line)"
msgstr "" msgstr ""
#: manjaro-hello.glade:474 #: manjaro-hello.glade:465
msgid "INSTALLATION" msgid "INSTALLATION"
msgstr "" msgstr ""
#: manjaro-hello.glade:493 #: manjaro-hello.glade:484
msgid "Welcome" msgid "Welcome"
msgstr "" msgstr ""
#: manjaro-hello.glade:593 #: manjaro-hello.glade:584
msgid "Documentation" msgid "Documentation"
msgstr "" msgstr ""
#: manjaro-hello.glade:659 #: manjaro-hello.glade:650
msgid "Project" msgid "Project"
msgstr "" msgstr ""

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-10 23:59+0100\n" "POT-Creation-Date: 2016-12-16 22:13+0100\n"
"PO-Revision-Date: 2016-12-10 23:59+0100\n" "PO-Revision-Date: 2016-12-16 22:13+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr_FR\n" "Language: fr_FR\n"
@ -22,19 +22,19 @@ msgstr ""
msgid "About" msgid "About"
msgstr "À propos" msgstr "À propos"
#: manjaro-hello.glade:13 #: manjaro-hello.glade:12
msgid "Welcome screen for Manjaro" msgid "Welcome screen for Manjaro"
msgstr "Écran de bienvenue pour Manjaro" msgstr "Écran de bienvenue pour Manjaro"
#: manjaro-hello.glade:15 #: manjaro-hello.glade:14
msgid "Github" msgid "Github"
msgstr "Github" msgstr "Github"
#: manjaro-hello.glade:103 #: manjaro-hello.glade:94
msgid "Welcome to Manjaro!" msgid "Welcome to Manjaro!"
msgstr "Bienvenue sur Manjaro !" msgstr "Bienvenue sur Manjaro !"
#: manjaro-hello.glade:120 #: manjaro-hello.glade:111
msgid "" msgid ""
"Thank you for joining our community!\n" "Thank you for joining our community!\n"
"\n" "\n"
@ -51,79 +51,79 @@ msgstr ""
"Alors profitez de l'expérience, et n'hésitez pas à nous faire part de vos " "Alors profitez de l'expérience, et n'hésitez pas à nous faire part de vos "
"commentaires." "commentaires."
#: manjaro-hello.glade:137 #: manjaro-hello.glade:128
msgid "DOCUMENTATION" msgid "DOCUMENTATION"
msgstr "DOCUMENTATION" msgstr "DOCUMENTATION"
#: manjaro-hello.glade:151 #: manjaro-hello.glade:142
msgid "SUPPORT" msgid "SUPPORT"
msgstr "SUPPORT" msgstr "SUPPORT"
#: manjaro-hello.glade:165 #: manjaro-hello.glade:156
msgid "PROJECT" msgid "PROJECT"
msgstr "PROJET" msgstr "PROJET"
#: manjaro-hello.glade:177 manjaro-hello.glade:537 #: manjaro-hello.glade:168 manjaro-hello.glade:528
msgid "Read me" msgid "Read me"
msgstr "Lisez moi" msgstr "Lisez moi"
#: manjaro-hello.glade:191 manjaro-hello.glade:577 #: manjaro-hello.glade:182 manjaro-hello.glade:568
msgid "Release info" msgid "Release info"
msgstr "Informations de version" msgstr "Informations de version"
#: manjaro-hello.glade:205 #: manjaro-hello.glade:196
msgid "Wiki" msgid "Wiki"
msgstr "Wiki" msgstr "Wiki"
#: manjaro-hello.glade:219 manjaro-hello.glade:638 #: manjaro-hello.glade:210 manjaro-hello.glade:629
msgid "Get involved" msgid "Get involved"
msgstr "S'investir" msgstr "S'investir"
#: manjaro-hello.glade:233 #: manjaro-hello.glade:224
msgid "Forums" msgid "Forums"
msgstr "Forums" msgstr "Forums"
#: manjaro-hello.glade:247 #: manjaro-hello.glade:238
msgid "Chat room" msgid "Chat room"
msgstr "Salon de chat" msgstr "Salon de chat"
#: manjaro-hello.glade:261 #: manjaro-hello.glade:252
msgid "Mailling lists" msgid "Mailling lists"
msgstr "Listes de diffusion" msgstr "Listes de diffusion"
#: manjaro-hello.glade:275 #: manjaro-hello.glade:266
msgid "Build Manjaro" msgid "Build Manjaro"
msgstr "Construire Manjaro" msgstr "Construire Manjaro"
#: manjaro-hello.glade:289 #: manjaro-hello.glade:280
msgid "Donate" msgid "Donate"
msgstr "Faire un don" msgstr "Faire un don"
#: manjaro-hello.glade:401 #: manjaro-hello.glade:392
msgid "Launch at start" msgid "Launch at start"
msgstr "Lancer au démarrage" msgstr "Lancer au démarrage"
#: manjaro-hello.glade:438 #: manjaro-hello.glade:429
msgid "Use Calamares (Graphic method)" msgid "Use Calamares (Graphic method)"
msgstr "Utiliser Calamares (Méthode graphique)" msgstr "Utiliser Calamares (Méthode graphique)"
#: manjaro-hello.glade:452 #: manjaro-hello.glade:443
msgid "Use CLI-Installer (Command line)" msgid "Use CLI-Installer (Command line)"
msgstr "Utiliser CLI-Installer (Ligne de commande)" msgstr "Utiliser CLI-Installer (Ligne de commande)"
#: manjaro-hello.glade:474 #: manjaro-hello.glade:465
msgid "INSTALLATION" msgid "INSTALLATION"
msgstr "INSTALLATION" msgstr "INSTALLATION"
#: manjaro-hello.glade:493 #: manjaro-hello.glade:484
msgid "Welcome" msgid "Welcome"
msgstr "Bienvenue" msgstr "Bienvenue"
#: manjaro-hello.glade:593 #: manjaro-hello.glade:584
msgid "Documentation" msgid "Documentation"
msgstr "Documentation" msgstr "Documentation"
#: manjaro-hello.glade:659 #: manjaro-hello.glade:650
msgid "Project" msgid "Project"
msgstr "Projet" msgstr "Projet"

View File

@ -14,8 +14,6 @@ from gi.repository import Gtk, GdkPixbuf
class ManjaroHello(): class ManjaroHello():
def __init__(self): def __init__(self):
# App vars # App vars
args = str(sys.argv)
self.menu = True if "--menu" in args else False
self.app = "manjaro-hello" self.app = "manjaro-hello"
self.urls = { self.urls = {
"wiki": "https://wiki.manjaro.org", "wiki": "https://wiki.manjaro.org",
@ -90,11 +88,6 @@ class ManjaroHello():
# Save locale used in config file # Save locale used in config file
self.save_preferences() self.save_preferences()
# Set menu
if self.menu:
self.builder.get_object("sidebar").set_visible(True)
self.builder.get_object("home").set_visible(False)
# Set window subtitle # Set window subtitle
if self.infos["codename"] and self.infos["release"]: if self.infos["codename"] and self.infos["release"]:
self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " " self.builder.get_object("headerbar").props.subtitle = self.infos["codename"] + " " + self.infos["release"] + " "

View File

@ -51,7 +51,7 @@
<property name="icon_name">help-about-symbolic</property> <property name="icon_name">help-about-symbolic</property>
</object> </object>
<object class="GtkWindow" id="window"> <object class="GtkWindow" id="window">
<property name="width_request">800</property> <property name="width_request">750</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="window_position">center</property> <property name="window_position">center</property>
<property name="has_resize_grip">True</property> <property name="has_resize_grip">True</property>
@ -60,21 +60,11 @@
<object class="GtkGrid" id="grid"> <object class="GtkGrid" id="grid">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child>
<object class="GtkStackSidebar" id="sidebar">
<property name="can_focus">False</property>
<property name="vexpand">True</property>
<property name="stack">stack</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
<child> <child>
<object class="GtkStack" id="stack"> <object class="GtkStack" id="stack">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="transition_type">crossfade</property> <property name="transition_type">crossfade</property>
<child> <child>
<object class="GtkGrid" id="welcome"> <object class="GtkGrid" id="welcome">
@ -663,7 +653,7 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</child> </child>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">0</property>
<property name="top_attach">0</property> <property name="top_attach">0</property>
</packing> </packing>
</child> </child>