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
=== modified file 'configure.ac'
--- configure.ac 2011-01-14 20:33:01 +0000
+++ configure.ac 2011-02-07 15:42:42 +0000
@@ -70,6 +70,11 @@
70AC_SUBST(DEPS_CFLAGS)70AC_SUBST(DEPS_CFLAGS)
71AC_SUBST(DEPS_LIBS)71AC_SUBST(DEPS_LIBS)
7272
73EVO_I18N_DOMAIN=`pkg-config --modversion evolution-plugin | sed -e 's/\(.*\)\..\+$/\1/'`
74AC_DEFINE_UNQUOTED(EVO_I18N_DOMAIN,
75 "evolution-$EVO_I18N_DOMAIN",
76 [Define to the translation domain for Evolution])
77
73AC_OUTPUT([78AC_OUTPUT([
74Makefile79Makefile
75data/Makefile80data/Makefile
7681
=== modified file 'src/evolution-indicator.c'
--- src/evolution-indicator.c 2010-10-14 12:27:45 +0000
+++ src/evolution-indicator.c 2011-02-07 15:42:42 +0000
@@ -71,7 +71,6 @@
71static GSList *indicators = NULL;71static GSList *indicators = NULL;
72static gint n_accounts = 0;72static gint n_accounts = 0;
7373
74static IndicateIndicator *pop_indicator = NULL;
75static NotifyNotification *notification = NULL;74static NotifyNotification *notification = NULL;
76static ca_context *canberra_cxt = NULL;75static ca_context *canberra_cxt = NULL;
77static ca_proplist *canberra_props = NULL;76static ca_proplist *canberra_props = NULL;
@@ -260,9 +259,6 @@
260 break;259 break;
261 }260 }
262 }261 }
263 if (!indicator && pop_indicator) /* Use pop (default) indicator */
264 indicator = pop_indicator;
265
266 if (indicator)262 if (indicator)
267 {263 {
268 gint count;264 gint count;
@@ -603,21 +599,7 @@
603 NULL);599 NULL);
604600
605 /* Check to see account already exists and, if not, create it */601 /* Check to see account already exists and, if not, create it */
606 if (data.url && g_str_has_prefix (data.url, "pop:"))602 indicator = find_indicator_for_url (indicators, data.url);
607 {
608 if (pop_indicator == NULL)
609 {
610 pop_indicator = create_indicator ("pop:",
611 g_dgettext ("evolution-2.28",
612 "Inbox"));
613 g_debug ("EI: New Inbox indicator");
614 }
615 indicator = pop_indicator;
616 }
617 else
618 {
619 indicator = find_indicator_for_url (indicators, data.url);
620 }
621 if (indicator)603 if (indicator)
622 {604 {
623 old_list = g_slist_remove (old_list, indicator);605 old_list = g_slist_remove (old_list, indicator);
@@ -625,7 +607,16 @@
625 }607 }
626 else608 else
627 {609 {
628 indicator = create_indicator (data.url, data.name);610 if (data.url && g_str_has_prefix (data.url, "pop:"))
611 {
612 indicator = create_indicator ("pop:",
613 g_dgettext (EVO_I18N_DOMAIN,
614 "Inbox"));
615 }
616 else
617 {
618 indicator = create_indicator (data.url, data.name);
619 }
629 indicators = g_slist_append (indicators, indicator);620 indicators = g_slist_append (indicators, indicator);
630621
631 g_debug ("EI: New account: %s (%s)", data.name, data.url);622 g_debug ("EI: New account: %s (%s)", data.name, data.url);

Subscribers

People subscribed via source and target branches