mirror of
https://gitlab.cvh-server.de/skrause/flashcards.git
synced 2025-12-12 04:31:39 +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 alias="appdata" compressed="true" preprocess="xml-stripblanks">li.sopht.Flashcards.metainfo.xml</file>
|
||||
</gresource>
|
||||
<gresource prefix="/li/sopht/flashcards/icons/scalable/actions/">
|
||||
<file preprocess="xml-stripblanks">icons/hicolor/scalable/actions/add-card-symbolic.svg</file>
|
||||
</gresource>
|
||||
</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'
|
||||
install_data(
|
||||
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'
|
||||
install_data(
|
||||
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(
|
||||
input : 'li.sopht.Flashcards.desktop.in',
|
||||
output : 'li.sopht.Flashcards.desktop',
|
||||
type : 'desktop',
|
||||
po_dir : '../po',
|
||||
install : true,
|
||||
install_dir : get_option('datadir') / 'applications'
|
||||
input : 'li.sopht.Flashcards.desktop.in',
|
||||
output : 'li.sopht.Flashcards.desktop',
|
||||
type : 'desktop',
|
||||
po_dir : '../po',
|
||||
install : true,
|
||||
install_dir : 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])
|
||||
test('Validate desktop file', desktop_utils, args : [desktop_file])
|
||||
endif
|
||||
|
||||
appstream_file = i18n.merge_file(
|
||||
input : 'li.sopht.Flashcards.metainfo.xml.in',
|
||||
output : 'li.sopht.Flashcards.metainfo.xml',
|
||||
po_dir : '../po',
|
||||
install : true,
|
||||
install_dir : get_option('datadir') / 'metainfo'
|
||||
input : 'li.sopht.Flashcards.metainfo.xml.in',
|
||||
output : 'li.sopht.Flashcards.metainfo.xml',
|
||||
po_dir : '../po',
|
||||
install : true,
|
||||
install_dir : get_option('datadir') / 'metainfo'
|
||||
)
|
||||
|
||||
appstreamcli = find_program('appstreamcli', required : false, disabler : true)
|
||||
@@ -36,10 +36,10 @@ test('Validate appstream file', appstreamcli,
|
||||
service_conf = configuration_data()
|
||||
service_conf.set('bindir', get_option('prefix') / get_option('bindir'))
|
||||
configure_file(
|
||||
input : 'li.sopht.Flashcards.service.in',
|
||||
output : 'li.sopht.Flashcards.service',
|
||||
configuration : service_conf,
|
||||
install_dir : get_option('datadir') / 'dbus-1' / 'services'
|
||||
input : 'li.sopht.Flashcards.service.in',
|
||||
output : 'li.sopht.Flashcards.service',
|
||||
configuration : service_conf,
|
||||
install_dir : get_option('datadir') / 'dbus-1' / 'services'
|
||||
)
|
||||
|
||||
subdir('ui')
|
||||
|
||||
@@ -64,7 +64,7 @@ template $FlashcardsAppWindow : Adw.ApplicationWindow {
|
||||
Adw.HeaderBar {
|
||||
[start]
|
||||
Gtk.Button add_card_button {
|
||||
icon-name: "list-add-symbolic";
|
||||
icon-name: "add-card-symbolic";
|
||||
clicked => $on_add_card();
|
||||
tooltip-text: _("Add flashcard");
|
||||
visible: false;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
#include <adwaita.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
#define FLASHCARDS_CREATE_CARD_DIALOG_TYPE \
|
||||
(flashcards_create_card_dialog_get_type ())
|
||||
#define FLASHCARDS_CREATE_CARD_DIALOG_TYPE \
|
||||
(flashcards_create_card_dialog_get_type ())
|
||||
G_DECLARE_FINAL_TYPE (FlashcardsCreateCardDialog,
|
||||
flashcards_create_card_dialog, FLASHCARDS,
|
||||
CREATE_CARD_DIALOG, AdwAlertDialog)
|
||||
|
||||
Reference in New Issue
Block a user