diff options
author | Chandni Verma <chandniverma2112@gmail.com> | 2013-07-23 00:54:31 +0800 |
---|---|---|
committer | Chandni Verma <chandniverma2112@gmail.com> | 2013-08-23 23:03:14 +0800 |
commit | 5aab8d1d5ccc341695d3241edc743299c1e62187 (patch) | |
tree | 62a05d9fcc79e587c011fda9b29327790f7c08ef | |
parent | 75f2647273711e9c3af162a12d3fb58737e91c9b (diff) | |
download | gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.tar gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.tar.gz gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.tar.bz2 gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.tar.lz gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.tar.xz gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.tar.zst gsoc2013-empathy-5aab8d1d5ccc341695d3241edc743299c1e62187.zip |
Deploy a signal "menu-item-activated" in EmpathyIndividualMenu
https://bugzilla.gnome.org/show_bug.cgi?id=643183
-rw-r--r-- | libempathy-gtk/empathy-individual-menu.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-menu.c b/libempathy-gtk/empathy-individual-menu.c index 9d3e91d04..18dc7bb17 100644 --- a/libempathy-gtk/empathy-individual-menu.c +++ b/libempathy-gtk/empathy-individual-menu.c @@ -62,6 +62,13 @@ enum { PROP_STORE, }; +enum { + MENU_ITEM_ACTIVATED, + LAST_SIGNAL +}; + +static guint signals [LAST_SIGNAL] = { 0 }; + G_DEFINE_TYPE (EmpathyIndividualMenu, empathy_individual_menu, GTK_TYPE_MENU); static GtkWidget * empathy_individual_chat_menu_item_new ( @@ -1223,6 +1230,16 @@ empathy_individual_menu_class_init (EmpathyIndividualMenuClass *klass) EMPATHY_TYPE_INDIVIDUAL_STORE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + signals[MENU_ITEM_ACTIVATED] = + g_signal_new ("menu-item-activated", + G_TYPE_FROM_CLASS (klass), + G_SIGNAL_RUN_LAST, + 0, + NULL, NULL, + g_cclosure_marshal_generic, + G_TYPE_NONE, + 0); + g_type_class_add_private (object_class, sizeof (EmpathyIndividualMenuPriv)); } |