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 679904 - window: Handle changes of the attach-modal-dialogs preference
window: Handle changes of the attach-modal-dialogs preference
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2012-07-14 01:00 UTC by Florian Müllner
Modified: 2012-07-16 20:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
window: Handle changes of the attach-modal-dialogs preference (1.57 KB, patch)
2012-07-14 01:00 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2012-07-14 01:00:39 UTC
See patch.
Comment 1 Florian Müllner 2012-07-14 01:00:42 UTC
Created attachment 218784 [details] [review]
window: Handle changes of the attach-modal-dialogs preference

Currently we decide whether a modal dialog should be attached or not
when mapping it, i.e. we don't pick up preference changes that happen
while the dialog is up. It's not really a big deal given that modal
dialogs are usually transitory, but it's easy enough to add a bit of
extra polish ...
Comment 2 Jasper St. Pierre (not reading bugmail) 2012-07-14 01:05:46 UTC
Review of attachment 218784 [details] [review]:

Patch looks fine, but it's a minor fix for a bug that was there since 3.0 and nobody ever noticed it, except after staring at the code. I do not honestly think it's worth it to correct this.

The main issue is that we're still doing this "prefs changed callback" system that carries over from GConf, instead of embracing GSettings and connecting to a signal.

Marking as "reviewed" as it's sort of a half ACN, half "this code sucks, but it's not your fault, and nobody has time to correct it", and half "is this really necessary".
Comment 3 Florian Müllner 2012-07-14 01:15:13 UTC
(In reply to comment #2)
> The main issue is that we're still doing this "prefs changed callback" system
> that carries over from GConf, instead of embracing GSettings and connecting to
> a signal.

I think the reason for the listener system is rather that there is no MetaPrefs object which could emit a signal :-)

(connecting directly to the various GSettings is not a good idea as those are potentially overridden)
Comment 4 Owen Taylor 2012-07-16 16:08:52 UTC
(In reply to comment #2)
> Review of attachment 218784 [details] [review]:
> 
> Patch looks fine, but it's a minor fix for a bug that was there since 3.0 and
> nobody ever noticed it, except after staring at the code. I do not honestly
> think it's worth it to correct this.

Basically as long as Florian found it worthwhile to come up with a patch, I think it's worthwhile to apply it - even if we were to switch over to signal connections on GSettings later, it's useful to know what code we need.
Comment 5 Florian Müllner 2012-07-16 20:17:25 UTC
Attachment 218784 [details] pushed as eb1292e - window: Handle changes of the attach-modal-dialogs preference