summaryrefslogtreecommitdiff
path: root/src/gui/core
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2019-01-23 20:16:14 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2019-01-23 20:16:14 (GMT)
commitd0a287a4e57b299cec22c94b028e3553d5b36fcd (patch)
tree86a274d6c894ec6506f0b5d55436d958a556f9fc /src/gui/core
parentf251814cf0fd10a767972530c119f8f109613c48 (diff)
Prepared a toolbar for actions on basic blocks.
Diffstat (limited to 'src/gui/core')
-rw-r--r--src/gui/core/Makefile.am22
-rw-r--r--src/gui/core/gresource.xml10
2 files changed, 32 insertions, 0 deletions
diff --git a/src/gui/core/Makefile.am b/src/gui/core/Makefile.am
index d83d63e..d23dc07 100644
--- a/src/gui/core/Makefile.am
+++ b/src/gui/core/Makefile.am
@@ -1,11 +1,21 @@
+BUILT_SOURCES = resources.h resources.c
+
noinst_LTLIBRARIES = libguicore.la
+RES_FILES = \
+ ../../../pixmaps/palette.png \
+ ../../../pixmaps/collapse.png \
+ ../../../pixmaps/collapse_dark.png \
+ ../../../pixmaps/expand.png \
+ ../../../pixmaps/expand_dark.png
+
libguicore_la_SOURCES = \
core.h core.c \
global.h global.c \
items.h items.c \
panels.h panels.c \
+ resources.h resources.c \
theme.h theme.c
libguicore_la_LDFLAGS = $(LIBGTK_LIBS) $(LIBXML_LIBS)
@@ -21,3 +31,15 @@ AM_CPPFLAGS = $(LIBGTK_CFLAGS) $(LIBXML_CFLAGS)
AM_CFLAGS = $(DEBUG_CFLAGS) $(WARNING_FLAGS) $(COMPLIANCE_FLAGS)
SUBDIRS =
+
+
+resources.c: gresource.xml $(RES_FILES)
+ glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-source --c-name gui_core gresource.xml
+
+resources.h: gresource.xml
+ glib-compile-resources --target=$@ --sourcedir=$(srcdir) --generate-header --c-name gui_core gresource.xml
+
+
+CLEANFILES = resources.h resources.c
+
+EXTRA_DIST = gresource.xml $(RES_FILES)
diff --git a/src/gui/core/gresource.xml b/src/gui/core/gresource.xml
new file mode 100644
index 0000000..ad3688c
--- /dev/null
+++ b/src/gui/core/gresource.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/chrysalide/gui/core/images">
+ <file compressed="true" alias="palette.png">../../../pixmaps/palette.png</file>
+ <file compressed="true" alias="collapse.png">../../../pixmaps/collapse.png</file>
+ <file compressed="true" alias="collapse_dark.png">../../../pixmaps/collapse_dark.png</file>
+ <file compressed="true" alias="expand.png">../../../pixmaps/expand.png</file>
+ <file compressed="true" alias="expand_dark.png">../../../pixmaps/expand_dark.png</file>
+ </gresource>
+</gresources>