mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 09:01:37 +01:00
Compare commits
2 Commits
4910217797
...
a444bdd2fb
| Author | SHA1 | Date | |
|---|---|---|---|
|
a444bdd2fb
|
|||
|
ed81f378a5
|
@@ -6,4 +6,7 @@
|
|||||||
<file preprocess="xml-stripblanks">create-card.ui</file>
|
<file preprocess="xml-stripblanks">create-card.ui</file>
|
||||||
<file alias="appdata" compressed="true" preprocess="xml-stripblanks">li.sopht.Flashcards.metainfo.xml</file>
|
<file alias="appdata" compressed="true" preprocess="xml-stripblanks">li.sopht.Flashcards.metainfo.xml</file>
|
||||||
</gresource>
|
</gresource>
|
||||||
|
<gresource prefix="/li/sopht/flashcards/icons/scalable/actions/">
|
||||||
|
<file preprocess="xml-stripblanks">icons/hicolor/scalable/actions/add-card-symbolic.svg</file>
|
||||||
|
</gresource>
|
||||||
</gresources>
|
</gresources>
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 7 3 v 4 h -4 v 2 h 4 v 4 h 2 v -4 h 4 v -2 h -4 v -4 z m 0 0" fill="#222222"/></svg>
|
||||||
|
After Width: | Height: | Size: 222 B |
@@ -3,11 +3,20 @@ application_id = 'li.sopht.Flashcards'
|
|||||||
scalable_dir = 'hicolor' / 'scalable' / 'apps'
|
scalable_dir = 'hicolor' / 'scalable' / 'apps'
|
||||||
install_data(
|
install_data(
|
||||||
scalable_dir / ('@0@.svg').format(application_id),
|
scalable_dir / ('@0@.svg').format(application_id),
|
||||||
install_dir: get_option('datadir') / 'icons' / scalable_dir
|
install_dir : get_option('datadir') / 'icons' / scalable_dir
|
||||||
)
|
)
|
||||||
|
|
||||||
symbolic_dir = 'hicolor' / 'symbolic' / 'apps'
|
symbolic_dir = 'hicolor' / 'symbolic' / 'apps'
|
||||||
install_data(
|
install_data(
|
||||||
symbolic_dir / ('@0@-symbolic.svg').format(application_id),
|
symbolic_dir / ('@0@-symbolic.svg').format(application_id),
|
||||||
install_dir: get_option('datadir') / 'icons' / symbolic_dir
|
install_dir : get_option('datadir') / 'icons' / symbolic_dir
|
||||||
|
)
|
||||||
|
|
||||||
|
action_dir = 'hicolor' / 'scalable' / 'actions'
|
||||||
|
action_icons = [
|
||||||
|
action_dir / 'add-card-symbolic.svg',
|
||||||
|
]
|
||||||
|
install_data(
|
||||||
|
action_icons,
|
||||||
|
install_dir : get_option('datadir') / 'icons' / action_dir
|
||||||
)
|
)
|
||||||
@@ -8,25 +8,25 @@ install_data('li.sopht.Flashcards.gschema.xml',
|
|||||||
)
|
)
|
||||||
|
|
||||||
desktop_file = i18n.merge_file(
|
desktop_file = i18n.merge_file(
|
||||||
input : 'li.sopht.Flashcards.desktop.in',
|
input : 'li.sopht.Flashcards.desktop.in',
|
||||||
output : 'li.sopht.Flashcards.desktop',
|
output : 'li.sopht.Flashcards.desktop',
|
||||||
type : 'desktop',
|
type : 'desktop',
|
||||||
po_dir : '../po',
|
po_dir : '../po',
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : get_option('datadir') / 'applications'
|
install_dir : get_option('datadir') / 'applications'
|
||||||
)
|
)
|
||||||
|
|
||||||
desktop_utils = find_program('desktop-file-validate', required : false)
|
desktop_utils = find_program('desktop-file-validate', required : false)
|
||||||
if desktop_utils.found()
|
if desktop_utils.found()
|
||||||
test('Validate desktop file', desktop_utils, args : [desktop_file])
|
test('Validate desktop file', desktop_utils, args : [desktop_file])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
appstream_file = i18n.merge_file(
|
appstream_file = i18n.merge_file(
|
||||||
input : 'li.sopht.Flashcards.metainfo.xml.in',
|
input : 'li.sopht.Flashcards.metainfo.xml.in',
|
||||||
output : 'li.sopht.Flashcards.metainfo.xml',
|
output : 'li.sopht.Flashcards.metainfo.xml',
|
||||||
po_dir : '../po',
|
po_dir : '../po',
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : get_option('datadir') / 'metainfo'
|
install_dir : get_option('datadir') / 'metainfo'
|
||||||
)
|
)
|
||||||
|
|
||||||
appstreamcli = find_program('appstreamcli', required : false, disabler : true)
|
appstreamcli = find_program('appstreamcli', required : false, disabler : true)
|
||||||
@@ -36,10 +36,10 @@ test('Validate appstream file', appstreamcli,
|
|||||||
service_conf = configuration_data()
|
service_conf = configuration_data()
|
||||||
service_conf.set('bindir', get_option('prefix') / get_option('bindir'))
|
service_conf.set('bindir', get_option('prefix') / get_option('bindir'))
|
||||||
configure_file(
|
configure_file(
|
||||||
input : 'li.sopht.Flashcards.service.in',
|
input : 'li.sopht.Flashcards.service.in',
|
||||||
output : 'li.sopht.Flashcards.service',
|
output : 'li.sopht.Flashcards.service',
|
||||||
configuration : service_conf,
|
configuration : service_conf,
|
||||||
install_dir : get_option('datadir') / 'dbus-1' / 'services'
|
install_dir : get_option('datadir') / 'dbus-1' / 'services'
|
||||||
)
|
)
|
||||||
|
|
||||||
subdir('ui')
|
subdir('ui')
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
|
|||||||
Adw.HeaderBar {
|
Adw.HeaderBar {
|
||||||
[start]
|
[start]
|
||||||
Gtk.Button add_card_button {
|
Gtk.Button add_card_button {
|
||||||
icon-name: "list-add-symbolic";
|
icon-name: "add-card-symbolic";
|
||||||
clicked => $on_add_card();
|
clicked => $on_add_card();
|
||||||
tooltip-text: _("Add flashcard");
|
tooltip-text: _("Add flashcard");
|
||||||
visible: false;
|
visible: false;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
#include <adwaita.h>
|
#include <adwaita.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
#define FLASHCARDS_CREATE_CARD_DIALOG_TYPE \
|
#define FLASHCARDS_CREATE_CARD_DIALOG_TYPE \
|
||||||
(flashcards_create_card_dialog_get_type ())
|
(flashcards_create_card_dialog_get_type ())
|
||||||
G_DECLARE_FINAL_TYPE (FlashcardsCreateCardDialog,
|
G_DECLARE_FINAL_TYPE (FlashcardsCreateCardDialog,
|
||||||
flashcards_create_card_dialog, FLASHCARDS,
|
flashcards_create_card_dialog, FLASHCARDS,
|
||||||
CREATE_CARD_DIALOG, AdwAlertDialog)
|
CREATE_CARD_DIALOG, AdwAlertDialog)
|
||||||
|
|||||||
Reference in New Issue
Block a user