summaryrefslogtreecommitdiff
path: root/plugins/common/Resources.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:23 +0100
committerJörg Frings-Fürst <debian@jff.email>2026-03-08 11:11:23 +0100
commit1ef9b86df1cca6dde71529f03b66407953d000c9 (patch)
treeb3d41d58cbb1d52e3871e40258539ac760cd265e /plugins/common/Resources.vala
parentfa4d70ea3101f5a70b33977ba9b7673ddfb36762 (diff)
parent210cc61ee4191465805a770881235c677041f929 (diff)
Update upstream source from tag 'upstream/0.32.15'
Update to upstream version '0.32.15' with Debian dir ab0b4536d524ccbb338db4641523f7abd3f9a2fd
Diffstat (limited to 'plugins/common/Resources.vala')
-rw-r--r--plugins/common/Resources.vala24
1 files changed, 0 insertions, 24 deletions
diff --git a/plugins/common/Resources.vala b/plugins/common/Resources.vala
index 16306f2..d8c3fd3 100644
--- a/plugins/common/Resources.vala
+++ b/plugins/common/Resources.vala
@@ -30,30 +30,6 @@ along with Shotwell; if not, write to the Free Software Foundation, Inc.,
public const string TRANSLATORS = _("translator-credits");
-// TODO: modify to load multiple icons
-//
-// provided all the icons in the set follow a known naming convention (such as iconName_nn.png,
-// where 'nn' is a size value in pixels, for example plugins_16.png -- this convention seems
-// pretty common in the GNOME world), then this function can be modified to load an entire icon
-// set without its interface needing to change, since given one icon filename, we can
-// determine the others.
-public Gdk.Pixbuf[]? load_icon_set(GLib.File? icon_file) {
- Gdk.Pixbuf? icon = null;
- try {
- icon = new Gdk.Pixbuf.from_file(icon_file.get_path());
- } catch (Error err) {
- warning("couldn't load icon set from %s: %s", icon_file.get_path(), err.message);
- }
-
- if (icon != null) {
- Gdk.Pixbuf[] icon_pixbuf_set = new Gdk.Pixbuf[0];
- icon_pixbuf_set += icon;
- return icon_pixbuf_set;
- }
-
- return null;
-}
-
public Gdk.Pixbuf[]? load_from_resource (string resource_path) {
Gdk.Pixbuf? icon = null;
try {