After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 700652 - icon-name property of GtkIconFactory sources gets lost
icon-name property of GtkIconFactory sources gets lost
Status: RESOLVED OBSOLETE
Product: glade
Classification: Applications
Component: general
3.12.x
Other Linux
: Normal normal
: ---
Assigned To: Glade 3 Maintainers
Glade 3 Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-05-19 18:35 UTC by Colomban Wendling
Modified: 2018-03-26 15:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Colomban Wendling 2013-05-19 18:35:05 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.
Comment 1 Tristan Van Berkom 2013-05-19 19:42:40 UTC
This was never implemented or asked for before.

Curiously, what is the use case ?

Aliasing icon names to... other icon names ?
Comment 2 Colomban Wendling 2013-05-19 20:05:12 UTC
(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.
Comment 3 GNOME Infrastructure Team 2018-03-26 15:29:18 UTC
-- 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.