GNOME Bugzilla – Bug 638263
gtk_status_icon_set_name not usable in normal applications
Last modified: 2011-09-04 21:05:38 UTC
Created attachment 177188 [details] Failing program It looks like gtk_status_icon_set_name is not usable in a normal application, as the attached program demonstrates. By the time gtk_status_icon_new() returns, its tray_icon member (on X11) was already shown, and so we get: (status-icon-name:3730): Gtk-WARNING **: gtk_window_set_wmclass: shouldn't set wmclass after window is realized! Also: (status-icon-name:3730): GLib-GObject-WARNING **: g_object_notify: object class `GtkStatusIcon' has no property named `name' This applies to gtk+ 2.23 and 2.91.
Should be fixed now.
(In reply to comment #1) > Should be fixed now. Your commit does fix the realize issue, but the g_object_notify assertion still occurs on gtk-2-24. Commit 32f6070bc84c9e6f2173fb0b37476435367c7802 fixed that issue on master, but it never got back-ported. Shall I cherry-pick it?
Sure, please do
Now done as commit dafc1eda808fcd75f27ae0287f7ead617973828e.