Skip to content

Commit b18e263

Browse files
fxriraveit65
authored andcommitted
EomThumbnail: Load thumbnail frame from a GResource
Also optimize the frame's filesize. origin commit: https://gitlab.gnome.org/GNOME/eog/commit/65720c0
1 parent b1fb22d commit b18e263

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

‎data/pixmaps/Makefile.am‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
pixmapsdir = $(pkgdatadir)/pixmaps
22

3-
pixmaps_DATA = \
4-
thumbnail-frame.png
5-
63
EXTRA_DIST = \
7-
$(pixmaps_DATA)
4+
thumbnail-frame.png
85

96
-include $(top_srcdir)/git.mk

‎data/pixmaps/thumbnail-frame.png‎

-434 Bytes
Loading

‎src/eom-thumbnail.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,8 @@ eom_thumbnail_init (void)
534534
}
535535

536536
if (frame == NULL) {
537-
frame = gdk_pixbuf_new_from_file (EOM_DATA_DIR "/pixmaps/thumbnail-frame.png", NULL);
537+
frame = gdk_pixbuf_new_from_resource (
538+
"/org/mate/eom/ui/pixmaps/thumbnail-frame.png",
539+
NULL);
538540
}
539541
}

‎src/eom.gresource.xml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<file compressed="true" preprocess="xml-stripblanks">eom-multiple-save-as-dialog.ui</file>
77
<file compressed="true" preprocess="xml-stripblanks">eom-ui.xml</file>
88
<file compressed="true" preprocess="xml-stripblanks">metadata-sidebar.ui</file>
9+
<file>pixmaps/thumbnail-frame.png</file>
910
</gresource>
1011
</gresources>
1112

0 commit comments

Comments
 (0)