From d82d349daa3fdccbef0186ae19311004c4bb2434 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 15 Feb 2015 03:57:49 +0100 Subject: be slightly more reliable when following destroyed windows --- libtopmenu-client/topmenu-client.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libtopmenu-client') 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); -- cgit v1.2.3