Commit 65720c07 authored by Felix Riemann's avatar Felix Riemann
Browse files

EogThumbnail: Load thumbnail frame from a GResource

Also optimize the frame's filesize.
parent b9df4c04
pixmapsdir = $(pkgdatadir)/pixmaps
pixmaps_DATA = \
thumbnail-frame.png
EXTRA_DIST = \ EXTRA_DIST = \
$(pixmaps_DATA) thumbnail-frame.png
-include $(top_srcdir)/git.mk -include $(top_srcdir)/git.mk
data/pixmaps/thumbnail-frame.png

908 Bytes | W: | H:

data/pixmaps/thumbnail-frame.png

474 Bytes | W: | H:

data/pixmaps/thumbnail-frame.png
data/pixmaps/thumbnail-frame.png
data/pixmaps/thumbnail-frame.png
data/pixmaps/thumbnail-frame.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -534,6 +534,8 @@ eog_thumbnail_init (void) ...@@ -534,6 +534,8 @@ eog_thumbnail_init (void)
} }
if (frame == NULL) { if (frame == NULL) {
frame = gdk_pixbuf_new_from_file (EOG_DATA_DIR "/pixmaps/thumbnail-frame.png", NULL); frame = gdk_pixbuf_new_from_resource (
"/org/gnome/eog/ui/pixmaps/thumbnail-frame.png",
NULL);
} }
} }
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<file compressed="true" preprocess="xml-stripblanks">eog-multiple-save-as-dialog.ui</file> <file compressed="true" preprocess="xml-stripblanks">eog-multiple-save-as-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">eog-preferences-dialog.ui</file> <file compressed="true" preprocess="xml-stripblanks">eog-preferences-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">eog-ui.xml</file> <file compressed="true" preprocess="xml-stripblanks">eog-ui.xml</file>
<file>pixmaps/thumbnail-frame.png</file>
</gresource> </gresource>
</gresources> </gresources>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment