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
</description>
</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>
</schemalist>

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: sernatur\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-01 22:13-0300\n"
"PO-Revision-Date: 2018-11-01 22:14-0300\n"
"POT-Creation-Date: 2018-12-23 16:09-0300\n"
"PO-Revision-Date: 2018-12-23 16:10-0300\n"
"Last-Translator: Chris Cromer <chris@cromer.cl>\n"
"Language-Team: none\n"
"Language: es\n"
@ -18,44 +18,73 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.6\n"
#: src/sernatur-window.vala:38
#, fuzzy, c-format
msgid "The file '%s' doesn't exist.\n"
msgstr "El archivo '%s' no existe.\n"
#: src/sernatur-window.vala:88
#: src/sernatur-window.vala:63
msgid "Error"
msgstr "Error"
#: src/sernatur-window.vala:116
#: src/sernatur-window.vala:91
msgid "Server version:"
msgstr "Versión del servidor:"
#: data/ui/sernatur.window.ui:37
#: data/ui/sernatur.window.ui:40
msgid "_File"
msgstr ""
#: data/ui/sernatur.window.ui:102
#: data/ui/sernatur.window.ui:105
msgid "_Edit"
msgstr ""
#: data/ui/sernatur.window.ui:152
#: data/ui/sernatur.window.ui:155
msgid "_View"
msgstr ""
#: data/ui/sernatur.window.ui:160
#: data/ui/sernatur.window.ui:163
msgid "_Help"
msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:5
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:6
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:13
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"
#~ msgstr "Conexión falló"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: sernatur\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,32 +17,27 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: src/sernatur-window.vala:38
#, c-format
msgid "The file '%s' doesn't exist.\n"
msgstr ""
#: src/sernatur-window.vala:88
#: src/sernatur-window.vala:63
msgid "Error"
msgstr ""
#: src/sernatur-window.vala:116
#: src/sernatur-window.vala:91
msgid "Server version:"
msgstr ""
#: data/ui/sernatur.window.ui:37
#: data/ui/sernatur.window.ui:40
msgid "_File"
msgstr ""
#: data/ui/sernatur.window.ui:102
#: data/ui/sernatur.window.ui:105
msgid "_Edit"
msgstr ""
#: data/ui/sernatur.window.ui:152
#: data/ui/sernatur.window.ui:155
msgid "_View"
msgstr ""
#: data/ui/sernatur.window.ui:160
#: data/ui/sernatur.window.ui:163
msgid "_Help"
msgstr ""
@ -55,3 +50,33 @@ msgstr ""
#: data/gschema/cl.cromer.ubb.sernatur.gschema.xml:13
msgid "Port number to use"
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 () {
window = new MainWindow (this);
//window.maximize ();
GLib.Settings settings = new GLib.Settings ("cl.cromer.ubb.sernatur");
if (settings.get_boolean ("maximized")) {
window.maximize ();
}
try {
window.icon = IconTheme.get_default ().load_icon ("sernatur", 48, 0);
}