GNOME Bugzilla – Bug 659007
Deprecate gtk_main_*, gtk_dialog_run().
Last modified: 2018-05-02 15:14:12 UTC
The whole concept of multi-level recursive Gtk mainloops is a bit odd. They're mostly used for modal dialogs via gtk_dialog_run(), which we've sort of discouraged people from using for a long time. Time for formal deprecations, I think. The best replacement would be GtkApplication, of course. For those who don't want to go that route, they can easily emulate the non-recursive case of gtk_main()/gtk_main_quit() by using a global GMainLoop variable and g_main_loop_run()/g_main_loop_quit().
see also: https://blogs.gnome.org/desrt/2012/02/26/sprout-and-the-bean/ https://git.gnome.org/browse/gtk+/log/?h=wip/tingping/remove-dialog-run
*** Bug 318676 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/371.