mirror of
https://gitlab.gnome.org/GNOME/eog
synced 2024-10-18 14:04:27 +00:00
EogThumbnail: Load thumbnail frame from a GResource
Also optimize the frame's filesize.
This commit is contained in:
parent
b9df4c049e
commit
65720c07c9
|
@ -1,9 +1,4 @@
|
|||
pixmapsdir = $(pkgdatadir)/pixmaps
|
||||
|
||||
pixmaps_DATA = \
|
||||
EXTRA_DIST = \
|
||||
thumbnail-frame.png
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(pixmaps_DATA)
|
||||
|
||||
-include $(top_srcdir)/git.mk
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 908 B After Width: | Height: | Size: 474 B |
|
@ -534,6 +534,8 @@ eog_thumbnail_init (void)
|
|||
}
|
||||
|
||||
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 @@
|
|||
<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-ui.xml</file>
|
||||
<file>pixmaps/thumbnail-frame.png</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
|
|
Loading…
Reference in a new issue