Merge lp:~cyphermox/evolution-indicator/fix-pop into lp:evolution-indicator

Proposed by Mathieu Trudel-Lapierre
Status: Merged
Merged at revision: 76
Proposed branch: lp:~cyphermox/evolution-indicator/fix-pop
Merge into: lp:evolution-indicator
Diff against target: 78 lines (+16/-20)
2 files modified
configure.ac (+5/-0)
src/evolution-indicator.c (+11/-20)
To merge this branch: bzr merge lp:~cyphermox/evolution-indicator/fix-pop
Reviewer Review Type Date Requested Status
Didier Roche-Tolomelli Approve
Review via email: mp+48793@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

looks good! thanks for your work there :)

We need to think to rebuild the indicator with each new evolution release though.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2011-01-14 20:33:01 +0000
3+++ configure.ac 2011-02-07 15:42:42 +0000
4@@ -70,6 +70,11 @@
5 AC_SUBST(DEPS_CFLAGS)
6 AC_SUBST(DEPS_LIBS)
7
8+EVO_I18N_DOMAIN=`pkg-config --modversion evolution-plugin | sed -e 's/\(.*\)\..\+$/\1/'`
9+AC_DEFINE_UNQUOTED(EVO_I18N_DOMAIN,
10+ "evolution-$EVO_I18N_DOMAIN",
11+ [Define to the translation domain for Evolution])
12+
13 AC_OUTPUT([
14 Makefile
15 data/Makefile
16
17=== modified file 'src/evolution-indicator.c'
18--- src/evolution-indicator.c 2010-10-14 12:27:45 +0000
19+++ src/evolution-indicator.c 2011-02-07 15:42:42 +0000
20@@ -71,7 +71,6 @@
21 static GSList *indicators = NULL;
22 static gint n_accounts = 0;
23
24-static IndicateIndicator *pop_indicator = NULL;
25 static NotifyNotification *notification = NULL;
26 static ca_context *canberra_cxt = NULL;
27 static ca_proplist *canberra_props = NULL;
28@@ -260,9 +259,6 @@
29 break;
30 }
31 }
32- if (!indicator && pop_indicator) /* Use pop (default) indicator */
33- indicator = pop_indicator;
34-
35 if (indicator)
36 {
37 gint count;
38@@ -603,21 +599,7 @@
39 NULL);
40
41 /* Check to see account already exists and, if not, create it */
42- if (data.url && g_str_has_prefix (data.url, "pop:"))
43- {
44- if (pop_indicator == NULL)
45- {
46- pop_indicator = create_indicator ("pop:",
47- g_dgettext ("evolution-2.28",
48- "Inbox"));
49- g_debug ("EI: New Inbox indicator");
50- }
51- indicator = pop_indicator;
52- }
53- else
54- {
55- indicator = find_indicator_for_url (indicators, data.url);
56- }
57+ indicator = find_indicator_for_url (indicators, data.url);
58 if (indicator)
59 {
60 old_list = g_slist_remove (old_list, indicator);
61@@ -625,7 +607,16 @@
62 }
63 else
64 {
65- indicator = create_indicator (data.url, data.name);
66+ if (data.url && g_str_has_prefix (data.url, "pop:"))
67+ {
68+ indicator = create_indicator ("pop:",
69+ g_dgettext (EVO_I18N_DOMAIN,
70+ "Inbox"));
71+ }
72+ else
73+ {
74+ indicator = create_indicator (data.url, data.name);
75+ }
76 indicators = g_slist_append (indicators, indicator);
77
78 g_debug ("EI: New account: %s (%s)", data.name, data.url);

Subscribers

People subscribed via source and target branches