After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 659007 - Deprecate gtk_main_*, gtk_dialog_run().
Deprecate gtk_main_*, gtk_dialog_run().
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: Other
3.91.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
: 318676 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-14 02:56 UTC by Allison Karlitskaya (desrt)
Modified: 2018-05-02 15:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2011-09-14 02:56:29 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().
Comment 2 Daniel Boles 2017-08-15 14:43:01 UTC
*** Bug 318676 has been marked as a duplicate of this bug. ***
Comment 3 GNOME Infrastructure Team 2018-05-02 15:14:12 UTC
-- 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.