GNOME Bugzilla – Bug 659257
Gtk-WARNING **: GtkRecentChooserWidget 0x80da890 is mapped but ...
Last modified: 2011-11-16 19:35:08 UTC
When a GtkRecentChooserDialog is shown, this warning is printed: (testrecentchooser:3094): Gtk-WARNING **: GtkRecentChooserWidget 0x80da890 is mapped but visible=1 child_visible=1 parent GtkBox 0x80d9038 mapped=0 Steps to reproduce: Start the test program gtk+/tests/testrecentchooser. Actual results: Warning as above. Trace:
+ Trace 228475
Expected results: No warning. Build date and platform: Ubuntu 11.04, source code of gtk+, etc. from git's master branch, built with jhbuild on 2011-09-16. Additional information: I suspect that this bug is very similar to bug 640161, fixed with commit http://git.gnome.org/browse/gtk+/commit/?id=84bf984f8501201e082b888bc5479b5b8770c02b
I don't see this warning now, using the latest code from the gtk-3-0 branch. Do you?
I have not tested the gtk-3-0 branch, but I tested with today's version of the master branch, and the warning remains there. The warning is printed by gtk_widget_verify_invariants(), and that function is defined within #ifdef G_ENABLE_DEBUG. The warning is printed only if gtkwidget.c was compiled with G_ENABLE_DEBUG defined.
Created attachment 201512 [details] [review] patch: Maintain map/unmap invariants in GtkRecentChooserDialog This patch deletes gtk_recent_chooser_dialog_map() and gtk_recent_chooser_dialog_unmap(). It's similar to the corresponding fix in GtkFileChooserDialog, commit http://git.gnome.org/browse/gtk+/commit/?id=84bf984f8501201e082b888bc5479b5b8770c02b With this patch there is no warning from the test program gtk+/tests/testrecentchooser, and as far I can see there are no bad side effects.
Review of attachment 201512 [details] [review]: looks good to me.
Does the result of the patch review mean that I can push my patch to the GTK+ git repository? Perhaps a silly question, but usually I work only with the C++ bindings (gtkmm, etc.). I don't know who decide what can be committed to GTK+ and who are allowed to push commits.
(In reply to comment #5) > Does the result of the patch review mean that I can push my patch to the GTK+ > git repository? yes, that's what the accepted-commit_now flag is for. :-) if you have the commit bit on git.gnome.org, feel free to push the patch to gtk+'s master branch. > Perhaps a silly question, but usually I work only with the C++ bindings (gtkmm, > etc.). I don't know who decide what can be committed to GTK+ and who are > allowed to push commits. no worries, and thanks for asking.
Fixed with commit http://git.gnome.org/browse/gtk+/commit/?id=e8bb2e4545365d83261381a14920b773aba4a678