GNOME Bugzilla – Bug 700652
icon-name property of GtkIconFactory sources gets lost
Last modified: 2018-03-26 15:29:18 UTC
If an UI definition contains a GtkIconFactory that has sources with "icon-name"s rather than "filename"s, Glade don't load them, and saves the UI definition without them. I don't need to display or edit them, but I need Glade not to break them. BTW, apparently Glade outputs warning on the CLI about "filename" being missing but required; and although it's true that it isn't there, it's neither "missing" nor required: * https://developer.gnome.org/gtk2/stable/gtk2-Themeable-Stock-Images.html#GtkIconFactory-BUILDER-UI * https://developer.gnome.org/gtk3/stable/gtk3-Themeable-Stock-Images.html#GtkIconFactory-BUILDER-UI My GtkIconFactory UI snippet look like this: <object class="GtkIconFactory" id="iconfactory1"> <sources> <source stock-id="foo-bar" icon-name="foo-bar"/> <source stock-id="foo-baz" icon-name="foo-baz"/> <!-- ... --> </sources> </object> This affects both Glade 3.12 and Glade 3.8. I couldn't test 3.14 yet, but I don't see anything in the changelogs that suggests this could have been fixed.
This was never implemented or asked for before. Curiously, what is the use case ? Aliasing icon names to... other icon names ?
(In reply to comment #1) > This was never implemented or asked for before. > > Curiously, what is the use case ? > > Aliasing icon names to... other icon names ? Mainly, using them as stock icons for custom stock items.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glade/issues/127.