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 684322 - util: Add an option to request dialogs being modal
util: Add an option to request dialogs being modal
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-18 19:40 UTC by Florian Müllner
Modified: 2012-09-25 23:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
util: Add an option to request dialogs being modal (9.22 KB, patch)
2012-09-18 19:40 UTC, Florian Müllner
none Details | Review
util: Add an option to request dialogs being modal (7.35 KB, patch)
2012-09-25 15:32 UTC, Florian Müllner
none Details | Review

Description Florian Müllner 2012-09-18 19:40:02 UTC
See attached patch.
Comment 1 Florian Müllner 2012-09-18 19:40:05 UTC
Created attachment 224663 [details] [review]
util: Add an option to request dialogs being modal

As WMs cannot open windows themselves, Mutter uses zenity to open
"Force Quit" dialogs for unresponsive windows; as those are strongly
tied to the corresponding window, it makes sense to make them modal
(in particular when attaching them to their parent).
Comment 2 William Jon McCann 2012-09-18 20:17:58 UTC
I think we really want this for 3.6. It makes a lot of sense to have the "*This* window is not responding" attached to the window in question. It also makes sense to dim out the non responding window as we do for modals.
Comment 3 Arx Cruz 2012-09-18 20:21:22 UTC
That's a great patch! I wish more people contribute with zenity like this. I'll test when I came home and if everything it's okay, I'll commit (need to check the string freeze as well).

Thanks!
Comment 4 Florian Müllner 2012-09-18 20:25:30 UTC
Thanks! The patch does of course break the string freeze (the description for the new option), though we could leave it untranslated for now to get around the freeze ...
Comment 5 William Jon McCann 2012-09-19 10:00:04 UTC
Arx, can we get this in for the release? We're already a bit overdue.
Comment 6 Florian Müllner 2012-09-25 12:15:54 UTC
Ping?

If you are going to do 3.6 tarballs, this would still help tremendously to make gnome-shell's "Force Quit" dialog look less crappy :-)
Comment 7 Matthias Clasen 2012-09-25 12:20:02 UTC
Arx, still time to do a 3.6.0 release with this patch today
Comment 8 Colin Walters 2012-09-25 15:15:16 UTC
Review of attachment 224663 [details] [review]:

Looks reasonable.  I'll wait for the zenity maintainer to mark as reviewed, but this is RT 1/2

::: src/util.c
@@ +433,3 @@
   g_assert (gtk_widget_get_window(dialog));
+  zenity_util_make_transient (gtk_widget_get_window(dialog),
+                              !!g_object_get_data (G_OBJECT (dialog), "modal"));

Funky...but I guess other zenity code does stuff like this.  It looks OK.
Comment 9 Florian Müllner 2012-09-25 15:32:43 UTC
Created attachment 225141 [details] [review]
util: Add an option to request dialogs being modal

Oh, the funkyness was actually a workaround, a quick test with the new iteration suggests that it is no longer needed \o/
Comment 10 Arx Cruz 2012-09-25 15:36:33 UTC
Cool! I'll review and commit in a few hours. Right now I'm mobile. Give me 2 hours :)
Comment 11 Matthias Clasen 2012-09-25 16:16:13 UTC
+1 from me for the release team.
Comment 12 Matthias Clasen 2012-09-25 23:32:04 UTC
Pushed without the string addition for now, since I wasn't getting replies from the translators. Please revert the commit that takes out the strings once you branch for 3.6.