[gnome-contacts] Improved flash.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Improved flash.
- Date: Sun, 1 Apr 2012 01:19:33 +0000 (UTC)
commit 84d30f053348c62e687c505a025dc1a533f853dd
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Sat Mar 31 10:38:05 2012 -0400
Improved flash.
This might have some trouble with double displays.
src/contacts-avatar-dialog.vala | 7 ++++---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]