Ok, forget my previous implementation idea, i was confused by the big mess 
of the upstream tree. There is of course no apply_configuration in g-s-d, it's a
running daemon (damn i'm stupid). So xrandr_capplet talk to it with Xevents.

So i have an other implementation idea. Why not create an xevent for testing
purpose.We would call it _GNOME_RANDR_ATOM_TEST for exemple. It would call
a configuration_apply_stored_test (or  configuration_apply_stored(screen, 
testfile)
as you want) that would apply a test file.

so apply() in xrandr_capplet would work like that :
configuration_save(,,testfile)
XsendEvent <- _GNOME_RANDR_ATOM_TEST message
run_revert_dialog
configuration_save(,,file)

Might be a bit confusion. I may hack a bit on it tomorrow night to see
what i can do with it.

-- 
gnome-display-properties should revert change automatically if not acknowledged
https://bugs.launchpad.net/bugs/197673
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to