summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorErick Pérez Castellanos <erick.red@gmail.com>2012-03-31 10:38:05 -0400
committerErick Pérez Castellanos <erick.red@gmail.com>2012-03-31 10:38:05 -0400
commit84d30f053348c62e687c505a025dc1a533f853dd (patch)
treee2dcb729f200c3197be624763a62e7b7c3cb7453 /src
parent8905ac364d21e77fe78afdd8088c38b3c194506f (diff)
downloadgnome-contacts-84d30f053348c62e687c505a025dc1a533f853dd.tar.gz
Improved flash.
This might have some trouble with double displays.
Diffstat (limited to 'src')
-rw-r--r--src/contacts-avatar-dialog.vala7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/contacts-avatar-dialog.vala b/src/contacts-avatar-dialog.vala
index 67ccd09..dce0f4a 100644
--- a/src/contacts-avatar-dialog.vala
+++ b/src/contacts-avatar-dialog.vala
@@ -395,12 +395,13 @@ public class Contacts.AvatarDialog : Dialog {
accept_button.clicked.connect ( (button) => {
int x, y;
var win = photobooth_area.get_window ();
- win.get_origin (out x, out y);
+ var flash_win = Gdk.get_default_root_window ();
+ flash_win.get_origin (out x, out y);
Gdk.Rectangle rect = {};
rect.x = x;
rect.y = y;
- rect.width = photobooth_area.get_allocated_width ();
- rect.height = photobooth_area.get_allocated_height ();
+ rect.width = flash_win.get_width ();
+ rect.height = flash_win.get_height ();
flash.fire (rect);
if (pipeline != null)
pipeline.set_state (State.PAUSED);