Skip to content
Permalink
Browse files

EomThumbnail: Load thumbnail frame from a GResource

Also optimize the frame's filesize.

origin commit:
https://gitlab.gnome.org/GNOME/eog/commit/65720c0
  • Loading branch information...
Felix Riemann authored and raveit65 committed Jan 5, 2015
1 parent b1fb22d commit b18e263d2e56de145d702a20a66bfca2631a65aa
Showing with 5 additions and 5 deletions.
  1. +1 −4 data/pixmaps/Makefile.am
  2. BIN data/pixmaps/thumbnail-frame.png
  3. +3 −1 src/eom-thumbnail.c
  4. +1 −0 src/eom.gresource.xml
@@ -1,9 +1,6 @@
pixmapsdir = $(pkgdatadir)/pixmaps

pixmaps_DATA = \
thumbnail-frame.png

EXTRA_DIST = \
$(pixmaps_DATA)
thumbnail-frame.png

-include $(top_srcdir)/git.mk
BIN -434 Bytes (52%) data/pixmaps/thumbnail-frame.png
Binary file not shown.
@@ -534,6 +534,8 @@ eom_thumbnail_init (void)
}

if (frame == NULL) {
frame = gdk_pixbuf_new_from_file (EOM_DATA_DIR "/pixmaps/thumbnail-frame.png", NULL);
frame = gdk_pixbuf_new_from_resource (
"/org/mate/eom/ui/pixmaps/thumbnail-frame.png",
NULL);
}
}
@@ -6,6 +6,7 @@
<file compressed="true" preprocess="xml-stripblanks">eom-multiple-save-as-dialog.ui</file>
<file compressed="true" preprocess="xml-stripblanks">eom-ui.xml</file>
<file compressed="true" preprocess="xml-stripblanks">metadata-sidebar.ui</file>
<file>pixmaps/thumbnail-frame.png</file>
</gresource>
</gresources>

0 comments on commit b18e263

Please sign in to comment.
You can’t perform that action at this time.