diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-27 16:18:18 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-27 16:18:18 +0100 |
commit | 7c7c408e9fe4e1cddedae9a6882c714ac3e161d3 (patch) | |
tree | 7d4c93fad784c52d1193ff393fdd8134ec1759f1 /libmessaging-menu/messaging-menu-message.c | |
parent | e8e99703ef0c565f07a9d1eba03c1003d82ff697 (diff) | |
download | ayatana-indicator-messages-7c7c408e9fe4e1cddedae9a6882c714ac3e161d3.tar.gz ayatana-indicator-messages-7c7c408e9fe4e1cddedae9a6882c714ac3e161d3.tar.bz2 ayatana-indicator-messages-7c7c408e9fe4e1cddedae9a6882c714ac3e161d3.zip |
Move 'activate' signal into MessagingMenuMessage
And add parameters 'action' and 'parameter' (though they are not set yet).
Diffstat (limited to 'libmessaging-menu/messaging-menu-message.c')
-rw-r--r-- | libmessaging-menu/messaging-menu-message.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libmessaging-menu/messaging-menu-message.c b/libmessaging-menu/messaging-menu-message.c index cf050d3..a17cdb6 100644 --- a/libmessaging-menu/messaging-menu-message.c +++ b/libmessaging-menu/messaging-menu-message.c @@ -245,6 +245,26 @@ messaging_menu_message_class_init (MessagingMenuMessageClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (klass, NUM_PROPERTIES, properties); + + /** + * MessagingMenuMessage::activate: + * @msg: the #MessagingMenuMessage + * @action: (allow-none): the id of activated action, or %NULL + * @parameter: (allow-none): activation parameter, or %NULL + * + * Emitted when the user has activated the message. The message is + * immediately removed from the application's menu, handlers of this + * signal do not need to call messaging_menu_app_remove_message(). + */ + g_signal_new ("activate", + MESSAGING_MENU_TYPE_MESSAGE, + G_SIGNAL_RUN_FIRST | G_SIGNAL_DETAILED, + 0, + NULL, NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, 2, + G_TYPE_STRING, + G_TYPE_VARIANT); } static void |