add new maximize option

This commit is contained in:
Chris Cromer 2018-12-23 16:10:50 -03:00
parent 9c5c7f1e7d
commit 6a6968c240
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A
4 changed files with 92 additions and 28 deletions

View File

@ -49,5 +49,12 @@
Password to use Password to use
</description> </description>
</key> </key>
<key name="maximized" type="b">
<default>false</default>
<summary>Should the program open maximized or not</summary>
<description>
Should the program open maximized or not
</description>
</key>
</schema> </schema>
</schemalist> </schemalist>

View File

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: sernatur\n" "Project-Id-Version: sernatur\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-01 22:13-0300\n" "POT-Creation-Date: 2018-12-23 16:09-0300\n"
"PO-Revision-Date: 2018-11-01 22:14-0300\n" "PO-Revision-Date: 2018-12-23 16:10-0300\n"
"Last-Translator: Chris Cromer <chris@cromer.cl>\n" "Last-Translator: Chris Cromer <chris@cromer.cl>\n"
"Language-Team: none\n" "Language-Team: none\n"
"Language: es\n" "Language: es\n"
@ -18,44 +18,73 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.6\n" "X-Generator: Poedit 2.0.6\n"
#: src/sernatur-window.vala:38 #: src/sernatur-window.vala:63
#, fuzzy, c-format
msgid "The file '%s' doesn't exist.\n"
msgstr "El archivo '%s' no existe.\n"
#: src/sernatur-window.vala:88
msgid "Error" msgid "Error"
msgstr "Error" msgstr "Error"
#: src/sernatur-window.vala:116 #: src/sernatur-window.vala:91
msgid "Server version:" msgid "Server version:"
msgstr "Versión del servidor:" msgstr "Versión del servidor:"
#: data/ui/sernatur.window.ui:37 #: data/ui/sernatur.window.ui:40
msgid "_File" msgid "_File"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:102 #: data/ui/sernatur.window.ui:105
msgid "_Edit" msgid "_Edit"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:152 #: data/ui/sernatur.window.ui:155
msgid "_View" msgid "_View"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:160 #: data/ui/sernatur.window.ui:163
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:5 #: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:5
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:6 #: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:6
msgid "Host to connect to" msgid "Host to connect to"
msgstr "" msgstr "Servidor a conectar"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:12 #: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:12
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13 #: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13
msgid "Port number to use" msgid "Port number to use"
msgstr "" msgstr "Número de puerto a usar"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:19
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:20
msgid "Options to use"
msgstr "Opciones a usar"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:26
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:27
msgid "tty to send debug info (ignored)"
msgstr "tty para enviar datos de depuración (ignorado)"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:33
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:34
msgid "Database to use"
msgstr "Base de dato a usar"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:40
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:41
msgid "Username to use"
msgstr "Nombre de usuario a usar"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:47
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:48
msgid "Password to use"
msgstr "Contraseña a usar"
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:54
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:55
msgid "Should the program open maximized or not"
msgstr "Si el programa debe abrir maximizado ó no"
#, fuzzy
#~ msgid "The file '%s' doesn't exist.\n"
#~ msgstr "El archivo '%s' no existe.\n"
#~ msgid "Connection failed" #~ msgid "Connection failed"
#~ msgstr "Conexión falló" #~ msgstr "Conexión falló"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: sernatur\n" "Project-Id-Version: sernatur\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-01 22:13-0300\n" "POT-Creation-Date: 2018-12-23 16:09-0300\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"
@ -17,32 +17,27 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: src/sernatur-window.vala:38 #: src/sernatur-window.vala:63
#, c-format
msgid "The file '%s' doesn't exist.\n"
msgstr ""
#: src/sernatur-window.vala:88
msgid "Error" msgid "Error"
msgstr "" msgstr ""
#: src/sernatur-window.vala:116 #: src/sernatur-window.vala:91
msgid "Server version:" msgid "Server version:"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:37 #: data/ui/sernatur.window.ui:40
msgid "_File" msgid "_File"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:102 #: data/ui/sernatur.window.ui:105
msgid "_Edit" msgid "_Edit"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:152 #: data/ui/sernatur.window.ui:155
msgid "_View" msgid "_View"
msgstr "" msgstr ""
#: data/ui/sernatur.window.ui:160 #: data/ui/sernatur.window.ui:163
msgid "_Help" msgid "_Help"
msgstr "" msgstr ""
@ -55,3 +50,33 @@ msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13 #: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13
msgid "Port number to use" msgid "Port number to use"
msgstr "" msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:19
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:20
msgid "Options to use"
msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:26
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:27
msgid "tty to send debug info (ignored)"
msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:33
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:34
msgid "Database to use"
msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:40
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:41
msgid "Username to use"
msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:47
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:48
msgid "Password to use"
msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:54
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:55
msgid "Should the program open maximized or not"
msgstr ""

View File

@ -39,7 +39,10 @@ namespace Sernatur {
*/ */
public override void activate () { public override void activate () {
window = new MainWindow (this); window = new MainWindow (this);
//window.maximize (); GLib.Settings settings = new GLib.Settings ("cl.cromer.ubb.sernatur");
if (settings.get_boolean ("maximized")) {
window.maximize ();
}
try { try {
window.icon = IconTheme.get_default ().load_icon ("sernatur", 48, 0); window.icon = IconTheme.get_default ().load_icon ("sernatur", 48, 0);
} }