GNOME Bugzilla – Bug 482841
critical warnings on gdk_display_close after _gtk_tooltip_handle_event
Last modified: 2007-10-08 12:40:13 UTC
Please describe the problem: The problem seems to be that gtk_tooltip_finalize is run too late in the gdk_display_close process and gtk_widget_get_display on tooltip->window fails. Steps to reproduce: 1. hover the mouse over the window (runs _gtk_tooltip_handle_event) 2. gtk_main_quit 3. gdk_display_close Actual results: Several warnings are emitted. The first of which are: (a.out:30780): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed (a.out:30780): GLib-GObject-WARNING **: invalid (NULL) pointer instance (a.out:30780): GLib-GObject-CRITICAL **: g_signal_handlers_disconnect_matched: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed (a.out:30780): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed The rest are similar. Expected results: No warnings. Does this happen every time? Yes. Other information:
Created attachment 96555 [details] [review] correct gtk_tooltip_display_closed and connect to display "closed" signal
Created attachment 96556 [details] test program
Patch looks correct to me. Kris ?
Committed r18890.