~steef/snixembed

00d7e51bcec072fca93cb46b36f2bc99bed9d262 — Steef Hegeman 7 days ago 0cd2d89 master
StatusIcon: set name after it exists

Apparently Gdk raises a critical error if a name is set before an icon
is set, maybe the window is not yet created at this point. See
https://github.com/dorkbox/SystemTray/issues/19 for context.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/proxyicon.vala
M src/proxyicon.vala => src/proxyicon.vala +1 -1
@@ 19,8 19,8 @@ class ProxyIcon : Object {
            }
        });

        icon.set_name(item.id);
        set_icon();
        icon.set_name(item.id); // MUST be called after an icon is set due to Gdk internals
        set_tooltip();

        if (item.menu != null) {