Merge lp:~larsu/telepathy-indicator/lp1103438 into lp:telepathy-indicator

Proposed by Lars Karlitski
Status: Merged
Approved by: Charles Kerr
Approved revision: 76
Merged at revision: 77
Proposed branch: lp:~larsu/telepathy-indicator/lp1103438
Merge into: lp:telepathy-indicator
Diff against target: 43 lines (+9/-3)
1 file modified
src/indicator-approver.c (+9/-3)
To merge this branch: bzr merge lp:~larsu/telepathy-indicator/lp1103438
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
Review via email: mp+215271@code.launchpad.net

Commit message

Inform the messaging menu about online status when empathy appears

Description of the change

Inform the messaging menu about online status when empathy appears

To post a comment you must log in.
Revision history for this message
Charles Kerr (charlesk) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/indicator-approver.c'
2--- src/indicator-approver.c 2014-04-10 08:30:20 +0000
3+++ src/indicator-approver.c 2014-04-10 18:23:20 +0000
4@@ -1047,7 +1047,6 @@
5 TpAccountManager *tp_am;
6 TpBaseClient *approver;
7 TpBaseClient *observer;
8- TpConnectionPresenceType presence;
9 GError *error = NULL;
10
11 g_debug (G_STRFUNC);
12@@ -1074,8 +1073,6 @@
13 return;
14 }
15
16- presence = tp_account_manager_get_most_available_presence (tp_am, NULL, NULL);
17- presence_changed (tp_am, presence, "", "", NULL);
18 g_signal_connect(tp_am, "most-available-presence-changed",
19 G_CALLBACK (presence_changed), NULL);
20 g_signal_connect (tp_am, "account-enabled",
21@@ -1100,6 +1097,9 @@
22 const gchar *name_owner,
23 gpointer user_data)
24 {
25+ TpAccountManager *tp_am;
26+ TpConnectionPresenceType presence;
27+
28 mmapp = messaging_menu_app_new ("empathy.desktop");
29
30 if (check_enabled_accounts ())
31@@ -1109,6 +1109,12 @@
32 G_CALLBACK (message_source_activated), NULL);
33 g_signal_connect (mmapp, "status-changed",
34 G_CALLBACK (messaging_menu_status_changed), NULL);
35+
36+ tp_am = tp_account_manager_dup ();
37+ presence = tp_account_manager_get_most_available_presence (tp_am, NULL, NULL);
38+ presence_changed (tp_am, presence, "", "", NULL);
39+
40+ g_object_unref (tp_am);
41 }
42
43 static void

Subscribers

People subscribed via source and target branches

to all changes: