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 535557 - gdk_window_set_icon_name should accept NULL to unset
gdk_window_set_icon_name should accept NULL to unset
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-05-29 18:39 UTC by Christian Persch
Modified: 2009-04-20 12:57 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
proposed patch (2.42 KB, patch)
2008-07-23 09:09 UTC, Christian Persch
accepted-commit_now Details | Review

Description Christian Persch 2008-05-29 18:39:02 UTC
Usually the 'icon title' is the same as the normal title set with gtk_window_set_title(). gdk_window_set_icon_name allows to provide a separate 'icon title' for the window. But there's no way to re-set it so that 'icon title' again tracks the normal window title.
I propose that using NULL for gdk_window_set_icon_name should do this; I can write a patch if that's agreeable.
Comment 1 Christian Persch 2008-07-23 09:09:32 UTC
Created attachment 115084 [details] [review]
proposed patch
Comment 2 Matthias Clasen 2009-03-25 05:11:29 UTC
Looks fine to me
Comment 3 Matthias Clasen 2009-04-18 19:12:35 UTC
Please commit to gtk-2-16 (I'll merge it to master later, or you can commit it there as well...)
Comment 4 Christian Persch 2009-04-20 12:57:35 UTC
Committed to 2-16 and master.