Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-datetime/upstream into lp:~ubuntu-desktop/indicator-datetime/ubuntu

Proposed by Charles Kerr
Status: Merged
Merged at revision: 139
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-datetime/upstream
Merge into: lp:~ubuntu-desktop/indicator-datetime/ubuntu
Diff against target: 533 lines (+155/-91)
6 files modified
ChangeLog (+52/-0)
configure (+17/-15)
configure.ac (+1/-1)
debian/changelog (+7/-0)
m4/intltool.m4 (+8/-6)
src/datetime-service.c (+70/-69)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-datetime/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+98680@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2012-03-08 22:57:20 +0000
+++ ChangeLog 2012-03-21 16:52:25 +0000
@@ -1,5 +1,57 @@
1# Generated by Makefile. Do not edit.1# Generated by Makefile. Do not edit.
22
32012-03-21 Charles Kerr <charles.kerr@canonical.com>
4
5 0.3.92
6
72012-03-20 Charles Kerr <charles.kerr@canonical.com>
8
9 merge lp:~charlesk/indicator-datetime/lp-772340 to fix some memory leaks related to appointments in indicator-datetime
10
112012-03-18 Charles Kerr <charles.kerr@canonical.com>
12
13 leak: fix ESourceList leak in update_appointment_menu_items()
14
152012-03-18 Charles Kerr <charles.kerr@canonical.com>
16
17 leak: fix GdkPixbuf leak when setting up appointments
18
192012-03-18 Charles Kerr <charles.kerr@canonical.com>
20
21 minor: fix inefficient GSList walking -- only walk a GSList once instead of twice per node
22
232012-03-18 Charles Kerr <charles.kerr@canonical.com>
24
25 leak: fix the comp_instance struct leaks allocated in populate_appointment_instances() from update_appointment_menu_items(). The list was freed, but not the structs pointed to by the list.
26
272012-03-18 Charles Kerr <charles.kerr@canonical.com>
28
29 don't subtract one time_t from another
30
312012-03-18 Charles Kerr <charles.kerr@canonical.com>
32
33 leak: plug leaks related to use of gconf_client_get_list()
34
352012-03-18 Charles Kerr <charles.kerr@canonical.com>
36
37 minor: use g_clear_error() instead of g_error_free()
38
392012-03-18 Charles Kerr <charles.kerr@canonical.com>
40
41 leak: fix GError leaks
42
432012-03-16 Charles Kerr <charles.kerr@canonical.com>
44
45 plug a string leak when updating the appointments
46
472012-03-16 Charles Kerr <charles.kerr@canonical.com>
48
49 minor: remove unnecessary nesting
50
512012-03-16 Charles Kerr <charles.kerr@canonical.com>
52
53 plug a string leak when updating appointments
54
32012-03-08 Ted Gould <ted@gould.cx>552012-03-08 Ted Gould <ted@gould.cx>
456
5 0.3.9157 0.3.91
658
=== modified file 'configure'
--- configure 2012-03-08 22:57:20 +0000
+++ configure 2012-03-21 16:52:25 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for indicator-datetime 0.3.91.3# Generated by GNU Autoconf 2.68 for indicator-datetime 0.3.92.
4#4#
5# Report bugs to <http://bugs.launchpad.net/indicator-datetime>.5# Report bugs to <http://bugs.launchpad.net/indicator-datetime>.
6#6#
@@ -572,8 +572,8 @@
572# Identity of this package.572# Identity of this package.
573PACKAGE_NAME='indicator-datetime'573PACKAGE_NAME='indicator-datetime'
574PACKAGE_TARNAME='indicator-datetime'574PACKAGE_TARNAME='indicator-datetime'
575PACKAGE_VERSION='0.3.91'575PACKAGE_VERSION='0.3.92'
576PACKAGE_STRING='indicator-datetime 0.3.91'576PACKAGE_STRING='indicator-datetime 0.3.92'
577PACKAGE_BUGREPORT='http://bugs.launchpad.net/indicator-datetime'577PACKAGE_BUGREPORT='http://bugs.launchpad.net/indicator-datetime'
578PACKAGE_URL='http://launchpad.net/indicator-datetime'578PACKAGE_URL='http://launchpad.net/indicator-datetime'
579579
@@ -1395,7 +1395,7 @@
1395 # Omit some internal or obsolete options to make the list less imposing.1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF1397 cat <<_ACEOF
1398\`configure' configures indicator-datetime 0.3.91 to adapt to many kinds of systems.1398\`configure' configures indicator-datetime 0.3.92 to adapt to many kinds of systems.
13991399
1400Usage: $0 [OPTION]... [VAR=VALUE]...1400Usage: $0 [OPTION]... [VAR=VALUE]...
14011401
@@ -1466,7 +1466,7 @@
14661466
1467if test -n "$ac_init_help"; then1467if test -n "$ac_init_help"; then
1468 case $ac_init_help in1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of indicator-datetime 0.3.91:";;1469 short | recursive ) echo "Configuration of indicator-datetime 0.3.92:";;
1470 esac1470 esac
1471 cat <<\_ACEOF1471 cat <<\_ACEOF
14721472
@@ -1600,7 +1600,7 @@
1600test -n "$ac_init_help" && exit $ac_status1600test -n "$ac_init_help" && exit $ac_status
1601if $ac_init_version; then1601if $ac_init_version; then
1602 cat <<\_ACEOF1602 cat <<\_ACEOF
1603indicator-datetime configure 0.3.911603indicator-datetime configure 0.3.92
1604generated by GNU Autoconf 2.681604generated by GNU Autoconf 2.68
16051605
1606Copyright (C) 2010 Free Software Foundation, Inc.1606Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1971,7 +1971,7 @@
1971This file contains any messages produced by compilers while1971This file contains any messages produced by compilers while
1972running configure, to aid debugging if configure makes a mistake.1972running configure, to aid debugging if configure makes a mistake.
19731973
1974It was created by indicator-datetime $as_me 0.3.91, which was1974It was created by indicator-datetime $as_me 0.3.92, which was
1975generated by GNU Autoconf 2.68. Invocation command line was1975generated by GNU Autoconf 2.68. Invocation command line was
19761976
1977 $ $0 $@1977 $ $0 $@
@@ -2795,7 +2795,7 @@
27952795
2796# Define the identity of the package.2796# Define the identity of the package.
2797 PACKAGE='indicator-datetime'2797 PACKAGE='indicator-datetime'
2798 VERSION='0.3.91'2798 VERSION='0.3.92'
27992799
28002800
2801cat >>confdefs.h <<_ACEOF2801cat >>confdefs.h <<_ACEOF
@@ -13205,14 +13205,12 @@
13205 ;;13205 ;;
13206esac13206esac
1320713207
13208INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13209INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
13210INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13208if test -n "0.41.0"; then13211if test -n "0.41.0"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&513212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
13210$as_echo_n "checking for intltool >= 0.41.0... " >&6; }13213$as_echo_n "checking for intltool >= 0.41.0... " >&6; }
13211
13212 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13213 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
13214 INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
13215
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&513214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
13217$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }13215$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
13218 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||13216 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
@@ -13373,7 +13371,11 @@
13373INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'13371INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13374 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'13372 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13375 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'13373 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13374if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
13376 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'13375 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
13376else
13377 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
13378fi
13377 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'13379 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13378 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'13380 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
13379 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'13381 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
@@ -15041,7 +15043,7 @@
15041# report actual input values of CONFIG_FILES etc. instead of their15043# report actual input values of CONFIG_FILES etc. instead of their
15042# values after options handling.15044# values after options handling.
15043ac_log="15045ac_log="
15044This file was extended by indicator-datetime $as_me 0.3.91, which was15046This file was extended by indicator-datetime $as_me 0.3.92, which was
15045generated by GNU Autoconf 2.68. Invocation command line was15047generated by GNU Autoconf 2.68. Invocation command line was
1504615048
15047 CONFIG_FILES = $CONFIG_FILES15049 CONFIG_FILES = $CONFIG_FILES
@@ -15108,7 +15110,7 @@
15108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=115110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"15111ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15110ac_cs_version="\\15112ac_cs_version="\\
15111indicator-datetime config.status 0.3.9115113indicator-datetime config.status 0.3.92
15112configured by $0, generated by GNU Autoconf 2.68,15114configured by $0, generated by GNU Autoconf 2.68,
15113 with options \\"\$ac_cs_config\\"15115 with options \\"\$ac_cs_config\\"
1511415116
1511515117
=== modified file 'configure.ac'
--- configure.ac 2012-03-08 22:57:20 +0000
+++ configure.ac 2012-03-21 16:52:25 +0000
@@ -1,5 +1,5 @@
1AC_INIT([indicator-datetime],1AC_INIT([indicator-datetime],
2 [0.3.91],2 [0.3.92],
3 [http://bugs.launchpad.net/indicator-datetime],3 [http://bugs.launchpad.net/indicator-datetime],
4 [indicator-datetime],4 [indicator-datetime],
5 [http://launchpad.net/indicator-datetime])5 [http://launchpad.net/indicator-datetime])
66
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-09 12:49:52 +0000
+++ debian/changelog 2012-03-21 16:52:25 +0000
@@ -1,3 +1,10 @@
1indicator-datetime (0.3.92-0ubuntu1~ppa1) precise; urgency=low
2
3 * New upstream release.
4 * Fix several memory leaks (LP: #772340, LP: #957320)
5
6 -- Charles Kerr <charles.kerr@canonical.com> Wed, 21 Mar 2012 11:22:20 -0500
7
1indicator-datetime (0.3.91-0ubuntu1) precise; urgency=low8indicator-datetime (0.3.91-0ubuntu1) precise; urgency=low
29
3 * New upstream release.10 * New upstream release.
411
=== modified file 'm4/intltool.m4'
--- m4/intltool.m4 2012-02-17 22:15:25 +0000
+++ m4/intltool.m4 2012-03-21 16:52:25 +0000
@@ -23,7 +23,7 @@
23## the same distribution terms that you use for the rest of that program.23## the same distribution terms that you use for the rest of that program.
2424
25dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])25dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
26# serial 41 IT_PROG_INTLTOOL26# serial 42 IT_PROG_INTLTOOL
27AC_DEFUN([IT_PROG_INTLTOOL], [27AC_DEFUN([IT_PROG_INTLTOOL], [
28AC_PREREQ([2.50])dnl28AC_PREREQ([2.50])dnl
29AC_REQUIRE([AM_NLS])dnl29AC_REQUIRE([AM_NLS])dnl
@@ -36,13 +36,11 @@
36 ;;36 ;;
37esac37esac
3838
39INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
40INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
41INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
39if test -n "$1"; then42if test -n "$1"; then
40 AC_MSG_CHECKING([for intltool >= $1])43 AC_MSG_CHECKING([for intltool >= $1])
41
42 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
43 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
44 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
45 ]
46 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])44 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
47 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||45 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
48 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])46 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
@@ -85,7 +83,11 @@
85INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 83INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
86 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 84 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
87 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 85 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
86if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
88 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'87 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
88else
89 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
90fi
89 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 91 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
90 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 92 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
91 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' 93 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
9294
=== modified file 'src/datetime-service.c'
--- src/datetime-service.c 2012-03-08 22:57:20 +0000
+++ src/datetime-service.c 2012-03-21 16:52:25 +0000
@@ -273,7 +273,7 @@
273273
274 if (error != NULL) {274 if (error != NULL) {
275 g_warning("Could not set timezone for SettingsDaemon: %s", error->message);275 g_warning("Could not set timezone for SettingsDaemon: %s", error->message);
276 g_error_free(error);276 g_clear_error (&error);
277 return;277 return;
278 }278 }
279279
@@ -289,7 +289,7 @@
289289
290 if (error != NULL) {290 if (error != NULL) {
291 g_warning("Could not grab DBus proxy for SettingsDaemon: %s", error->message);291 g_warning("Could not grab DBus proxy for SettingsDaemon: %s", error->message);
292 g_error_free(error);292 g_clear_error (&error);
293 g_free (zone);293 g_free (zone);
294 return;294 return;
295 }295 }
@@ -363,7 +363,7 @@
363 g_debug("Issuing command '%s'", command);363 g_debug("Issuing command '%s'", command);
364 if (!g_spawn_command_line_async(command, &error)) {364 if (!g_spawn_command_line_async(command, &error)) {
365 g_warning("Unable to start %s: %s", (char *)command, error->message);365 g_warning("Unable to start %s: %s", (char *)command, error->message);
366 g_error_free(error);366 g_clear_error (&error);
367 }367 }
368}368}
369369
@@ -532,7 +532,7 @@
532 GSList *accounts_list = gconf_client_get_list (gconf, "/apps/evolution/mail/accounts", GCONF_VALUE_STRING, NULL);532 GSList *accounts_list = gconf_client_get_list (gconf, "/apps/evolution/mail/accounts", GCONF_VALUE_STRING, NULL);
533 const guint n = g_slist_length (accounts_list);533 const guint n = g_slist_length (accounts_list);
534 g_debug ("found %u evolution accounts", n);534 g_debug ("found %u evolution accounts", n);
535 g_slist_free (accounts_list);535 g_slist_free_full (accounts_list, g_free);
536 return n > 0;536 return n > 0;
537}537}
538538
@@ -613,22 +613,43 @@
613}613}
614614
615static gint615static gint
616compare_comp_instances (gconstpointer a, 616compare_comp_instances (gconstpointer ga, gconstpointer gb)
617 gconstpointer b)617{
618{618 const struct comp_instance * a = ga;
619 const struct comp_instance *ci_a = a;619 const struct comp_instance * b = gb;
620 const struct comp_instance *ci_b = b;620
621 time_t d = ci_a->start - ci_b->start;621 /* sort by start time */
622 if (d < 0) return -1;622 if (a->start < b->start) return -1;
623 else if (d > 0) return 1; 623 if (a->start > b->start) return 1;
624 return 0;624 return 0;
625}
626
627static struct comp_instance*
628comp_instance_new (ECalComponent * comp, time_t start, time_t end, ESource * source)
629{
630 g_debug("Using times start %s, end %s", ctime(&start), ctime(&end));
631
632 struct comp_instance *ci = g_new (struct comp_instance, 1);
633 ci->comp = g_object_ref (comp);
634 ci->source = source;
635 ci->start = start;
636 ci->end = end;
637 return ci;
638}
639static void
640comp_instance_free (struct comp_instance* ci)
641{
642 if (ci != NULL) {
643 g_clear_object (&ci->comp);
644 g_free (ci);
645 }
625}646}
626647
627static gboolean648static gboolean
628populate_appointment_instances (ECalComponent *comp,649populate_appointment_instances (ECalComponent * comp,
629 time_t instance_start,650 time_t start,
630 time_t instance_end,651 time_t end,
631 gpointer data)652 gpointer data)
632{653{
633 g_debug("Appending item %p", comp);654 g_debug("Appending item %p", comp);
634 655
@@ -638,20 +659,9 @@
638 icalproperty_status status;659 icalproperty_status status;
639 e_cal_component_get_status (comp, &status);660 e_cal_component_get_status (comp, &status);
640 if (status == ICAL_STATUS_COMPLETED || status == ICAL_STATUS_CANCELLED) return FALSE;661 if (status == ICAL_STATUS_COMPLETED || status == ICAL_STATUS_CANCELLED) return FALSE;
641
642 g_object_ref(comp);
643662
644 struct comp_instance *ci;663 struct comp_instance *ci = comp_instance_new (comp, start, end, E_SOURCE(data));
645 ci = g_new (struct comp_instance, 1);664 comp_instances = g_list_append (comp_instances, ci);
646
647 g_debug("Using times start %s, end %s", ctime(&instance_start), ctime(&instance_end));
648
649 ci->comp = comp;
650 ci->source = E_SOURCE(data);
651 ci->start = instance_start;
652 ci->end = instance_end;
653
654 comp_instances = g_list_append(comp_instances, ci);
655 return TRUE;665 return TRUE;
656}666}
657667
@@ -719,25 +729,18 @@
719 729
720 if (!e_cal_get_sources(&sources, E_CAL_SOURCE_TYPE_EVENT, &gerror)) {730 if (!e_cal_get_sources(&sources, E_CAL_SOURCE_TYPE_EVENT, &gerror)) {
721 g_debug("Failed to get ecal sources\n");731 g_debug("Failed to get ecal sources\n");
732 g_clear_error (&gerror);
722 return FALSE;733 return FALSE;
723 }734 }
724 735
725 // Free comp_instances if not NULL736 // clear any previous comp_instances
726 if (comp_instances != NULL) {737 g_list_free_full (comp_instances, (GDestroyNotify)comp_instance_free);
727 g_debug("Freeing comp_instances: may be an overlap\n");738 comp_instances = NULL;
728 for (l = comp_instances; l; l = l->next) {
729 const struct comp_instance *ci = l->data;
730 g_object_unref(ci->comp);
731 }
732 g_list_free(comp_instances);
733 comp_instances = NULL;
734739
735 }
736 GSList *cal_list = gconf_client_get_list(gconf, "/apps/evolution/calendar/display/selected_calendars", GCONF_VALUE_STRING, &gerror);740 GSList *cal_list = gconf_client_get_list(gconf, "/apps/evolution/calendar/display/selected_calendars", GCONF_VALUE_STRING, &gerror);
737 if (gerror) {741 if (gerror) {
738 g_debug("Failed to get evolution preference for enabled calendars");742 g_debug("Failed to get evolution preference for enabled calendars");
739 g_error_free(gerror);743 g_clear_error (&gerror);
740 gerror = NULL;
741 cal_list = NULL;744 cal_list = NULL;
742 }745 }
743 746
@@ -759,39 +762,33 @@
759 }762 }
760 if (current_zone && !e_cal_set_default_timezone(ecal, current_zone, &gerror)) {763 if (current_zone && !e_cal_set_default_timezone(ecal, current_zone, &gerror)) {
761 g_debug("Failed to set ecal default timezone %s", gerror->message);764 g_debug("Failed to set ecal default timezone %s", gerror->message);
762 g_error_free(gerror);765 g_clear_error (&gerror);
763 gerror = NULL;
764 g_object_unref(ecal);766 g_object_unref(ecal);
765 continue;767 continue;
766 }768 }
767 769
768 if (!e_cal_open(ecal, FALSE, &gerror)) {770 if (!e_cal_open(ecal, FALSE, &gerror)) {
769 g_debug("Failed to get ecal sources %s", gerror->message);771 g_debug("Failed to get ecal sources %s", gerror->message);
770 g_error_free(gerror);772 g_clear_error (&gerror);
771 gerror = NULL;
772 g_object_unref(ecal);773 g_object_unref(ecal);
773 continue;774 continue;
774 }775 }
776
775 const gchar *ecal_uid = e_source_peek_uid(source);777 const gchar *ecal_uid = e_source_peek_uid(source);
776 gboolean match = FALSE;
777 g_debug("Checking ecal_uid is enabled: %s", ecal_uid);778 g_debug("Checking ecal_uid is enabled: %s", ecal_uid);
778 for (i = 0; i<g_slist_length(cal_list);i++) {779 const gboolean in_list = g_slist_find_custom (cal_list, ecal_uid, (GCompareFunc)g_strcmp0) != NULL;
779 char *cuid = (char *)g_slist_nth_data(cal_list, i);780 if (!in_list) {
780 if (g_strcmp0(cuid, ecal_uid) == 0) {
781 match = TRUE;
782 break;
783 }
784 }
785 if (!match) {
786 g_object_unref(ecal);781 g_object_unref(ecal);
787 continue;782 continue;
788 }783 }
784
789 g_debug("ecal_uid is enabled, generating instances");785 g_debug("ecal_uid is enabled, generating instances");
790 786 e_cal_generate_instances (ecal, t1, t2, (ECalRecurInstanceFn) populate_appointment_instances, source);
791 e_cal_generate_instances (ecal, t1, t2, (ECalRecurInstanceFn) populate_appointment_instances, (gpointer) source);
792 g_object_unref(ecal);787 g_object_unref(ecal);
793 }788 }
794 }789 }
790 g_slist_free_full (cal_list, g_free);
791
795 g_debug("Number of ECalComponents returned: %d", g_list_length(comp_instances));792 g_debug("Number of ECalComponents returned: %d", g_list_length(comp_instances));
796 GList *sorted_comp_instances = g_list_sort(comp_instances, compare_comp_instances);793 GList *sorted_comp_instances = g_list_sort(comp_instances, compare_comp_instances);
797 comp_instances = NULL;794 comp_instances = NULL;
@@ -821,13 +818,12 @@
821 apt_output = SETTINGS_TIME_12_HOUR;818 apt_output = SETTINGS_TIME_12_HOUR;
822 } else if (g_strcmp0(time_format_str, "24-hour") == 0) {819 } else if (g_strcmp0(time_format_str, "24-hour") == 0) {
823 apt_output = SETTINGS_TIME_24_HOUR;820 apt_output = SETTINGS_TIME_24_HOUR;
821 } else if (is_locale_12h()) {
822 apt_output = SETTINGS_TIME_12_HOUR;
824 } else {823 } else {
825 if (is_locale_12h()) {824 apt_output = SETTINGS_TIME_24_HOUR;
826 apt_output = SETTINGS_TIME_12_HOUR;
827 } else {
828 apt_output = SETTINGS_TIME_24_HOUR;
829 }
830 }825 }
826 g_free (time_format_str);
831 827
832 GVariantBuilder markeddays;828 GVariantBuilder markeddays;
833 g_variant_builder_init (&markeddays, G_VARIANT_TYPE ("ai"));829 g_variant_builder_init (&markeddays, G_VARIANT_TYPE ("ai"));
@@ -1001,6 +997,7 @@
1001 }997 }
1002 998
1003 dbusmenu_menuitem_property_set_image (item, APPOINTMENT_MENUITEM_PROP_ICON, pixbuf);999 dbusmenu_menuitem_property_set_image (item, APPOINTMENT_MENUITEM_PROP_ICON, pixbuf);
1000 g_clear_object (&pixbuf);
1004 } else {1001 } else {
1005 g_debug("Creating pixbuf from surface failed");1002 g_debug("Creating pixbuf from surface failed");
1006 }1003 }
@@ -1010,15 +1007,15 @@
1010 g_debug("Adding appointment: %p", item);1007 g_debug("Adding appointment: %p", item);
1011 }1008 }
1012 1009
1013 if (gerror != NULL) g_error_free(gerror);1010 g_clear_error (&gerror);
1014 for (l = sorted_comp_instances; l; l = l->next) { 1011
1015 const struct comp_instance *ci = l->data;1012 g_list_free_full (sorted_comp_instances, (GDestroyNotify)comp_instance_free);
1016 g_object_unref(ci->comp);1013 sorted_comp_instances = NULL;
1017 }
1018 g_list_free(sorted_comp_instances);
1019 1014
1020 GVariant * marks = g_variant_builder_end (&markeddays);1015 GVariant * marks = g_variant_builder_end (&markeddays);
1021 dbusmenu_menuitem_property_set_variant (calendar, CALENDAR_MENUITEM_PROP_MARKS, marks);1016 dbusmenu_menuitem_property_set_variant (calendar, CALENDAR_MENUITEM_PROP_MARKS, marks);
1017
1018 g_clear_object (&sources);
1022 1019
1023 updating_appointments = FALSE;1020 updating_appointments = FALSE;
1024 g_debug("End of objects");1021 g_debug("End of objects");
@@ -1205,7 +1202,7 @@
12051202
1206 if (error != NULL) {1203 if (error != NULL) {
1207 g_warning("Could not grab DBus proxy for ConsoleKit: %s", error->message);1204 g_warning("Could not grab DBus proxy for ConsoleKit: %s", error->message);
1208 g_error_free(error);1205 g_clear_error (&error);
1209 return;1206 return;
1210 }1207 }
12111208
@@ -1218,6 +1215,7 @@
1218{1215{
1219 if (error != NULL) {1216 if (error != NULL) {
1220 g_warning("Unable to get Geoclue address: %s", error->message);1217 g_warning("Unable to get Geoclue address: %s", error->message);
1218 g_clear_error (&error);
1221 return;1219 return;
1222 }1220 }
12231221
@@ -1279,6 +1277,7 @@
1279{1277{
1280 if (error != NULL) {1278 if (error != NULL) {
1281 g_warning("Unable to create GeoClue address: %s", error->message);1279 g_warning("Unable to create GeoClue address: %s", error->message);
1280 g_clear_error (&error);
1282 return;1281 return;
1283 }1282 }
12841283
@@ -1305,6 +1304,7 @@
1305{1304{
1306 if (error != NULL) {1305 if (error != NULL) {
1307 g_warning("Unable to set Geoclue requirements: %s", error->message);1306 g_warning("Unable to set Geoclue requirements: %s", error->message);
1307 g_clear_error (&error);
1308 }1308 }
1309 return;1309 return;
1310}1310}
@@ -1367,6 +1367,7 @@
13671367
1368 if (error != NULL) {1368 if (error != NULL) {
1369 g_warning("Unable to get a GeoClue client! '%s' Geolocation based timezone support will not be available.", error->message);1369 g_warning("Unable to get a GeoClue client! '%s' Geolocation based timezone support will not be available.", error->message);
1370 g_clear_error (&error);
1370 return;1371 return;
1371 }1372 }
13721373

Subscribers

People subscribed via source and target branches