GNOME Bugzilla – Bug 647229
Preferences window is empty/tiny
Last modified: 2011-04-16 01:32:22 UTC
Created attachment 185554 [details] screenshot Every second or third time I try to open Preferences, it doesn't open right - it opens a new Gtk window, but it's empty/tiny.
Here I was able to reproduce the bug: Console output: (cheese:18030): Gtk-CRITICAL **: gtk_container_set_border_width: assertion `GTK_IS_CONTAINER (container)' failed (cheese:18030): Gtk-CRITICAL **: _gtk_box_get_spacing_set: assertion `GTK_IS_BOX (box)' failed (cheese:18030): Gtk-CRITICAL **: gtk_box_set_spacing: assertion `GTK_IS_BOX (box)' failed (cheese:18030): Gtk-CRITICAL **: _gtk_box_set_spacing_set: assertion `GTK_IS_BOX (box)' failed (cheese:18030): Gtk-CRITICAL **: gtk_box_set_spacing: assertion `GTK_IS_BOX (box)' failed (cheese:18030): Gtk-CRITICAL **: gtk_container_set_border_width: assertion `GTK_IS_CONTAINER (container)' failed (cheese:18030): Gtk-CRITICAL **: gtk_container_foreach: assertion `GTK_IS_CONTAINER (container)' failed
What I notice was that are two ways of closing the preferences window, the error doesn't happens when the user closes the window by clicking on "Close", but, when the window is closed by pressing Esc the next time the user try to open, the empty/tiny window shows up.
Created attachment 185602 [details] [review] Patch for fixing the issue Pressing the escape key at the Preferences dialog closes it (and also deletes it internally), then, when the user tries to open it again an empty/tiny window shows up. The fix was handle the "delete-event" signal connecting it with "gtk_widget_hide_on_delete()". Now, press the escape key has the same effect that clicking on "Close" button.
Also, the patch has a lot of changes at cheese-prefs.ui, due to a different version of Glade, maybe... The important part is only: <signal name="delete-event" handler="cheese_preferences_dialog_on_delete" swapped="no"/> inside the <object class="GtkDialog" id="cheese_prefs_dialog"> tag
Created attachment 185653 [details] [review] Patch for fixing the issue (reupload) Reupload for the patch sent before, fixing the chesse-prefs.ui unecessary changes
Review of attachment 185653 [details] [review]: Thanks for the patch. Commited as 9c27753176e931908b894b6b3707a8588f9c1de5.