diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 11:11:07 +0100 |
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2026-03-08 11:11:07 +0100 |
| commit | 210cc61ee4191465805a770881235c677041f929 (patch) | |
| tree | 22dfc8a656a39b95dba2b537f11dcbe36b5c6f0c /plugins/common/Resources.vala | |
| parent | 7868ff68cff97b21fe6d8681f8bc0334849c4d38 (diff) | |
New upstream version 0.32.15upstream/0.32.15upstream
Diffstat (limited to 'plugins/common/Resources.vala')
| -rw-r--r-- | plugins/common/Resources.vala | 24 |
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 { |
