Changed unref -> ref_sink for GTK menus
This commit is contained in:
parent
4417b2e536
commit
6ae7061f2f
|
@ -57,7 +57,8 @@ class GtkTypeSystemTray extends SystemTray {
|
|||
this.widgets.clear();
|
||||
|
||||
// unrefs the children too
|
||||
libgobject.g_object_unref(this.menu);
|
||||
// GTK menu needs a "ref_sink"
|
||||
libgobject.g_object_ref_sink(this.menu);
|
||||
this.menu = null;
|
||||
|
||||
synchronized (this.menuEntries) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user