aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-roster-view.c
diff options
context:
space:
mode:
authorChandni Verma <chandniverma2112@gmail.com>2013-06-30 03:14:20 +0800
committerChandni Verma <chandniverma2112@gmail.com>2013-07-21 03:39:39 +0800
commitade3fc34bbc44dac9220e60f496e82f651180755 (patch)
tree91bbd620845da54fca4bc7791b3cfbe24721f2a0 /libempathy-gtk/empathy-roster-view.c
parent07c3b37828c4ecb649e439859254916a87b36707 (diff)
downloadgsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.tar
gsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.tar.gz
gsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.tar.bz2
gsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.tar.lz
gsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.tar.xz
gsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.tar.zst
gsoc2013-empathy-ade3fc34bbc44dac9220e60f496e82f651180755.zip
Install property active-group in EmpathyIndividualMenu
https://bugzilla.gnome.org/show_bug.cgi?id=585440
Diffstat (limited to 'libempathy-gtk/empathy-roster-view.c')
-rw-r--r--libempathy-gtk/empathy-roster-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-roster-view.c b/libempathy-gtk/empathy-roster-view.c
index 93b5d0e53..7d168d471 100644
--- a/libempathy-gtk/empathy-roster-view.c
+++ b/libempathy-gtk/empathy-roster-view.c
@@ -1146,6 +1146,7 @@ fire_popup_individual_menu (EmpathyRosterView *self,
{
EmpathyRosterContact *contact;
FolksIndividual *individual;
+ const gchar *active_group;
if (!EMPATHY_IS_ROSTER_CONTACT (child))
return;
@@ -1153,8 +1154,9 @@ fire_popup_individual_menu (EmpathyRosterView *self,
contact = EMPATHY_ROSTER_CONTACT (child);
individual = empathy_roster_contact_get_individual (contact);
+ active_group = empathy_roster_contact_get_group (contact);
g_signal_emit (self, signals[SIG_POPUP_INDIVIDUAL_MENU], 0,
- individual, button, time);
+ active_group, individual, button, time);
}
static gboolean
@@ -1347,7 +1349,8 @@ empathy_roster_view_class_init (
G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL,
G_TYPE_NONE,
- 3, FOLKS_TYPE_INDIVIDUAL, G_TYPE_UINT, G_TYPE_UINT);
+ 4, G_TYPE_STRING, FOLKS_TYPE_INDIVIDUAL, G_TYPE_UINT,
+ G_TYPE_UINT);
signals[SIG_EVENT_ACTIVATED] = g_signal_new ("event-activated",
G_OBJECT_CLASS_TYPE (klass),