aboutsummaryrefslogtreecommitdiff
path: root/src/sc_editor.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.me.uk>2018-03-31 19:00:06 +0200
committerThomas White <taw@bitwiz.me.uk>2018-03-31 19:07:09 +0200
commit2e5cf1278d8976a1d714c5fe2b0b58fd9175d975 (patch)
tree7cd59a2fbd0122122b307240f101c1b3eb8e71a3 /src/sc_editor.c
parentd8ab381ea63e90053c958a7658d421f6843a8783 (diff)
Use GResource for sky.png
Diffstat (limited to 'src/sc_editor.c')
-rw-r--r--src/sc_editor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sc_editor.c b/src/sc_editor.c
index e087b55..bb22400 100644
--- a/src/sc_editor.c
+++ b/src/sc_editor.c
@@ -2074,7 +2074,8 @@ SCEditor *sc_editor_new(SCBlock *scblocks, SCBlock **stylesheets,
sceditor->bg_pixbuf = NULL;
err = NULL;
- sceditor->bg_pixbuf = gdk_pixbuf_new_from_file(DATADIR"/sky.png", &err);
+ sceditor->bg_pixbuf = gdk_pixbuf_new_from_resource("/uk/me/bitwiz/Colloquium/sky.png",
+ &err);
if ( sceditor->bg_pixbuf == NULL ) {
fprintf(stderr, "Failed to load background: %s\n",
err->message);