Effect addins cannot use custom icons
Bug #1198593 reported by
Cameron White
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
Fix Released
|
Medium
|
Cameron White |
Bug Description
While working on the effect-writing documenttation, I noticed that we use PintaCore.
Changed in pinta: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I think we can work around this without making any messy changes by documenting how to add icons to the GTK icon set from the add-in. In Pinta.Resources .ResourceManage r.GetIcon the comment says this: .AddDefault( ) .
// First see if it's a built-in gtk icon, like gtk-new.
// This will also load any icons added by Gtk.IconFactory
So if the add-in initialises with something like this, I *think* it might work:
Gtk.IconFactory fac = new Gtk.IconFactory ();
fac.Add ("my-cool-icon", new Gtk.IconSet (new Pixbuf ("filename.png"));
Haven't tested; my Ubuntu desktop GTK theme thinks icons are for wimps and doesn'ẗ show any. At any rate, this isn't the biggest blocker in the world.