[cheese/gnome-3-0] window: use the right signature for button-release-event callback
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/gnome-3-0] window: use the right signature for button-release-event callback
- Date: Thu, 16 Jun 2011 19:50:37 +0000 (UTC)
commit 124aa258c10b37edff3352603b0786ebf7fbfd5b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jun 16 01:19:53 2011 -0400
window: use the right signature for button-release-event callback
The signature is (ClutterActor, ClutterEvent). Using the event source
there is wrong, as that's not guaranteed to be the same object emitting
the callback (i.e. the object emitting could be just forwarding an event
coming from one of its children).
https://bugzilla.gnome.org/show_bug.cgi?id=647677
src/cheese-window.vala | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/cheese-window.vala b/src/cheese-window.vala
index 2822964..1d60f90 100644
--- a/src/cheese-window.vala
+++ b/src/cheese-window.vala
@@ -839,9 +839,10 @@ public class Cheese.MainWindow : Gtk.Window
burst_mode_action.sensitive = !action.active;
}
- public bool on_selected_effect_change (Clutter.ButtonEvent event)
+ public bool on_selected_effect_change (Clutter.Actor source,
+ Clutter.ButtonEvent event)
{
- selected_effect = event.source.get_data ("effect");
+ selected_effect = source.get_data ("effect");
camera.set_effect (selected_effect);
settings.set_string ("selected-effect", selected_effect.name);
effects_toggle_action.set_active (false);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]