GNOME Bugzilla – Bug 758417
Trying to destroy non-existent input chooser leads to a CRITICAL
Last modified: 2015-11-23 10:43:46 UTC
Opening and closing the region panel without opening the input chooser will get you this: Gtk-CRITICAL **: gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
Fall out from: commit abb0592866515ac43ed1ac3c9ecc0b229960011f Author: Joaquim Rocha <me@joaquimrocha.com> Date: Thu Feb 26 22:10:40 2015 +0100 region: Reuse the input chooser instance The language input chooser is being created and destroyed every time it is opened and closed. This is noticeably slow and is hardly necessary as the values it contains should not change. To fix this, these changes reuse the same instance of the input chooser (by hiding and showing it) instead of renewing it. The input chooser is also now shown using gtk_dialog_run to avoid having it destroyed from the default delete event.
Created attachment 315984 [details] [review] region: Silence a CRITICAL
Review of attachment 315984 [details] [review]: I don't remember this happening before, but I see it now too. Looks good
Comment on attachment 315984 [details] [review] region: Silence a CRITICAL Pushed to master, gnome-3-18, gnome-3-16 and gnome-3-14.