Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: app-office/planner/files/
Date: Sat, 29 Dec 2012 17:55:54
Message-Id: 1356803732.ddcc3742b70a35b5a325fcd88e5ba0f6a4fc281a.eva@gentoo
1 commit: ddcc3742b70a35b5a325fcd88e5ba0f6a4fc281a
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 29 17:55:13 2012 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 29 17:55:32 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=ddcc3742
7
8 app-office/planner: update patches
9
10 ---
11 ...ld-failure-with-evolution-data-server-3.6.patch | 504 +++++++++++++++++++-
12 app-office/planner/files/0005-Run-autoupdate.patch | 2 +-
13 2 files changed, 479 insertions(+), 27 deletions(-)
14
15 diff --git a/app-office/planner/files/0004-Fix-build-failure-with-evolution-data-server-3.6.patch b/app-office/planner/files/0004-Fix-build-failure-with-evolution-data-server-3.6.patch
16 index 503da7c..7edbdfe 100644
17 --- a/app-office/planner/files/0004-Fix-build-failure-with-evolution-data-server-3.6.patch
18 +++ b/app-office/planner/files/0004-Fix-build-failure-with-evolution-data-server-3.6.patch
19 @@ -1,4 +1,4 @@
20 -From 5e6162f78e72c60130638061ed8b94a3cb4aa352 Mon Sep 17 00:00:00 2001
21 +From 8cfd2056e1e630b1702fe238e389ad3a4f37a8ad Mon Sep 17 00:00:00 2001
22 From: Gilles Dartiguelongue <eva@g.o>
23 Date: Sat, 29 Dec 2012 16:48:30 +0100
24 Subject: [PATCH 4/5] Fix build failure with evolution-data-server-3.6
25 @@ -6,9 +6,24 @@ Subject: [PATCH 4/5] Fix build failure with evolution-data-server-3.6
26 Only cover plugin code enabled through --enable-eds.
27 EDS backend has been broken for a long time and needs more work.
28 ---
29 - configure.ac | 2 +-
30 - src/planner-eds-plugin.c | 112 +++++++++++++++++++++++------------------------
31 - 2 files changed, 57 insertions(+), 57 deletions(-)
32 + configure.ac | 2 +-
33 + docs/libplanner/tmpl/libplanner-unused.sgml | 8 --
34 + docs/libplanner/tmpl/mrp-application.sgml | 4 +
35 + docs/libplanner/tmpl/mrp-assignment.sgml | 6 +-
36 + docs/libplanner/tmpl/mrp-calendar.sgml | 11 +--
37 + docs/libplanner/tmpl/mrp-day.sgml | 6 ++
38 + docs/libplanner/tmpl/mrp-error.sgml | 3 +
39 + docs/libplanner/tmpl/mrp-group.sgml | 4 +
40 + docs/libplanner/tmpl/mrp-object.sgml | 7 +-
41 + docs/libplanner/tmpl/mrp-project.sgml | 5 +-
42 + docs/libplanner/tmpl/mrp-property.sgml | 3 +
43 + docs/libplanner/tmpl/mrp-relation.sgml | 3 +
44 + docs/libplanner/tmpl/mrp-resource.sgml | 4 +
45 + docs/libplanner/tmpl/mrp-task.sgml | 7 +-
46 + docs/libplanner/tmpl/mrp-time.sgml | 13 +++
47 + docs/libplanner/tmpl/planner.sgml | 3 +
48 + src/planner-eds-plugin.c | 141 +++++++++++++++-------------
49 + 17 files changed, 139 insertions(+), 91 deletions(-)
50
51 diff --git a/configure.ac b/configure.ac
52 index 9f3d112..7e0cd8a 100644
53 @@ -23,8 +38,382 @@ index 9f3d112..7e0cd8a 100644
54 EDS_PACKAGE=1.2
55 PKG_CHECK_MODULES(EDS,
56 [
57 +diff --git a/docs/libplanner/tmpl/libplanner-unused.sgml b/docs/libplanner/tmpl/libplanner-unused.sgml
58 +index e8bee74..a389b98 100644
59 +--- a/docs/libplanner/tmpl/libplanner-unused.sgml
60 ++++ b/docs/libplanner/tmpl/libplanner-unused.sgml
61 +@@ -131,14 +131,6 @@ mrproject
62 +
63 + @Returns:
64 +
65 +-<!-- ##### FUNCTION mrp_time_from_tm ##### -->
66 +-<para>
67 +-
68 +-</para>
69 +-
70 +-@tm:
71 +-@Returns:
72 +-
73 + <!-- ##### MACRO textdomain ##### -->
74 + <para>
75 +
76 +diff --git a/docs/libplanner/tmpl/mrp-application.sgml b/docs/libplanner/tmpl/mrp-application.sgml
77 +index 6511324..1e2e794 100644
78 +--- a/docs/libplanner/tmpl/mrp-application.sgml
79 ++++ b/docs/libplanner/tmpl/mrp-application.sgml
80 +@@ -17,6 +17,9 @@ the main project application object.
81 + <!-- ##### SECTION Stability_Level ##### -->
82 +
83 +
84 ++<!-- ##### SECTION Image ##### -->
85 ++
86 ++
87 + <!-- ##### STRUCT MrpApplicationPriv ##### -->
88 + <para>
89 + A private struct for internal use only. The definition of this
90 +@@ -39,6 +42,7 @@ libmrproject.
91 +
92 + </para>
93 +
94 ++@void:
95 + @Returns:
96 +
97 +
98 +diff --git a/docs/libplanner/tmpl/mrp-assignment.sgml b/docs/libplanner/tmpl/mrp-assignment.sgml
99 +index 178bf2c..29f367e 100644
100 +--- a/docs/libplanner/tmpl/mrp-assignment.sgml
101 ++++ b/docs/libplanner/tmpl/mrp-assignment.sgml
102 +@@ -17,6 +17,9 @@ MrpAssignment
103 + <!-- ##### SECTION Stability_Level ##### -->
104 +
105 +
106 ++<!-- ##### SECTION Image ##### -->
107 ++
108 ++
109 + <!-- ##### STRUCT MrpAssignmentPriv ##### -->
110 + <para>
111 + A private struct for internal use only. The definition of this
112 +@@ -50,6 +53,7 @@ Represents an assignment, i.e. the assignment of a task to a resource.
113 +
114 + </para>
115 +
116 ++@void:
117 + @Returns:
118 +
119 +
120 +@@ -78,7 +82,5 @@ Represents an assignment, i.e. the assignment of a task to a resource.
121 +
122 + @assignment:
123 + @Returns:
124 +-<!-- # Unused Parameters # -->
125 +-@assignemnt:
126 +
127 +
128 +diff --git a/docs/libplanner/tmpl/mrp-calendar.sgml b/docs/libplanner/tmpl/mrp-calendar.sgml
129 +index 5de7f6f..cda9da4 100644
130 +--- a/docs/libplanner/tmpl/mrp-calendar.sgml
131 ++++ b/docs/libplanner/tmpl/mrp-calendar.sgml
132 +@@ -25,6 +25,9 @@ can be overridden to use another day type as well.
133 + <!-- ##### SECTION Stability_Level ##### -->
134 +
135 +
136 ++<!-- ##### SECTION Image ##### -->
137 ++
138 ++
139 + <!-- ##### STRUCT MrpCalendarPriv ##### -->
140 + <para>
141 + A private struct for internal use only. The definition of this
142 +@@ -166,8 +169,6 @@ Represents a time interval.
143 + @date:
144 + @check_ancestors:
145 + @Returns:
146 +-<!-- # Unused Parameters # -->
147 +-@time:
148 +
149 +
150 + <!-- ##### FUNCTION mrp_calendar_get_default_day ##### -->
151 +@@ -178,8 +179,6 @@ Represents a time interval.
152 + @calendar:
153 + @week_day:
154 + @Returns:
155 +-<!-- # Unused Parameters # -->
156 +-@time:
157 +
158 +
159 + <!-- ##### FUNCTION mrp_calendar_set_default_days ##### -->
160 +@@ -189,7 +188,7 @@ Represents a time interval.
161 +
162 + @calendar:
163 + @week_day:
164 +-@Varargs:
165 ++@...:
166 +
167 +
168 + <!-- ##### FUNCTION mrp_calendar_set_days ##### -->
169 +@@ -199,7 +198,7 @@ Represents a time interval.
170 +
171 + @calendar:
172 + @date:
173 +-@Varargs:
174 ++@...:
175 +
176 +
177 + <!-- ##### FUNCTION mrp_calendar_get_parent ##### -->
178 +diff --git a/docs/libplanner/tmpl/mrp-day.sgml b/docs/libplanner/tmpl/mrp-day.sgml
179 +index 1ae4601..1d5751c 100644
180 +--- a/docs/libplanner/tmpl/mrp-day.sgml
181 ++++ b/docs/libplanner/tmpl/mrp-day.sgml
182 +@@ -18,6 +18,9 @@ day. Other examples might be custom types like half day, or a holiday.
183 + <!-- ##### SECTION Stability_Level ##### -->
184 +
185 +
186 ++<!-- ##### SECTION Image ##### -->
187 ++
188 ++
189 + <!-- ##### STRUCT MrpDay ##### -->
190 + <para>
191 + Object representing a day in the project.
192 +@@ -120,6 +123,7 @@ Object representing a day in the project.
193 +
194 + </para>
195 +
196 ++@void:
197 + @Returns:
198 +
199 +
200 +@@ -128,6 +132,7 @@ Object representing a day in the project.
201 +
202 + </para>
203 +
204 ++@void:
205 + @Returns:
206 +
207 +
208 +@@ -136,6 +141,7 @@ Object representing a day in the project.
209 +
210 + </para>
211 +
212 ++@void:
213 + @Returns:
214 +
215 +
216 +diff --git a/docs/libplanner/tmpl/mrp-error.sgml b/docs/libplanner/tmpl/mrp-error.sgml
217 +index 19c170c..31ebf03 100644
218 +--- a/docs/libplanner/tmpl/mrp-error.sgml
219 ++++ b/docs/libplanner/tmpl/mrp-error.sgml
220 +@@ -17,6 +17,9 @@ MrpError
221 + <!-- ##### SECTION Stability_Level ##### -->
222 +
223 +
224 ++<!-- ##### SECTION Image ##### -->
225 ++
226 ++
227 + <!-- ##### MACRO MRP_ERROR ##### -->
228 + <para>
229 + Error domain for libmrproject.
230 +diff --git a/docs/libplanner/tmpl/mrp-group.sgml b/docs/libplanner/tmpl/mrp-group.sgml
231 +index 7075576..b1be5ad 100644
232 +--- a/docs/libplanner/tmpl/mrp-group.sgml
233 ++++ b/docs/libplanner/tmpl/mrp-group.sgml
234 +@@ -17,6 +17,9 @@ MrpGroup
235 + <!-- ##### SECTION Stability_Level ##### -->
236 +
237 +
238 ++<!-- ##### SECTION Image ##### -->
239 ++
240 ++
241 + <!-- ##### STRUCT MrpGroupPriv ##### -->
242 + <para>
243 + A private struct for internal use only. The definition of this
244 +@@ -55,6 +58,7 @@ Object representing a resource group.
245 +
246 + </para>
247 +
248 ++@void:
249 + @Returns:
250 +
251 +
252 +diff --git a/docs/libplanner/tmpl/mrp-object.sgml b/docs/libplanner/tmpl/mrp-object.sgml
253 +index 50a3f23..3aff517 100644
254 +--- a/docs/libplanner/tmpl/mrp-object.sgml
255 ++++ b/docs/libplanner/tmpl/mrp-object.sgml
256 +@@ -17,6 +17,9 @@ MrpObject
257 + <!-- ##### SECTION Stability_Level ##### -->
258 +
259 +
260 ++<!-- ##### SECTION Image ##### -->
261 ++
262 ++
263 + <!-- ##### STRUCT MrpObjectPriv ##### -->
264 + <para>
265 + A private struct for internal use only. The definition of this
266 +@@ -74,7 +77,7 @@ The base class for objects in libmrproject.
267 +
268 + @object:
269 + @first_property_name:
270 +-@Varargs:
271 ++@...:
272 +
273 +
274 + <!-- ##### FUNCTION mrp_object_get ##### -->
275 +@@ -84,7 +87,7 @@ The base class for objects in libmrproject.
276 +
277 + @object:
278 + @first_property_name:
279 +-@Varargs:
280 ++@...:
281 +
282 +
283 + <!-- ##### FUNCTION mrp_object_set_valist ##### -->
284 +diff --git a/docs/libplanner/tmpl/mrp-project.sgml b/docs/libplanner/tmpl/mrp-project.sgml
285 +index bac078d..a88d923 100644
286 +--- a/docs/libplanner/tmpl/mrp-project.sgml
287 ++++ b/docs/libplanner/tmpl/mrp-project.sgml
288 +@@ -17,6 +17,9 @@ MrpProject
289 + <!-- ##### SECTION Stability_Level ##### -->
290 +
291 +
292 ++<!-- ##### SECTION Image ##### -->
293 ++
294 ++
295 + <!-- ##### STRUCT MrpProjectPriv ##### -->
296 + <para>
297 + A private struct for internal use only. The definition of this
298 +@@ -505,8 +508,6 @@ mrp_project_task_traverse(). The traversal can be stopped by returning
299 + @start:
300 + @finish:
301 + @Returns:
302 +-<!-- # Unused Parameters # -->
303 +-@duration:
304 +
305 +
306 + <!-- ##### FUNCTION mrp_project_get_properties_from_type ##### -->
307 +diff --git a/docs/libplanner/tmpl/mrp-property.sgml b/docs/libplanner/tmpl/mrp-property.sgml
308 +index 01585a8..f09425e 100644
309 +--- a/docs/libplanner/tmpl/mrp-property.sgml
310 ++++ b/docs/libplanner/tmpl/mrp-property.sgml
311 +@@ -19,6 +19,9 @@ GUI application, or plugins that add functionality.
312 + <!-- ##### SECTION Stability_Level ##### -->
313 +
314 +
315 ++<!-- ##### SECTION Image ##### -->
316 ++
317 ++
318 + <!-- ##### TYPEDEF MrpProperty ##### -->
319 + <para>
320 + Object representing a custom property in the project.
321 +diff --git a/docs/libplanner/tmpl/mrp-relation.sgml b/docs/libplanner/tmpl/mrp-relation.sgml
322 +index 7c651ad..fd790c7 100644
323 +--- a/docs/libplanner/tmpl/mrp-relation.sgml
324 ++++ b/docs/libplanner/tmpl/mrp-relation.sgml
325 +@@ -20,6 +20,9 @@ finished, plus a lag time.
326 + <!-- ##### SECTION Stability_Level ##### -->
327 +
328 +
329 ++<!-- ##### SECTION Image ##### -->
330 ++
331 ++
332 + <!-- ##### STRUCT MrpRelationPriv ##### -->
333 + <para>
334 + A private struct for internal use only. The definition of this
335 +diff --git a/docs/libplanner/tmpl/mrp-resource.sgml b/docs/libplanner/tmpl/mrp-resource.sgml
336 +index 528459c..2ceaab3 100644
337 +--- a/docs/libplanner/tmpl/mrp-resource.sgml
338 ++++ b/docs/libplanner/tmpl/mrp-resource.sgml
339 +@@ -17,6 +17,9 @@ represents a resource in the project.
340 + <!-- ##### SECTION Stability_Level ##### -->
341 +
342 +
343 ++<!-- ##### SECTION Image ##### -->
344 ++
345 ++
346 + <!-- ##### STRUCT MrpResourcePriv ##### -->
347 + <para>
348 + A private struct for internal use only. The definition of this
349 +@@ -105,6 +108,7 @@ The type of the resource, work or material.
350 +
351 + </para>
352 +
353 ++@void:
354 + @Returns:
355 +
356 +
357 +diff --git a/docs/libplanner/tmpl/mrp-task.sgml b/docs/libplanner/tmpl/mrp-task.sgml
358 +index 6f27c03..7928ae0 100644
359 +--- a/docs/libplanner/tmpl/mrp-task.sgml
360 ++++ b/docs/libplanner/tmpl/mrp-task.sgml
361 +@@ -17,6 +17,9 @@ represents a task in the project.
362 + <!-- ##### SECTION Stability_Level ##### -->
363 +
364 +
365 ++<!-- ##### SECTION Image ##### -->
366 ++
367 ++
368 + <!-- ##### STRUCT MrpTaskPriv ##### -->
369 + <para>
370 + A private struct for internal use only. The definition of this
371 +@@ -179,6 +182,7 @@ The type of constraint for the task. The default is %MRP_CONSTRAINT_ASAP.
372 +
373 + </para>
374 +
375 ++@void:
376 + @Returns:
377 +
378 +
379 +@@ -278,9 +282,6 @@ The type of constraint for the task. The default is %MRP_CONSTRAINT_ASAP.
380 + @task_a:
381 + @task_b:
382 + @Returns:
383 +-<!-- # Unused Parameters # -->
384 +-@a:
385 +-@b:
386 +
387 +
388 + <!-- ##### FUNCTION mrp_task_has_relation ##### -->
389 +diff --git a/docs/libplanner/tmpl/mrp-time.sgml b/docs/libplanner/tmpl/mrp-time.sgml
390 +index 346bf68..bce9a34 100644
391 +--- a/docs/libplanner/tmpl/mrp-time.sgml
392 ++++ b/docs/libplanner/tmpl/mrp-time.sgml
393 +@@ -17,6 +17,9 @@ mrptime
394 + <!-- ##### SECTION Stability_Level ##### -->
395 +
396 +
397 ++<!-- ##### SECTION Image ##### -->
398 ++
399 ++
400 + <!-- ##### TYPEDEF mrptime ##### -->
401 + <para>
402 + Corresponds to the standard C <type>time_t</type> type.
403 +@@ -49,6 +52,16 @@ Represents the maximium value for #mrptime.
404 +
405 + </para>
406 +
407 ++@void:
408 ++@Returns:
409 ++
410 ++
411 ++<!-- ##### FUNCTION mrp_time_from_tm ##### -->
412 ++<para>
413 ++
414 ++</para>
415 ++
416 ++@tm:
417 + @Returns:
418 +
419 +
420 +diff --git a/docs/libplanner/tmpl/planner.sgml b/docs/libplanner/tmpl/planner.sgml
421 +index 5397496..8179208 100644
422 +--- a/docs/libplanner/tmpl/planner.sgml
423 ++++ b/docs/libplanner/tmpl/planner.sgml
424 +@@ -17,3 +17,6 @@ planner
425 + <!-- ##### SECTION Stability_Level ##### -->
426 +
427 +
428 ++<!-- ##### SECTION Image ##### -->
429 ++
430 ++
431 diff --git a/src/planner-eds-plugin.c b/src/planner-eds-plugin.c
432 -index 4eb060c..ad4473b 100644
433 +index 4eb060c..a8229c9 100644
434 --- a/src/planner-eds-plugin.c
435 +++ b/src/planner-eds-plugin.c
436 @@ -30,7 +30,6 @@
437 @@ -71,7 +460,7 @@ index 4eb060c..ad4473b 100644
438 PlannerPlugin *plugin);
439 static void eds_ok_button_clicked (GtkButton *button,
440 PlannerPlugin *plugin);
441 -@@ -130,15 +128,15 @@ static MrpResource * eds_find_resource (PlannerPlugin *plugin,
442 +@@ -130,15 +128,14 @@ static MrpResource * eds_find_resource (PlannerPlugin *plugin,
443 const gchar *uid,
444 GList *resources_orig);
445 static gboolean eds_create_uid_property (PlannerPlugin *plugin);
446 @@ -79,9 +468,11 @@ index 4eb060c..ad4473b 100644
447 +static void eds_load_resources (ESource *source,
448 PlannerPlugin *plugin,
449 const gchar *search);
450 - static void eds_receive_contacts_cb (EBook *book,
451 - EBookStatus status,
452 - GList *contacts,
453 +-static void eds_receive_contacts_cb (EBook *book,
454 +- EBookStatus status,
455 +- GList *contacts,
456 ++static void eds_receive_contacts_cb (EBookClient *book,
457 ++ GAsyncResult *result,
458 gpointer plugin);
459 -static void eds_receive_book_cb (EBook *book,
460 - EBookStatus status,
461 @@ -90,7 +481,7 @@ index 4eb060c..ad4473b 100644
462 gpointer user_data);
463 static void eds_plugin_busy (PlannerPlugin *plugin,
464 gboolean busy);
465 -@@ -236,9 +234,7 @@ eds_plugin_import (GtkAction *action,
466 +@@ -236,9 +233,7 @@ eds_plugin_import (GtkAction *action,
467 PlannerPlugin *plugin;
468 PlannerPluginPriv *priv;
469 GtkCellRenderer *renderer;
470 @@ -101,7 +492,7 @@ index 4eb060c..ad4473b 100644
471 gchar *filename;
472
473 plugin = PLANNER_PLUGIN (user_data);
474 -@@ -293,11 +289,9 @@ eds_plugin_import (GtkAction *action,
475 +@@ -293,11 +288,9 @@ eds_plugin_import (GtkAction *action,
476 gtk_widget_show (priv->dialog_get_resources);
477
478
479 @@ -115,7 +506,7 @@ index 4eb060c..ad4473b 100644
480 eds_create_groups_model (groups, plugin);
481 gtk_combo_box_set_model (priv->select_group, priv->groups_model);
482 renderer = gtk_cell_renderer_text_new ();
483 -@@ -305,16 +299,16 @@ eds_plugin_import (GtkAction *action,
484 +@@ -305,52 +298,58 @@ eds_plugin_import (GtkAction *action,
485 renderer, TRUE);
486 gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (priv->select_group),
487 renderer, "text", 0, NULL);
488 @@ -128,23 +519,35 @@ index 4eb060c..ad4473b 100644
489 +eds_create_groups_model (GList *groups,
490 PlannerPlugin *plugin)
491 {
492 ++ PlannerPluginPriv *priv;
493 GtkListStore *model;
494 GtkTreeIter iter;
495 - GSList *sl;
496 + GList *sl;
497 ++ ESource *parent;
498 ++ const gchar *parent_name;
499 const gchar *name;
500
501 if (groups == NULL) {
502 -@@ -324,7 +318,7 @@ eds_create_groups_model (GSList *groups,
503 + return;
504 + }
505 +
506 ++ priv = plugin->priv;
507 model = gtk_list_store_new (NUM_GROUP_COLS, G_TYPE_STRING, G_TYPE_OBJECT);
508
509 for (sl = groups; sl; sl = sl->next) {
510 - name = e_source_group_peek_name (sl->data);
511 + name = e_source_get_display_name (sl->data);
512 ++ parent = e_source_registry_ref_source(priv->registry, e_source_get_parent(sl->data));
513 ++ parent_name = e_source_get_display_name(parent);
514 gtk_list_store_append (model, &iter);
515 gtk_list_store_set (model, &iter,
516 - COL_GROUP_NAME, name,
517 -@@ -334,23 +328,21 @@ eds_create_groups_model (GSList *groups,
518 +- COL_GROUP_NAME, name,
519 ++ COL_GROUP_NAME, g_strdup_printf("%s (%s)", name, parent_name),
520 + COL_GROUP_OBJECT, sl->data, -1);
521 ++ g_object_unref(parent);
522 + }
523 + plugin->priv->groups_model = GTK_TREE_MODEL (model);
524 }
525
526 /* For now we show all the sources from a group in a List.
527 @@ -168,7 +571,7 @@ index 4eb060c..ad4473b 100644
528 - sources = e_source_group_peek_sources (group);
529 + g_return_if_fail (E_IS_SOURCE (source));
530
531 -- priv = plugin->priv;
532 + priv = plugin->priv;
533 model = GTK_LIST_STORE (priv->resources_model);
534
535 - if (sources == NULL) {
536 @@ -176,11 +579,10 @@ index 4eb060c..ad4473b 100644
537 if (model) {
538 gtk_list_store_clear (model);
539 }
540 -@@ -439,9 +431,13 @@ eds_load_resources (ESourceGroup *group,
541 +@@ -439,9 +438,12 @@ eds_load_resources (ESourceGroup *group,
542 gtk_tree_view_set_headers_clickable (priv->resources_tree_view, TRUE);
543 }
544
545 -+ priv = plugin->priv;
546 + sources = e_source_registry_list_sources (priv->registry,
547 + E_SOURCE_EXTENSION_ADDRESS_BOOK);
548 +
549 @@ -192,7 +594,7 @@ index 4eb060c..ad4473b 100644
550
551 g_free (plugin->priv->current_query_id);
552 plugin->priv->current_query_id = e_uid_new ();
553 -@@ -450,11 +446,12 @@ eds_load_resources (ESourceGroup *group,
554 +@@ -450,11 +452,12 @@ eds_load_resources (ESourceGroup *group,
555 async_query->uid = plugin->priv->current_query_id;
556 async_query->search = search;
557
558 @@ -207,7 +609,7 @@ index 4eb060c..ad4473b 100644
559 }
560
561 static gboolean
562 -@@ -478,16 +475,17 @@ eds_query_cancelled (PlannerPlugin *plugin,
563 +@@ -478,16 +481,17 @@ eds_query_cancelled (PlannerPlugin *plugin,
564 }
565
566 static void
567 @@ -228,7 +630,7 @@ index 4eb060c..ad4473b 100644
568 GtkListStore *model;
569
570 async_query = user_data;
571 -@@ -499,25 +497,25 @@ eds_receive_book_cb (EBook *client,
572 +@@ -499,25 +503,25 @@ eds_receive_book_cb (EBook *client,
573 gtk_list_store_clear (model);
574 g_free (async_query);
575
576 @@ -259,7 +661,7 @@ index 4eb060c..ad4473b 100644
577 plugin->priv->books = g_list_append (plugin->priv->books, client);
578
579 async_query = g_new0 (AsyncQuery, 1);
580 -@@ -527,9 +525,10 @@ eds_receive_book_cb (EBook *client,
581 +@@ -527,22 +531,23 @@ eds_receive_book_cb (EBook *client,
582 async_query->plugin = plugin;
583
584 query = e_book_query_any_field_contains (search);
585 @@ -273,7 +675,57 @@ index 4eb060c..ad4473b 100644
586
587 eds_plugin_busy (plugin, TRUE);
588 e_book_query_unref (query);
589 -@@ -697,13 +696,13 @@ eds_group_selected (GtkComboBox *select_group,
590 + }
591 +
592 + static void
593 +-eds_receive_contacts_cb (EBook *book,
594 +- EBookStatus status,
595 +- GList *contacts,
596 ++eds_receive_contacts_cb (EBookClient *client,
597 ++ GAsyncResult *result,
598 + gpointer user_data)
599 + {
600 + GtkTreeIter iter;
601 +- GList *l;
602 ++ GSList *l;
603 ++ GSList *contacts;
604 + GtkListStore *model;
605 + PlannerPlugin *plugin;
606 + PlannerPluginPriv *priv;
607 +@@ -550,6 +555,7 @@ eds_receive_contacts_cb (EBook *book,
608 + AsyncQuery *async_query;
609 + const gchar *uid;
610 + gchar *filename;
611 ++ GError *error;
612 +
613 + async_query = (AsyncQuery *) user_data;
614 +
615 +@@ -565,11 +571,10 @@ eds_receive_contacts_cb (EBook *book,
616 + return;
617 + }
618 +
619 +- g_message ("Book status response: %d", status);
620 + g_message ("Answer for the query: %s", uid);
621 +
622 +- /* Exceed limit is E_BOOK_ERROR_OTHER_ERROR :( */
623 +- if (status == E_BOOK_ERROR_OK || status == E_BOOK_ERROR_OTHER_ERROR) {
624 ++ if (e_book_client_get_contacts_finish(client, result, &contacts, &error)) {
625 ++ g_message ("Book status response: %d", g_slist_length(contacts));
626 + filename = mrp_paths_get_image_dir ("/resources.png");
627 + pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
628 + g_free (filename);
629 +@@ -586,8 +591,9 @@ eds_receive_contacts_cb (EBook *book,
630 + COL_RESOURCE_PHOTO, pixbuf,
631 + COL_RESOURCE_OBJECT, l->data, -1);
632 + }
633 ++ e_client_util_free_object_slist(contacts);
634 + } else {
635 +- g_warning ("Problem getting contacts ...");
636 ++ g_warning ("Problem getting contacts: %s", error->message);
637 + }
638 +
639 + eds_plugin_busy (plugin, FALSE);
640 +@@ -697,13 +703,13 @@ eds_group_selected (GtkComboBox *select_group,
641 {
642 GtkTreeIter iter;
643 PlannerPluginPriv *priv = plugin->priv;
644 @@ -290,7 +742,7 @@ index 4eb060c..ad4473b 100644
645 }
646 }
647
648 -@@ -805,14 +804,14 @@ eds_search_button_clicked (GtkButton *button,
649 +@@ -805,14 +811,14 @@ eds_search_button_clicked (GtkButton *button,
650 const gchar *search;
651 PlannerPluginPriv *priv = plugin->priv;
652 GtkTreeIter iter;
653 @@ -308,7 +760,7 @@ index 4eb060c..ad4473b 100644
654 }
655 }
656
657 -@@ -823,13 +822,13 @@ eds_search_key_pressed (GtkEntry *entry,
658 +@@ -823,13 +829,13 @@ eds_search_key_pressed (GtkEntry *entry,
659 {
660 PlannerPluginPriv *priv = plugin->priv;
661 GtkTreeIter iter;
662 @@ -325,7 +777,7 @@ index 4eb060c..ad4473b 100644
663 }
664 }
665 return FALSE;
666 -@@ -935,6 +934,7 @@ plugin_init (PlannerPlugin *plugin)
667 +@@ -935,6 +941,7 @@ plugin_init (PlannerPlugin *plugin)
668 plugin->priv = priv;
669 priv->project = planner_window_get_project (plugin->main_window);
670
671
672 diff --git a/app-office/planner/files/0005-Run-autoupdate.patch b/app-office/planner/files/0005-Run-autoupdate.patch
673 index bf6922c..f02fcfa 100644
674 --- a/app-office/planner/files/0005-Run-autoupdate.patch
675 +++ b/app-office/planner/files/0005-Run-autoupdate.patch
676 @@ -1,4 +1,4 @@
677 -From f84e26a52707ab42b26a01516a59783301937ea8 Mon Sep 17 00:00:00 2001
678 +From 93f39fce452e874f1240b3580e242fefb8c7c5c3 Mon Sep 17 00:00:00 2001
679 From: Gilles Dartiguelongue <eva@g.o>
680 Date: Sat, 29 Dec 2012 17:08:33 +0100
681 Subject: [PATCH 5/5] Run autoupdate