Initial version

This commit is contained in:
2018-07-27 13:20:03 +02:00
commit 5fef988c0b
18 changed files with 1057 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>eu.polonkai.gergely.GnomeWaterReminder.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>
<description>
</description>
</component>

View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Name=gnome-water-reminder
Exec=gnome-water-reminder
Terminal=false
Type=Application
Categories=GTK;
StartupNotify=true

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="gnome-water-reminder">
<schema id="eu.polonkai.gergely.GnomeWaterReminder" path="/eu/polonkai/gergely/GnomeWaterReminder/">
</schema>
</schemalist>

24
data/gwr-window.ui Normal file
View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GwrWindow" parent="GtkApplicationWindow">
<property name="default-width">600</property>
<property name="default-height">300</property>
<child type="titlebar">
<object class="GtkHeaderBar" id="header_bar">
<property name="visible">True</property>
<property name="show-close-button">True</property>
<property name="title">Hello, World!</property>
</object>
</child>
<child>
<object class="GtkLabel" id="label">
<property name="label">Hello, World!</property>
<property name="visible">True</property>
<attributes>
<attribute name="weight" value="bold"/>
<attribute name="scale" value="2"/>
</attributes>
</object>
</child>
</template>
</interface>

6
data/gwr.gresource.xml Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/eu/polonkai/gergely/GnomeWaterReminder">
<file>gwr-window.ui</file>
</gresource>
</gresources>

46
data/meson.build Normal file
View File

@@ -0,0 +1,46 @@
desktop_file = i18n.merge_file(
input: 'eu.polonkai.gergely.GnomeWaterReminder.desktop.in',
output: 'eu.polonkai.gergely.GnomeWaterReminder.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
desktop_utils = find_program('desktop-file-validate', required: false)
if desktop_utils.found()
test('Validate desktop file', desktop_utils,
args: [desktop_file]
)
endif
appstream_file = i18n.merge_file(
input: 'eu.polonkai.gergely.GnomeWaterReminder.appdata.xml.in',
output: 'eu.polonkai.gergely.GnomeWaterReminder.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
)
appstream_util = find_program('appstream-util', required: false)
if appstream_util.found()
test('Validate appstream file', appstream_util,
args: ['validate', appstream_file]
)
endif
install_data('eu.polonkai.gergely.GnomeWaterReminder.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)
compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()]
)
endif
gwr_resources = gnome.compile_resources('gwr-resources',
'gwr.gresource.xml',
c_name: 'gwr'
)