Commit 0fafa953f74a39c39a2c7f21e1ba2d049d2af2be

Authored by Perry Werneck
Committed by GitHub
2 parents 589e4d2b 4465363d
Exists in develop

Merge pull request #51 from PerryWerneck/develop

Updating linux package for release.
.gitignore
1   -.bin
2   -.tmp
3   -.obj
4   -.pot
  1 +.*
5 2 *~
6 3 *.log
7 4 *.status
... ... @@ -71,4 +68,6 @@ intl
71 68 m4
72 69 po
73 70 app-manifest.xml
  71 +libtool
  72 +
74 73  
... ...
Makefile.in
... ... @@ -55,8 +55,8 @@ SOURCES= \
55 55 $(wildcard $(srcdir)/src/main/@OSNAME@/*.rc)
56 56  
57 57 SCHEMAS= \
58   - $(wildcard schemas/@OSNAME@/*.gschema.xml) \
59   - $(wildcard schemas/common/*.gschema.xml)
  58 + $(wildcard schemas/*.gschema.xml) \
  59 + $(wildcard schemas/*.gschema.xml)
60 60  
61 61 #---[ Tools ]----------------------------------------------------------------------------
62 62  
... ... @@ -198,7 +198,7 @@ $(POTDIR)/%.pot: \
198 198 @touch $@
199 199  
200 200 $(OBJDIR)/schemas/%.xml: \
201   - schemas/@OSNAME@/%.xml
  201 + schemas/%.xml
202 202  
203 203 @$(MKDIR) $(@D)
204 204 @cp "$^" "$@"
... ...
configure.ac
... ... @@ -75,8 +75,6 @@ case "$host" in
75 75 AC_CONFIG_FILES(src/main/windows/app-manifest.xml)
76 76  
77 77 # Windows and linux doesn't use the same defaults.
78   - AC_CONFIG_FILES(schemas/windows/application.gschema.xml)
79   - AC_CONFIG_FILES(schemas/windows/window.gschema.xml)
80 78 AC_CONFIG_FILES(win/makeruntime.sh)
81 79 AC_CONFIG_FILES(win/pw3270.nsi)
82 80  
... ... @@ -93,7 +91,7 @@ case "$host" in
93 91 AC_SUBST(PROGRAMFILES,$app_cv_programfiles)
94 92 AC_SUBST(WINARCH,$app_cv_winarch)
95 93 AC_SUBST(NSISREDIR,$app_cv_nsisredir)
96   -
  94 + AC_SUBST(DEFAULT_UI_STYLE,0)
97 95 ;;
98 96  
99 97 *-apple-darwin*)
... ... @@ -102,9 +100,7 @@ case "$host" in
102 100  
103 101 CFLAGS="$CFLAGS -pthread"
104 102 LDFLAGS="$LDFLAGS -pthread"
105   -
106   - AC_CONFIG_FILES(schemas/macos/application.gschema.xml)
107   - AC_CONFIG_FILES(schemas/macos/window.gschema.xml)
  103 + AC_SUBST(DEFAULT_UI_STYLE,0)
108 104 ;;
109 105  
110 106 *)
... ... @@ -113,9 +109,7 @@ case "$host" in
113 109  
114 110 CFLAGS="$CFLAGS -pthread -DLIBDIR=\$(libdir)"
115 111 LDFLAGS="$LDFLAGS -pthread"
116   -
117   - AC_CONFIG_FILES(schemas/linux/application.gschema.xml)
118   - AC_CONFIG_FILES(schemas/linux/window.gschema.xml)
  112 + AC_SUBST(DEFAULT_UI_STYLE,0)
119 113  
120 114 esac
121 115  
... ... @@ -202,8 +196,15 @@ AC_ARG_WITH([product-name], [AS_HELP_STRING([--with-product-name], [Set product
202 196 AC_DEFINE_UNQUOTED(PRODUCT_NAME, $app_cv_product,[The product name])
203 197 AC_SUBST(PRODUCT_NAME,$app_cv_product)
204 198  
205   -AC_ARG_WITH([application-id], [AS_HELP_STRING([--application-id], [Set the application ID])], [ app_cv_application_id="$withval" ],[ app_cv_application_id=`pkg-config --variable=product_id lib3270`.terminal ])
  199 +AC_ARG_WITH([product-id], [AS_HELP_STRING([--product-id], [Set the product ID])], [ app_cv_product_id="$withval" ],[ app_cv_product_id=`$PKG_CONFIG --variable=product_id lib3270` ])
  200 +AC_DEFINE_UNQUOTED(PRODUCT_ID, $app_cv_product_id,[The product ID])
  201 +AC_SUBST(PRODUCT_ID,$app_cv_product_id)
206 202  
  203 +app_cv_object_path="/"`echo $app_cv_product_id | sed -e "s@\.@/@g"`"/"
  204 +AC_DEFINE_UNQUOTED(PRODUCT_PATH, "$app_cv_object_path",[The schema path])
  205 +AC_SUBST(PRODUCT_PATH,$app_cv_object_path)
  206 +
  207 +AC_ARG_WITH([application-id], [AS_HELP_STRING([--application-id], [Set the application ID])], [ app_cv_application_id="$withval" ],[ app_cv_application_id=$app_cv_product_id.terminal ])
207 208 AC_DEFINE_UNQUOTED(APPLICATION_ID, $app_cv_application_id,[The application ID])
208 209 AC_SUBST(APPLICATION_ID,$app_cv_application_id)
209 210  
... ... @@ -294,7 +295,11 @@ dnl Configure which files to generate.
294 295 dnl ---------------------------------------------------------------------------
295 296  
296 297 AC_CONFIG_FILES(Makefile)
  298 +
  299 +AC_CONFIG_FILES(schemas/application.gschema.xml)
  300 +AC_CONFIG_FILES(schemas/window.gschema.xml)
297 301 AC_CONFIG_FILES(schemas/Makefile)
  302 +
298 303 AC_CONFIG_FILES(locale/Makefile)
299 304  
300 305 AC_CONFIG_FILES(branding/Makefile)
... ...
... ... @@ -1,51 +0,0 @@
1   -
2   -# Reference: https://github.com/yasio/yasio/blob/main/.lgtm.yml
3   -
4   -extraction:
5   - # Define settings for C/C++ analysis
6   - #####################################
7   - cpp:
8   - prepare:
9   - packages:
10   - - gettext
11   - - git
12   - - make
13   - - autotools-dev
14   - - autoconf
15   - - automake
16   - - pkg-config
17   - - gettext
18   - - libssl-dev
19   - - libcurl4-openssl-dev
20   - - libgtk-3-dev
21   - - imagemagick
22   -
23   - configure:
24   - command:
25   - - export BUILD_DIR=$(readlink -f .)
26   - - export PRE_REQS_DIR="${BUILD_DIR}/pre-reqs"
27   - - mkdir -p "${PRE_REQS_DIR}/src"
28   - - git clone https://github.com/PerryWerneck/lib3270.git "${PRE_REQS_DIR}/src/lib3270"
29   - - cd ${PRE_REQS_DIR}/src/lib3270
30   - - ./autogen.sh --prefix=/usr
31   - - make -C ${PRE_REQS_DIR}/src/lib3270 all
32   - - make DESTDIR=${PRE_REQS_DIR} -C ${PRE_REQS_DIR}/src/lib3270 install
33   - - cd ${BUILD_DIR}
34   - - export LIB3270_CFLAGS="-DLIB3270_NAME=3270 -DLIB3270_REVISION=00000000 -I${PRE_REQS_DIR}/usr/include"
35   - - export LIB3270_LIBS="-L${PRE_REQS_DIR}/usr/lib -l3270"
36   -
37   - - git clone https://github.com/PerryWerneck/libv3270.git "${PRE_REQS_DIR}/src/libv3270"
38   - - cd ${PRE_REQS_DIR}/src/libv3270
39   - - ./autogen.sh --prefix=/usr
40   - - make -C ${PRE_REQS_DIR}/src/libv3270 all
41   - - make DESTDIR=${PRE_REQS_DIR} -C ${PRE_REQS_DIR}/src/libv3270 install
42   - - cd ${BUILD_DIR}
43   - - export LIBV3270_CFLAGS="-DLIB3270_NAME=3270 -DLIB3270_REVISION=00000000 -I${PRE_REQS_DIR}/usr/include"
44   - - export LIBV3270_LIBS="-Wl,-rpath,${PRE_REQS_DIR}/usr/lib -L${PRE_REQS_DIR}/usr/lib -lv3270 -l3270"
45   -
46   - - ./autogen.sh --prefix=/usr
47   -
48   - index:
49   - build_command:
50   - - make all
51   -
locale/pw3270.pot
... ... @@ -8,7 +8,7 @@ msgid ""
8 8 msgstr ""
9 9 "Project-Id-Version: PACKAGE VERSION\n"
10 10 "Report-Msgid-Bugs-To: \n"
11   -"POT-Creation-Date: 2023-03-24 08:43-0300\n"
  11 +"POT-Creation-Date: 2023-03-29 15:03-0300\n"
12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 14 "Language-Team: LANGUAGE <LL@li.org>\n"
... ...
schemas/Makefile.in
... ... @@ -50,18 +50,18 @@ all:
50 50 @$(MKDIR) $(BINDIR)
51 51 @$(GLIB_SCHEMA_COMPILER) \
52 52 --targetdir=$(BINDIR) \
53   - ./@OSNAME@
  53 + .
54 54  
55 55 install: \
56 56 all
57 57  
58 58 @$(MKDIR) $(DESTDIR)/$(schemadir)
59 59 @$(INSTALL_DATA) \
60   - @OSNAME@/application.gschema.xml \
  60 + application.gschema.xml \
61 61 $(DESTDIR)/$(schemadir)/$(PRODUCT_NAME)-application.gschema.xml
62 62  
63 63 @$(INSTALL_DATA) \
64   - @OSNAME@/window.gschema.xml \
  64 + window.gschema.xml \
65 65 $(DESTDIR)/$(schemadir)/$(PRODUCT_NAME)-window.gschema.xml
66 66  
67 67 @$(GLIB_SCHEMA_COMPILER) \
... ...
schemas/application.gschema.xml.in 0 → 100644
... ... @@ -0,0 +1,84 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!--
  3 +
  4 + SPDX-License-Identifier: LGPL-3.0-or-later
  5 +
  6 + Copyright (C) 2008 Banco do Brasil S.A.
  7 +
  8 + This program is free software: you can redistribute it and/or modify
  9 + it under the terms of the GNU Lesser General Public License as published
  10 + by the Free Software Foundation, either version 3 of the License, or
  11 + (at your option) any later version.
  12 +
  13 + This program is distributed in the hope that it will be useful,
  14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16 + GNU General Public License for more details.
  17 +
  18 + You should have received a copy of the GNU Lesser General Public License
  19 + along with this program. If not, see <https://www.gnu.org/licenses/>.
  20 +
  21 +-->
  22 +
  23 +<schemalist>
  24 +
  25 + <schema path="@PRODUCT_PATH@" id="@PRODUCT_ID@">
  26 +
  27 + <key name="ui-style" type="u">
  28 + <default>@DEFAULT_UI_STYLE@</default>
  29 + <summary>UI Style</summary>
  30 + <description>The ID of the current user interface style</description>
  31 + </key>
  32 +
  33 + <key name="gtk-csd" type="i">
  34 + <default>0</default>
  35 + <summary>GTK CSD</summary>
  36 + <description>Gtk Client side decorations (win32 only)</description>
  37 + </key>
  38 +
  39 + <key name="allow-host-settings" type="b">
  40 + <default>true</default>
  41 + <summary>Allow host settings</summary>
  42 + <description>Allow changing of host session properties</description>
  43 + </key>
  44 +
  45 + <key name="allow-open-session-actions" type="b">
  46 + <default>true</default>
  47 + <summary>Enable open session actions actions</summary>
  48 + <description>Enable open session actions</description>
  49 + </key>
  50 +
  51 + <key name="allow-new-tab-actions" type="b">
  52 + <default>true</default>
  53 + <summary>Enable new tab actions</summary>
  54 + <description>Enable new tab actions</description>
  55 + </key>
  56 +
  57 + <key name="allow-new-window-actions" type="b">
  58 + <default>true</default>
  59 + <summary>Enable new window actions</summary>
  60 + <description>Enable new window actions</description>
  61 + </key>
  62 +
  63 + <key name="default-session-file" type="s">
  64 + <default>'~/.config/default.3270'</default>
  65 + <summary>Path of the default session file</summary>
  66 + <description></description>
  67 + </key>
  68 +
  69 + <key name="update-default-session-file" type="b">
  70 + <default>false</default>
  71 + <summary>Update default session time from command line</summary>
  72 + <description></description>
  73 + </key>
  74 +
  75 + <key name="add-session-to-recent-manager" type="b">
  76 + <default>true</default>
  77 + <summary>Add session file to recent file list</summary>
  78 + <description></description>
  79 + </key>
  80 +
  81 + </schema>
  82 +
  83 +</schemalist>
  84 +
... ...
schemas/linux/application.gschema.xml.in
... ... @@ -1,87 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   -
4   - Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
5   - (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
6   - aplicativos mainframe. Registro no INPI sob o nome G3270.
7   -
8   - Copyright (C) <2008> <Banco do Brasil S.A.>
9   -
10   - Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
11   - os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
12   - Free Software Foundation.
13   -
14   - Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
15   - GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
16   - A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
17   - obter mais detalhes.
18   -
19   - Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
20   - programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
21   - St, Fifth Floor, Boston, MA 02110-1301 USA
22   -
23   -
24   - Contatos:
25   -
26   - perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
27   - erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
28   -
29   --->
30   -
31   -<schemalist>
32   -
33   - <schema path="/br/app/@PRODUCT_NAME@/" id="br.app.@PRODUCT_NAME@">
34   -
35   - <key name="ui-style" type="u">
36   - <default>2</default>
37   - <summary>UI Style</summary>
38   - <description>The ID of the current user interface style</description>
39   - </key>
40   -
41   -
42   - <key name="allow-host-settings" type="b">
43   - <default>true</default>
44   - <summary>Allow host settings</summary>
45   - <description>Allow changing of host session properties</description>
46   - </key>
47   -
48   - <key name="allow-open-session-actions" type="b">
49   - <default>true</default>
50   - <summary>Enable open session actions actions</summary>
51   - <description>Enable open session actions</description>
52   - </key>
53   -
54   - <key name="allow-new-tab-actions" type="b">
55   - <default>true</default>
56   - <summary>Enable new tab actions</summary>
57   - <description>Enable new tab actions</description>
58   - </key>
59   -
60   - <key name="allow-new-window-actions" type="b">
61   - <default>true</default>
62   - <summary>Enable new window actions</summary>
63   - <description>Enable new window actions</description>
64   - </key>
65   -
66   - <key name="default-session-file" type="s">
67   - <default>'~/.config/default.3270'</default>
68   - <summary>Path of the default session file</summary>
69   - <description></description>
70   - </key>
71   -
72   - <key name="update-default-session-file" type="b">
73   - <default>false</default>
74   - <summary>Update default session time from command line</summary>
75   - <description></description>
76   - </key>
77   -
78   - <key name="add-session-to-recent-manager" type="b">
79   - <default>true</default>
80   - <summary>Add session file to recent file list</summary>
81   - <description></description>
82   - </key>
83   -
84   - </schema>
85   -
86   -</schemalist>
87   -
schemas/linux/window.gschema.xml.in
... ... @@ -1,127 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   -
4   - Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
5   - (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
6   - aplicativos mainframe. Registro no INPI sob o nome G3270.
7   -
8   - Copyright (C) <2008> <Banco do Brasil S.A.>
9   -
10   - Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
11   - os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
12   - Free Software Foundation.
13   -
14   - Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
15   - GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
16   - A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
17   - obter mais detalhes.
18   -
19   - Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
20   - programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
21   - St, Fifth Floor, Boston, MA 02110-1301 USA
22   -
23   -
24   - Contatos:
25   -
26   - perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
27   - erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
28   -
29   --->
30   -
31   -<schemalist>
32   -
33   - <schema path="/br/app/@PRODUCT_NAME@/window/" id="br.app.@PRODUCT_NAME@.window">
34   -
35   - <key name="width" type="i">
36   - <default>-1</default>
37   - <summary>The window width.</summary>
38   - <description></description>
39   - </key>
40   -
41   - <key name="height" type="i">
42   - <default>-1</default>
43   - <summary>The window height.</summary>
44   - <description></description>
45   - </key>
46   -
47   - <key name="is-maximized" type="b">
48   - <default>false</default>
49   - <summary>Is the window maximized?</summary>
50   - <description></description>
51   - </key>
52   -
53   - <key name="is-fullscreen" type="b">
54   - <default>false</default>
55   - <summary>Is the window in full screen mode?</summary>
56   - <description></description>
57   - </key>
58   -
59   - <key name="has-subtitle" type="b">
60   - <default>false</default>
61   - <summary>Enable top window subtitle</summary>
62   - <description>If TRUE, reserve space for a subtitle, even if none is currently set.</description>
63   - </key>
64   -
65   - <key name="toolbar-visible" type="b">
66   - <default>false</default>
67   - <summary>The toolbar visible state</summary>
68   - <description></description>
69   - </key>
70   -
71   - <key name="menubar-visible" type="b">
72   - <default>false</default>
73   - <summary>The menubar visible state</summary>
74   - <description></description>
75   - </key>
76   -
77   - <key name="toolbar-style" type="i">
78   - <default>-1</default>
79   - <summary>How to draw the toolbar.</summary>
80   - <description></description>
81   - </key>
82   -
83   - <key name="toolbar-icon-size" type="i">
84   - <default>0</default>
85   - <summary>The size of the toolbar icons</summary>
86   - <description></description>
87   - </key>
88   -
89   - <key name="toolbar-icon-type" type="i">
90   - <default>0</default>
91   - <summary>Use symbolic icons on toolbar</summary>
92   - <description></description>
93   - </key>
94   -
95   - <key name="header-icon-type" type="i">
96   - <default>0</default>
97   - <summary>Use symbolic icons on title bar</summary>
98   - <description></description>
99   - </key>
100   -
101   - <key name="toolbar-position" type="i">
102   - <default>0</default>
103   - <summary>The toolbar position</summary>
104   - <description></description>
105   - </key>
106   -
107   - <key name="toolbar-action-names" type="s">
108   - <default>'win.copy,win.paste,win.select-all,separator,win.clear,win.erase-input,separator,win.print,separator,win.zoom-out,win.zoom-fit-best,win.zoom-in'</default>
109   - <summary>The toolbar action list</summary>
110   - <description></description>
111   - </key>
112   -
113   - <key name="header-action-names" type="s">
114   - <default>'menu.open-menu,win.disconnect,win.reconnect:'</default>
115   - <summary>The title bar action list</summary>
116   - <description></description>
117   - </key>
118   -
119   - <key name="default-session-file" type="s">
120   - <default>''</default>
121   - <summary>Path of the default session file</summary>
122   - <description></description>
123   - </key>
124   -
125   - </schema>
126   -
127   -</schemalist>
schemas/macos/application.gschema.xml.in
... ... @@ -1,87 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   -
4   - Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
5   - (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
6   - aplicativos mainframe. Registro no INPI sob o nome G3270.
7   -
8   - Copyright (C) <2008> <Banco do Brasil S.A.>
9   -
10   - Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
11   - os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
12   - Free Software Foundation.
13   -
14   - Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
15   - GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
16   - A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
17   - obter mais detalhes.
18   -
19   - Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
20   - programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
21   - St, Fifth Floor, Boston, MA 02110-1301 USA
22   -
23   -
24   - Contatos:
25   -
26   - perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
27   - erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
28   -
29   --->
30   -
31   -<schemalist>
32   -
33   - <schema path="/br/app/@PRODUCT_NAME@/" id="br.app.@PRODUCT_NAME@">
34   -
35   - <key name="ui-style" type="u">
36   - <default>2</default>
37   - <summary>UI Style</summary>
38   - <description>The ID of the current user interface style</description>
39   - </key>
40   -
41   -
42   - <key name="allow-host-settings" type="b">
43   - <default>true</default>
44   - <summary>Allow host settings</summary>
45   - <description>Allow changing of host session properties</description>
46   - </key>
47   -
48   - <key name="allow-open-session-actions" type="b">
49   - <default>true</default>
50   - <summary>Enable open session actions actions</summary>
51   - <description>Enable open session actions</description>
52   - </key>
53   -
54   - <key name="allow-new-tab-actions" type="b">
55   - <default>true</default>
56   - <summary>Enable new tab actions</summary>
57   - <description>Enable new tab actions</description>
58   - </key>
59   -
60   - <key name="allow-new-window-actions" type="b">
61   - <default>true</default>
62   - <summary>Enable new window actions</summary>
63   - <description>Enable new window actions</description>
64   - </key>
65   -
66   - <key name="default-session-file" type="s">
67   - <default>'~/.config/default.3270'</default>
68   - <summary>Path of the default session file</summary>
69   - <description></description>
70   - </key>
71   -
72   - <key name="update-default-session-file" type="b">
73   - <default>false</default>
74   - <summary>Update default session time from command line</summary>
75   - <description></description>
76   - </key>
77   -
78   - <key name="add-session-to-recent-manager" type="b">
79   - <default>true</default>
80   - <summary>Add session file to recent file list</summary>
81   - <description></description>
82   - </key>
83   -
84   - </schema>
85   -
86   -</schemalist>
87   -
schemas/macos/window.gschema.xml.in
... ... @@ -1,121 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   -
4   - Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
5   - (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
6   - aplicativos mainframe. Registro no INPI sob o nome G3270.
7   -
8   - Copyright (C) <2008> <Banco do Brasil S.A.>
9   -
10   - Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
11   - os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
12   - Free Software Foundation.
13   -
14   - Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
15   - GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
16   - A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
17   - obter mais detalhes.
18   -
19   - Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
20   - programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
21   - St, Fifth Floor, Boston, MA 02110-1301 USA
22   -
23   -
24   - Contatos:
25   -
26   - perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
27   - erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
28   -
29   --->
30   -
31   -<schemalist>
32   -
33   - <schema path="/br/app/@PRODUCT_NAME@/window/" id="br.app.@PRODUCT_NAME@.window">
34   -
35   - <key name="width" type="i">
36   - <default>-1</default>
37   - <summary>The window width.</summary>
38   - <description></description>
39   - </key>
40   -
41   - <key name="height" type="i">
42   - <default>-1</default>
43   - <summary>The window height.</summary>
44   - <description></description>
45   - </key>
46   -
47   - <key name="is-maximized" type="b">
48   - <default>false</default>
49   - <summary>Is the window maximized?</summary>
50   - <description></description>
51   - </key>
52   -
53   - <key name="is-fullscreen" type="b">
54   - <default>false</default>
55   - <summary>Is the window in full screen mode?</summary>
56   - <description></description>
57   - </key>
58   -
59   - <key name="has-subtitle" type="b">
60   - <default>false</default>
61   - <summary>Enable top window subtitle</summary>
62   - <description>If TRUE, reserve space for a subtitle, even if none is currently set.</description>
63   - </key>
64   -
65   - <key name="toolbar-visible" type="b">
66   - <default>false</default>
67   - <summary>The toolbar visible state</summary>
68   - <description></description>
69   - </key>
70   -
71   - <key name="toolbar-style" type="i">
72   - <default>-1</default>
73   - <summary>How to draw the toolbar.</summary>
74   - <description></description>
75   - </key>
76   -
77   - <key name="toolbar-icon-size" type="i">
78   - <default>0</default>
79   - <summary>The size of the toolbar icons</summary>
80   - <description></description>
81   - </key>
82   -
83   - <key name="toolbar-icon-type" type="i">
84   - <default>0</default>
85   - <summary>Use symbolic icons on toolbar</summary>
86   - <description></description>
87   - </key>
88   -
89   - <key name="header-icon-type" type="i">
90   - <default>0</default>
91   - <summary>Use symbolic icons on title bar</summary>
92   - <description></description>
93   - </key>
94   -
95   - <key name="toolbar-position" type="i">
96   - <default>0</default>
97   - <summary>The toolbar position</summary>
98   - <description></description>
99   - </key>
100   -
101   - <key name="toolbar-action-names" type="s">
102   - <default>'win.copy,win.paste,win.select-all,separator,win.clear,win.erase-input,separator,win.print,separator,win.zoom-out,win.zoom-fit-best,win.zoom-in'</default>
103   - <summary>The toolbar action list</summary>
104   - <description></description>
105   - </key>
106   -
107   - <key name="header-action-names" type="s">
108   - <default>'app.tab.new:menu.open-menu,win.disconnect,win.reconnect'</default>
109   - <summary>The title bar action list</summary>
110   - <description></description>
111   - </key>
112   -
113   - <key name="default-session-file" type="s">
114   - <default>''</default>
115   - <summary>Path of the default session file</summary>
116   - <description></description>
117   - </key>
118   -
119   - </schema>
120   -
121   -</schemalist>
schemas/window.gschema.xml.in 0 → 100644
... ... @@ -0,0 +1,119 @@
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!--
  3 +
  4 + SPDX-License-Identifier: LGPL-3.0-or-later
  5 +
  6 + Copyright (C) 2008 Banco do Brasil S.A.
  7 +
  8 + This program is free software: you can redistribute it and/or modify
  9 + it under the terms of the GNU Lesser General Public License as published
  10 + by the Free Software Foundation, either version 3 of the License, or
  11 + (at your option) any later version.
  12 +
  13 + This program is distributed in the hope that it will be useful,
  14 + but WITHOUT ANY WARRANTY; without even the implied warranty of
  15 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16 + GNU General Public License for more details.
  17 +
  18 + You should have received a copy of the GNU Lesser General Public License
  19 + along with this program. If not, see <https://www.gnu.org/licenses/>.
  20 +
  21 +-->
  22 +
  23 +<schemalist>
  24 +
  25 + <schema path="@PRODUCT_PATH@window/" id="@PRODUCT_ID@.window">
  26 +
  27 + <key name="width" type="i">
  28 + <default>-1</default>
  29 + <summary>The window width.</summary>
  30 + <description></description>
  31 + </key>
  32 +
  33 + <key name="height" type="i">
  34 + <default>-1</default>
  35 + <summary>The window height.</summary>
  36 + <description></description>
  37 + </key>
  38 +
  39 + <key name="is-maximized" type="b">
  40 + <default>false</default>
  41 + <summary>Is the window maximized?</summary>
  42 + <description></description>
  43 + </key>
  44 +
  45 + <key name="is-fullscreen" type="b">
  46 + <default>false</default>
  47 + <summary>Is the window in full screen mode?</summary>
  48 + <description></description>
  49 + </key>
  50 +
  51 + <key name="has-subtitle" type="b">
  52 + <default>false</default>
  53 + <summary>Enable top window subtitle</summary>
  54 + <description>If TRUE, reserve space for a subtitle, even if none is currently set.</description>
  55 + </key>
  56 +
  57 + <key name="toolbar-visible" type="b">
  58 + <default>false</default>
  59 + <summary>The toolbar visible state</summary>
  60 + <description></description>
  61 + </key>
  62 +
  63 + <key name="menubar-visible" type="b">
  64 + <default>false</default>
  65 + <summary>The menubar visible state</summary>
  66 + <description></description>
  67 + </key>
  68 +
  69 + <key name="toolbar-style" type="i">
  70 + <default>-1</default>
  71 + <summary>How to draw the toolbar.</summary>
  72 + <description></description>
  73 + </key>
  74 +
  75 + <key name="toolbar-icon-size" type="i">
  76 + <default>0</default>
  77 + <summary>The size of the toolbar icons</summary>
  78 + <description></description>
  79 + </key>
  80 +
  81 + <key name="toolbar-icon-type" type="i">
  82 + <default>0</default>
  83 + <summary>Use symbolic icons on toolbar</summary>
  84 + <description></description>
  85 + </key>
  86 +
  87 + <key name="header-icon-type" type="i">
  88 + <default>0</default>
  89 + <summary>Use symbolic icons on title bar</summary>
  90 + <description></description>
  91 + </key>
  92 +
  93 + <key name="toolbar-position" type="i">
  94 + <default>0</default>
  95 + <summary>The toolbar position</summary>
  96 + <description></description>
  97 + </key>
  98 +
  99 + <key name="toolbar-action-names" type="s">
  100 + <default>'win.copy,win.paste,win.select-all,separator,win.clear,win.erase-input,separator,win.print,separator,win.zoom-out,win.zoom-fit-best,win.zoom-in'</default>
  101 + <summary>The toolbar action list</summary>
  102 + <description></description>
  103 + </key>
  104 +
  105 + <key name="header-action-names" type="s">
  106 + <default>'menu.open-menu,win.disconnect,win.reconnect:'</default>
  107 + <summary>The title bar action list</summary>
  108 + <description></description>
  109 + </key>
  110 +
  111 + <key name="default-session-file" type="s">
  112 + <default>''</default>
  113 + <summary>Path of the default session file</summary>
  114 + <description></description>
  115 + </key>
  116 +
  117 + </schema>
  118 +
  119 +</schemalist>
... ...
schemas/windows/application.gschema.xml.in
... ... @@ -1,92 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   -
4   - Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
5   - (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
6   - aplicativos mainframe. Registro no INPI sob o nome G3270.
7   -
8   - Copyright (C) <2008> <Banco do Brasil S.A.>
9   -
10   - Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
11   - os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
12   - Free Software Foundation.
13   -
14   - Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
15   - GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
16   - A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
17   - obter mais detalhes.
18   -
19   - Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
20   - programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
21   - St, Fifth Floor, Boston, MA 02110-1301 USA
22   -
23   -
24   - Contatos:
25   -
26   - perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
27   - erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
28   -
29   --->
30   -
31   -<schemalist>
32   -
33   - <schema path="/br/app/@PRODUCT_NAME@/" id="br.app.@PRODUCT_NAME@">
34   -
35   - <key name="ui-style" type="u">
36   - <default>0</default>
37   - <summary>UI Style</summary>
38   - <description>The ID of the current user interface style</description>
39   - </key>
40   -
41   - <key name="gtk-csd" type="i">
42   - <default>0</default>
43   - <summary>GTK CSD</summary>
44   - <description>Gtk Client side decorations</description>
45   - </key>
46   -
47   - <key name="allow-host-settings" type="b">
48   - <default>true</default>
49   - <summary>Allow host settings</summary>
50   - <description>Allow changing of host session properties</description>
51   - </key>
52   -
53   - <key name="allow-open-session-actions" type="b">
54   - <default>true</default>
55   - <summary>Enable open session actions actions</summary>
56   - <description>Enable open session actions</description>
57   - </key>
58   -
59   - <key name="allow-new-tab-actions" type="b">
60   - <default>true</default>
61   - <summary>Enable new tab actions</summary>
62   - <description>Enable new tab actions</description>
63   - </key>
64   -
65   - <key name="allow-new-window-actions" type="b">
66   - <default>true</default>
67   - <summary>Enable new window actions</summary>
68   - <description>Enable new window actions</description>
69   - </key>
70   -
71   - <key name="default-session-file" type="s">
72   - <default>'~/.config/default.3270'</default>
73   - <summary>Path of the default session file</summary>
74   - <description></description>
75   - </key>
76   -
77   - <key name="update-default-session-file" type="b">
78   - <default>false</default>
79   - <summary>Update default session time from command line</summary>
80   - <description></description>
81   - </key>
82   -
83   - <key name="add-session-to-recent-manager" type="b">
84   - <default>true</default>
85   - <summary>Add session file to recent file list</summary>
86   - <description></description>
87   - </key>
88   -
89   - </schema>
90   -
91   -</schemalist>
92   -
schemas/windows/window.gschema.xml.in
... ... @@ -1,127 +0,0 @@
1   -<?xml version="1.0" encoding="UTF-8"?>
2   -<!--
3   -
4   - Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270
5   - (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a
6   - aplicativos mainframe. Registro no INPI sob o nome G3270.
7   -
8   - Copyright (C) <2008> <Banco do Brasil S.A.>
9   -
10   - Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob
11   - os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela
12   - Free Software Foundation.
13   -
14   - Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER
15   - GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO
16   - A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para
17   - obter mais detalhes.
18   -
19   - Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este
20   - programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin
21   - St, Fifth Floor, Boston, MA 02110-1301 USA
22   -
23   -
24   - Contatos:
25   -
26   - perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)
27   - erico.mendonca@gmail.com (Erico Mascarenhas Mendonça)
28   -
29   --->
30   -
31   -<schemalist>
32   -
33   - <schema path="/br/app/@PRODUCT_NAME@/window/" id="br.app.@PRODUCT_NAME@.window">
34   -
35   - <key name="width" type="i">
36   - <default>-1</default>
37   - <summary>The window width.</summary>
38   - <description></description>
39   - </key>
40   -
41   - <key name="height" type="i">
42   - <default>-1</default>
43   - <summary>The window height.</summary>
44   - <description></description>
45   - </key>
46   -
47   - <key name="is-maximized" type="b">
48   - <default>false</default>
49   - <summary>Is the window maximized?</summary>
50   - <description></description>
51   - </key>
52   -
53   - <key name="is-fullscreen" type="b">
54   - <default>false</default>
55   - <summary>Is the window in full screen mode?</summary>
56   - <description></description>
57   - </key>
58   -
59   - <key name="has-subtitle" type="b">
60   - <default>false</default>
61   - <summary>Enable top window subtitle</summary>
62   - <description>If TRUE, reserve space for a subtitle, even if none is currently set.</description>
63   - </key>
64   -
65   - <key name="toolbar-visible" type="b">
66   - <default>true</default>
67   - <summary>The toolbar visible state</summary>
68   - <description></description>
69   - </key>
70   -
71   - <key name="menubar-visible" type="b">
72   - <default>true</default>
73   - <summary>The menubar visible state</summary>
74   - <description></description>
75   - </key>
76   -
77   - <key name="toolbar-style" type="i">
78   - <default>0</default>
79   - <summary>How to draw the toolbar.</summary>
80   - <description></description>
81   - </key>
82   -
83   - <key name="toolbar-icon-size" type="i">
84   - <default>2</default>
85   - <summary>The size of the toolbar icons</summary>
86   - <description></description>
87   - </key>
88   -
89   - <key name="toolbar-icon-type" type="i">
90   - <default>0</default>
91   - <summary>Use symbolic icons on toolbar</summary>
92   - <description></description>
93   - </key>
94   -
95   - <key name="header-icon-type" type="i">
96   - <default>0</default>
97   - <summary>Use symbolic icons on title bar</summary>
98   - <description></description>
99   - </key>
100   -
101   - <key name="toolbar-position" type="i">
102   - <default>0</default>
103   - <summary>The toolbar position</summary>
104   - <description></description>
105   - </key>
106   -
107   - <key name="toolbar-action-names" type="s">
108   - <default>'win.copy,win.paste,win.select-all,separator,win.clear,win.erase-input,separator,win.print,separator,win.zoom-out,win.zoom-fit-best,win.zoom-in'</default>
109   - <summary>The toolbar action list</summary>
110   - <description></description>
111   - </key>
112   -
113   - <key name="header-action-names" type="s">
114   - <default>'menu.open-menu,win.disconnect,win.reconnect:'</default>
115   - <summary>The title bar action list</summary>
116   - <description></description>
117   - </key>
118   -
119   - <key name="default-session-file" type="s">
120   - <default>''</default>
121   - <summary>Path of the default session file</summary>
122   - <description></description>
123   - </key>
124   -
125   - </schema>
126   -
127   -</schemalist>
src/include/config.h.in
... ... @@ -96,9 +96,15 @@
96 96 /* The product name */
97 97 #undef PLUGIN_DIR
98 98  
  99 +/* The product ID */
  100 +#undef PRODUCT_ID
  101 +
99 102 /* The product name */
100 103 #undef PRODUCT_NAME
101 104  
  105 +/* The schema path */
  106 +#undef PRODUCT_PATH
  107 +
102 108 /* Define to 1 if you have the ANSI C header files. */
103 109 #undef STDC_HEADERS
104 110  
... ...
src/objects/settings/gsettings.c
... ... @@ -148,9 +148,9 @@
148 148 }
149 149  
150 150 GSettings * pw3270_application_settings_new() {
151   - return settings_new("br.app." G_STRINGIFY(PRODUCT_NAME));
152   - }
  151 + return settings_new(G_STRINGIFY(PRODUCT_ID));
  152 + }
153 153  
154 154 GSettings * pw3270_application_window_settings_new() {
155   - return settings_new("br.app." G_STRINGIFY(PRODUCT_NAME) ".window");
  155 + return settings_new(G_STRINGIFY(PRODUCT_ID) ".window");
156 156 }
... ...