-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gsetting Implimented
- Loading branch information
Showing
5 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<schemalist> | ||
<schema path="/com/bsdadm/linux/vala-and-gtk-starter/" id="com.bsdadm.linux.vala-and-gtk-starter"> | ||
<key name="pos-x" type="i"> | ||
<default>320</default> | ||
<summary>The horizontal position of the window</summary> | ||
<description>The saved Horizontal position of the window</description> | ||
</key> | ||
|
||
<key name="pos-y" type="i"> | ||
<default>320</default> | ||
<summary>The vertical position of the window</summary> | ||
<description>The saved Vertical position of the window</description> | ||
</key> | ||
|
||
<key name="window-width" type="i"> | ||
<default>640</default> | ||
<summary>The width of the window</summary> | ||
<description>The saved width of the window</description> | ||
</key> | ||
|
||
<key name="window-height" type="i"> | ||
<default>480</default> | ||
<summary>The height of the window</summary> | ||
<description>The saved height of the window</description> | ||
</key> | ||
|
||
<key name="first-run" type="b"> | ||
<default>true</default> | ||
<summary>Whether this is the first time the application has been run</summary> | ||
<description>Whether this is the first time the application has been run</description> | ||
</key> | ||
</schema> | ||
</schemalist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
install_data( | ||
'gschema.xml', | ||
install_dir: join_paths (get_option ('datadir'), 'glib-2.0', 'schemas'), | ||
rename: meson.project_name() + '.gschema.xml', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
project('com.bsdadm.linux.vala-and-gtk-starter', 'vala', 'c') | ||
|
||
subdir('src') | ||
subdir('src') | ||
subdir('data') | ||
|
||
meson.add_install_script('meson/post_install.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import subprocess | ||
|
||
install_prefix = os.environ['MESON_INSTALL_PREFIX'] | ||
schemadir = os.path.join(install_prefix, 'share/glib-2.0/schemas') | ||
|
||
if not os.environ.get('DESTDIR'): | ||
print('Compiling gsettings schemas...') | ||
subprocess.call(['glib-compile-schemas', schemadir]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters