aboutsummaryrefslogtreecommitdiff
path: root/libtopmenu-client/topmenu-client.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-02-15 03:57:49 +0100
committerJavier <dev.git@javispedro.com>2015-02-15 03:57:49 +0100
commitd82d349daa3fdccbef0186ae19311004c4bb2434 (patch)
tree81192b3ce05e59005e2885bd04d6461586146bf2 /libtopmenu-client/topmenu-client.c
parentf0d43c65fe9c6b258a92ae9dfd612eae0060754b (diff)
downloadtopmenu-gtk-d82d349daa3fdccbef0186ae19311004c4bb2434.tar.gz
topmenu-gtk-d82d349daa3fdccbef0186ae19311004c4bb2434.zip
be slightly more reliable when following destroyed windows
Diffstat (limited to 'libtopmenu-client/topmenu-client.c')
-rw-r--r--libtopmenu-client/topmenu-client.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libtopmenu-client/topmenu-client.c b/libtopmenu-client/topmenu-client.c
index 46bf714..0f95c2f 100644
--- a/libtopmenu-client/topmenu-client.c
+++ b/libtopmenu-client/topmenu-client.c
@@ -106,10 +106,6 @@ void topmenu_client_connect_window_widget(GdkWindow *window, GtkWidget *widget)
G_CALLBACK(handle_widget_button_event), plug, 0);
gtk_widget_show(GTK_WIDGET(plug));
- // Gtk+ should keep a reference to plug as it is a "top level" widget.
- // Otherwise I failed to parse the documentation.
- g_warn_if_fail(G_OBJECT(plug)->ref_count == 1);
-
Window plug_xwin = gtk_plug_get_id(plug);
Atom atom = XInternAtom(display, ATOM_TOPMENU_WINDOW, False);