[gnome-shell] [ShellButtonBox] Add event to activate signal
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [ShellButtonBox] Add event to activate signal
- Date: Tue, 8 Sep 2009 21:59:34 +0000 (UTC)
commit 5880b3b0edf2828e38bfa791583177e6578bf026
Author: Colin Walters <walters verbum org>
Date: Tue Sep 8 16:58:17 2009 -0400
[ShellButtonBox] Add event to activate signal
This allows access to things such as keyboard modifier state and
event time cleanly.
http://bugzilla.gnome.org/show_bug.cgi?id=594565
src/shell-button-box.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/shell-button-box.c b/src/shell-button-box.c
index 85ce121..bd74d73 100644
--- a/src/shell-button-box.c
+++ b/src/shell-button-box.c
@@ -158,7 +158,7 @@ shell_button_box_button_release_event (ClutterActor *actor,
set_pressed (box, FALSE);
- g_signal_emit (G_OBJECT (box), shell_button_box_signals[ACTIVATE], 0);
+ g_signal_emit (G_OBJECT (box), shell_button_box_signals[ACTIVATE], 0, event);
return TRUE;
}
@@ -249,6 +249,7 @@ shell_button_box_class_init (ShellButtonBoxClass *klass)
/**
* ShellButtonBox::activate
* @box: The #ShellButtonBox
+ * @event: Release event which triggered the activation
*
* This signal is emitted when the button should take the action
* associated with button click+release.
@@ -260,7 +261,7 @@ shell_button_box_class_init (ShellButtonBoxClass *klass)
0,
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE, 0);
+ G_TYPE_NONE, 1, CLUTTER_TYPE_EVENT);
/**
* ShellButtonBox:active
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]