Changeset 1957
- Timestamp:
- 05/15/07 23:16:49
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/Makefile.am (modified) (1 diff)
- trunk/configure.ac (modified) (5 diffs)
- trunk/libtinymail-asyncworker (added)
- trunk/libtinymail-asyncworker/.svnignore (added)
- trunk/libtinymail-asyncworker/Makefile.am (added)
- trunk/libtinymail-asyncworker/libtinymail-asyncworker.pc.in (added)
- trunk/libtinymail-asyncworker/tny-async-worker-queue-priv.h (added)
- trunk/libtinymail-asyncworker/tny-async-worker-queue-task-priv.h (added)
- trunk/libtinymail-asyncworker/tny-async-worker-queue-task.c (added)
- trunk/libtinymail-asyncworker/tny-async-worker-queue-task.h (added)
- trunk/libtinymail-asyncworker/tny-async-worker-queue.c (added)
- trunk/libtinymail-asyncworker/tny-async-worker-queue.h (added)
- trunk/libtinymail-queues/Makefile.am (modified) (1 diff)
- trunk/libtinymail-queues/tny-generic-send-queue-priv.h (modified) (1 diff)
- trunk/libtinymail-queues/tny-generic-send-queue.c (modified) (15 diffs)
- trunk/libtinymail-queues/tny-generic-send-queue.h (modified) (1 diff)
- trunk/libtinymail-queues/tny-get-msg-queue-priv.h (modified) (1 diff)
- trunk/libtinymail-queues/tny-get-msg-queue.c (modified) (13 diffs)
- trunk/libtinymail-queues/tny-get-msg-queue.h (modified) (2 diffs)
- trunk/libtinymail-queues/tny-queue-task.c (added)
- trunk/libtinymail-queues/tny-queue-task.h (added)
- trunk/libtinymail-queues/tny-queue.c (added)
- trunk/libtinymail-queues/tny-queue.h (added)
- trunk/libtinymailui/tny-account-store-view.c (modified) (1 diff)
- trunk/tests/c-demo/Makefile.am (modified) (2 diffs)
- trunk/tests/c-demo/tny-demoui-summary-view.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r1956 r1957 1 2007-05-15 Philip Van Hoof <pvanhoof@gnome.org> 2 3 * The new TnyQueue and TnyQueueTasks types 4 * Major rewrites of libtinymail-queues 5 * It's not stricly depending on AsyncWorker anymore 6 * Introduction of libtinymail-asyncworker 7 8 * This was a major API change in libtinymail-queues 9 * This was a major API change in libtinymail-asyncworker 10 1 11 2007-05-15 Philip Van Hoof <pvanhoof@gnome.org> 2 12 trunk/Makefile.am
r1932 r1957 29 29 if BUILD_QUEUES 30 30 SUBDIRS += libtinymail-queues 31 endif 32 33 if BUILD_ASYNCWORKER 34 SUBDIRS += libtinymail-asyncworker 31 35 endif 32 36 trunk/configure.ac
r1932 r1957 56 56 dnl ### default values (will get overwritten) 57 57 build_queues=false 58 build_asyncworker=false 58 59 build_acap=false 59 60 build_gnome=true … … 199 200 *) AC_MSG_ERROR(bad value ${enableval} for --enable-queues) ;; 200 201 esac],[build_queues=$build_queues]) 202 203 dnl ### Enable asyncworker ## 204 AC_ARG_ENABLE(asyncworker, 205 AC_HELP_STRING([--enable-asyncworker], 206 [Build using asyncworker]), 207 [case "${enableval}" in 208 yes) 209 build_queues=true 210 build_asyncworker=true 211 ;; 212 no) 213 build_asyncworker=false 214 build_queues=false 215 ;; 216 *) AC_MSG_ERROR(bad value ${enableval} for --enable-asyncworker) ;; 217 esac],[build_asyncworker=$build_asyncworker]) 218 219 AM_CONDITIONAL(BUILD_ASYNCWORKER, test x$build_asyncworker = xtrue) 201 220 AM_CONDITIONAL(BUILD_QUEUES, test x$build_queues = xtrue) 202 203 221 204 222 … … 280 298 281 299 if test x$build_queues = xtrue; then 282 PKG_CHECK_MODULES(LIBTINYMAIL_QUEUES, oasyncworker-1.0glib-2.0 >= 2.8 gobject-2.0)300 PKG_CHECK_MODULES(LIBTINYMAIL_QUEUES, glib-2.0 >= 2.8 gobject-2.0) 283 301 AC_SUBST(LIBTINYMAIL_QUEUES_CFLAGS) 284 302 AC_SUBST(LIBTINYMAIL_QUEUES_LIBS) 303 if test x$build_asyncworker = xtrue; then 304 PKG_CHECK_MODULES(LIBTINYMAIL_ASYNCWORKER, oasyncworker-1.0 glib-2.0 >= 2.8 gobject-2.0) 305 AC_SUBST(LIBTINYMAIL_ASYNCWORKER_CFLAGS) 306 AC_SUBST(LIBTINYMAIL_ASYNCWORKER_LIBS) 307 fi 285 308 fi 286 309 … … 465 488 libtinymail-queues/Makefile 466 489 libtinymail-queues/libtinymail-queues.pc 490 libtinymail-asyncworker/Makefile 491 libtinymail-asyncworker/libtinymail-asyncworker.pc 467 492 tests/Makefile 468 493 tests/c-demo/Makefile … … 480 505 echo " Enable ACAP features: $build_acap" 481 506 echo " Build the queues library: $build_queues" 507 echo " Build the asyncworker impl: $build_asyncworker" 482 508 echo " HTML component: ${with_html_component}" 483 509 echo " Python language bindings: $build_pytinymail" trunk/libtinymail-queues/Makefile.am
r1815 r1957 1 INCLUDES = $(LIBTINYMAIL_QUEUES_CFLAGS) $(LIBTINYMAIL_CFLAGS) -I. -I$(top_srcdir)\2 -I $(top_srcdir)/libtinymail1 INCLUDES = $(LIBTINYMAIL_QUEUES_CFLAGS) $(LIBTINYMAIL_CFLAGS) \ 2 -I. -I$(top_srcdir) -I$(top_srcdir)/libtinymail 3 3 4 4 lib_LTLIBRARIES = libtinymail-queues-1.0.la 5 5 6 6 libtinymail_queues_1_0_headers = \ 7 tny- get-msg-queue-priv.h \7 tny-queue.h tny-queue-task.h \ 8 8 tny-get-msg-queue.h \ 9 tny-generic-send-queue-priv.h \10 9 tny-generic-send-queue.h 11 10 12 11 libtinymail_queues_1_0_la_SOURCES = \ 12 tny-queue.c tny-queue-task.c \ 13 tny-get-msg-queue-priv.h \ 14 tny-generic-send-queue-priv.h \ 13 15 $(libtinymail_queues_1_0_headers) \ 14 16 tny-get-msg-queue.c \ 15 17 tny-generic-send-queue.c 16 18 17 libtinymail_queues_1_0_la_LIBADD = $(LIBTINYMAIL_LIBS) $(LIBTINYMAIL_QUEUES_LIBS) 19 libtinymail_queues_1_0_la_LIBADD = $(LIBTINYMAIL_LIBS) $(LIBTINYMAIL_QUEUES_LIBS) \ 20 $(top_builddir)/libtinymail/libtinymail-$(API_VERSION).la 18 21 libtinymail_queues_1_0_la_LDFLAGS = -export-dynamic -version-info $(LT_VERSION_INFO) $(LIBTOOL_EXPORT_OPTIONS) 19 libtinymail_queues_1_0_includedir = $(includedir)/libtinymail-$(API_VERSION)20 libtinymail_queues_1_0_include_HEADERS = $(libtinymail_queues_1_0_headers)21 22 22 23 %-$(API_VERSION).pc: %.pc trunk/libtinymail-queues/tny-generic-send-queue-priv.h
r1817 r1957 25 25 struct _TnyGenericSendQueuePriv 26 26 { 27 OAsyncWorker*queue;27 TnyQueue *queue; 28 28 GMutex *lock; 29 29 TnyFolder *outbox, *sentbox; trunk/libtinymail-queues/tny-generic-send-queue.c
r1920 r1957 22 22 #include <glib/gi18n-lib.h> 23 23 24 #include <oasyncworker/oasyncworker.h>25 26 27 24 #include <tny-generic-send-queue.h> 28 25 #include <tny-simple-list.h> … … 89 86 90 87 static gpointer 91 generic_send_task ( OAsyncWorkerTask *task, gpointer arguments)88 generic_send_task (TnyQueueTask *task, gpointer arguments) 92 89 { 93 90 GenericSendInfo *info = (GenericSendInfo *) arguments; … … 133 130 134 131 static void 135 generic_send_callback ( OAsyncWorkerTask *task, gpointer func_result)136 { 137 GenericSendInfo *info = o_async_worker_task_get_arguments (task);132 generic_send_callback (TnyQueueTask *task, gpointer func_result) 133 { 134 GenericSendInfo *info = tny_queue_task_get_arguments (task); 138 135 g_object_unref (info->self); 139 136 g_slice_free (GenericSendInfo, info); … … 175 172 while (!tny_iterator_is_done (iter)) 176 173 { 177 OAsyncWorkerTask *task;174 TnyQueueTask *task; 178 175 GenericSendInfo *info = g_slice_new (GenericSendInfo); 179 176 TnyHeader *header = TNY_HEADER (tny_iterator_get_current (iter)); … … 203 200 } 204 201 205 task = o_async_worker_task_new ();206 o_async_worker_task_set_arguments (task, info);207 o_async_worker_task_set_func (task, generic_send_task);208 o_async_worker_task_set_callback (task, generic_send_callback);209 210 item = o_async_worker_add(priv->queue, task);202 task = tny_queue_create_task (priv->queue); 203 tny_queue_task_set_arguments (task, info); 204 tny_queue_task_set_func (task, generic_send_task); 205 tny_queue_task_set_callback (task, generic_send_callback); 206 207 item = tny_queue_add_task (priv->queue, task); 211 208 212 209 g_object_unref (header); … … 254 251 TnyGenericSendQueuePriv *priv = TNY_GENERIC_SEND_QUEUE_GET_PRIVATE (self); 255 252 TnyFolder *outbox; 256 OAsyncWorkerTask *task;253 TnyQueueTask *task; 257 254 GenericSendInfo *info; 258 255 TnyFolderChangeChanged changed; … … 299 296 } 300 297 301 task = o_async_worker_task_new ();302 o_async_worker_task_set_arguments (task, info);303 o_async_worker_task_set_func (task, generic_send_task);304 o_async_worker_task_set_callback (task, generic_send_callback);305 306 o_async_worker_add(priv->queue, task);298 task = tny_queue_create_task (priv->queue); 299 tny_queue_task_set_arguments (task, info); 300 tny_queue_task_set_func (task, generic_send_task); 301 tny_queue_task_set_callback (task, generic_send_callback); 302 303 tny_queue_add_task (priv->queue, task); 307 304 308 305 g_object_unref (G_OBJECT (header)); … … 333 330 334 331 priv->cancelled = TRUE; 335 o_async_worker_join (priv->queue);332 tny_queue_join (priv->queue); 336 333 337 334 g_mutex_lock (priv->lock); … … 417 414 } 418 415 416 417 418 static gint 419 tny_generic_send_queue_add_task (TnyQueue *self, TnyQueueTask *task) 420 { 421 TnyGenericSendQueuePriv *priv = TNY_GENERIC_SEND_QUEUE_GET_PRIVATE (self); 422 return tny_queue_add_task (priv->queue, task); 423 } 424 425 static void 426 tny_generic_send_queue_join (TnyQueue *self) 427 { 428 TnyGenericSendQueuePriv *priv = TNY_GENERIC_SEND_QUEUE_GET_PRIVATE (self); 429 tny_queue_join (priv->queue); 430 return; 431 } 432 433 434 static TnyQueueTask* 435 tny_generic_send_queue_create_task (TnyQueue *self) 436 { 437 TnyGenericSendQueuePriv *priv = TNY_GENERIC_SEND_QUEUE_GET_PRIVATE (self); 438 return tny_queue_create_task (priv->queue); 439 } 440 419 441 /** 420 442 * tny_generic_send_queue_new: 443 * @decorated: The #TnyQueue to decorate with this queue 421 444 * @account: a #TnyTransportAccount object 422 445 * @outbox: a #TnyFolder object … … 429 452 **/ 430 453 TnySendQueue* 431 tny_generic_send_queue_new (Tny TransportAccount *account, TnyFolder *outbox, TnyFolder *sentbox)454 tny_generic_send_queue_new (TnyQueue *decorated, TnyTransportAccount *account, TnyFolder *outbox, TnyFolder *sentbox) 432 455 { 433 456 TnyGenericSendQueue *self = g_object_new (TNY_TYPE_GENERIC_SEND_QUEUE, NULL); 434 457 TnyGenericSendQueuePriv *priv = TNY_GENERIC_SEND_QUEUE_GET_PRIVATE (self); 435 458 459 priv->queue = TNY_QUEUE (g_object_ref (decorated)); 436 460 priv->account = TNY_TRANSPORT_ACCOUNT (g_object_ref (account)); 437 461 priv->outbox = TNY_FOLDER (g_object_ref (outbox)); … … 452 476 453 477 priv->cancelled = TRUE; 454 o_async_worker_join (priv->queue);478 tny_queue_join (priv->queue); 455 479 456 480 g_mutex_lock (priv->lock); … … 475 499 476 500 g_mutex_lock (priv->lock); 477 priv->queue = o_async_worker_new ();501 priv->queue = NULL; 478 502 priv->account = NULL; 479 503 priv->sentbox = NULL; … … 510 534 klass->update_func = tny_generic_send_queue_update; 511 535 } 536 537 static void 538 tny_queue_init (TnyQueueIface *klass) 539 { 540 klass->add_task_func = tny_generic_send_queue_add_task; 541 klass->join_func = tny_generic_send_queue_join; 542 klass->create_task_func = tny_generic_send_queue_create_task; 543 } 544 512 545 513 546 static void … … 557 590 }; 558 591 592 static const GInterfaceInfo tny_queue_info = 593 { 594 (GInterfaceInitFunc) tny_queue_init, /* interface_init */ 595 NULL, /* interface_finalize */ 596 NULL /* interface_data */ 597 }; 598 559 599 type = g_type_register_static (G_TYPE_OBJECT, 560 600 "TnyGenericSendQueue", … … 567 607 &tny_folder_observer_info); 568 608 609 g_type_add_interface_static (type, TNY_TYPE_QUEUE, 610 &tny_queue_info); 611 569 612 } 570 613 return type; trunk/libtinymail-queues/tny-generic-send-queue.h
r1851 r1957 21 21 */ 22 22 #include <tny-shared.h> 23 #include <tny-queue.h> 24 #include <tny-queue-task.h> 23 25 #include <tny-send-queue.h> 24 26 #include <tny-msg.h> trunk/libtinymail-queues/tny-get-msg-queue-priv.h
r1884 r1957 25 25 struct _TnyGetMsgQueuePriv 26 26 { 27 OAsyncWorker*queue;27 TnyQueue *queue; 28 28 GMutex *lock; 29 29 guint total; trunk/libtinymail-queues/tny-get-msg-queue.c
r1920 r1957 29 29 30 30 #include <tny-get-msg-queue.h> 31 #include <oasyncworker/oasyncworker.h>32 31 33 32 static GObjectClass *parent_class = NULL; … … 43 42 TnyStatusCallback status_callback; 44 43 gpointer user_data; 44 TnyFolder *folder; 45 45 guint i; 46 46 GError *err; … … 49 49 50 50 static gpointer 51 get_msg_task ( OAsyncWorkerTask *task, gpointer arguments)51 get_msg_task (TnyQueueTask *task, gpointer arguments) 52 52 { 53 53 TnyMsg *retval = NULL; … … 60 60 g_print ("Getting message (%d of %d): %s\n", info->i, priv->total, 61 61 tny_header_get_subject (info->header)); 62 folder = tny_header_get_folder (info->header);62 info->folder = tny_header_get_folder (info->header); 63 63 64 64 if (info->status_callback) { … … 76 76 } 77 77 78 retval = tny_folder_get_msg (folder, info->header, &info->err); 79 80 g_object_unref (folder); 78 if (info->folder) 79 retval = tny_folder_get_msg (info->folder, info->header, &info->err); 81 80 82 81 return (gpointer) retval; … … 84 83 85 84 static void 86 get_msg_callback ( OAsyncWorkerTask *task, gpointer func_result)87 { 88 GetMsgInfo *info = o_async_worker_task_get_arguments (task);85 get_msg_callback (TnyQueueTask *task, gpointer func_result) 86 { 87 GetMsgInfo *info = tny_queue_task_get_arguments (task); 89 88 TnyMsg *msg = (TnyMsg *) func_result; 90 89 TnyFolder *folder; … … 92 91 info->err = NULL; 93 92 94 folder = tny_header_get_folder (info->header); 95 96 if (info->callback) 97 info->callback (folder, FALSE, msg, &info->err, info->user_data); 93 94 if (info->callback && info->folder) 95 info->callback (info->folder, FALSE, msg, &info->err, info->user_data); 98 96 99 97 if (msg) 100 98 g_object_unref (msg); 101 102 g_object_unref (folder); 99 100 103 101 g_object_unref (info->header); 102 103 if (info->folder) 104 g_object_unref (info->folder); 105 104 106 g_object_unref (info->self); 105 107 … … 130 132 { 131 133 TnyGetMsgQueuePriv *priv = TNY_GET_MSG_QUEUE_GET_PRIVATE (self); 132 OAsyncWorkerTask *task = o_async_worker_task_new ();134 TnyQueueTask *task = tny_queue_create_task (priv->queue); 133 135 GetMsgInfo *info = g_slice_new (GetMsgInfo); 134 136 … … 141 143 info->user_data = user_data; 142 144 143 o_async_worker_task_set_arguments (task, info);144 o_async_worker_task_set_func (task, get_msg_task);145 o_async_worker_task_set_callback (task, get_msg_callback);145 tny_queue_task_set_arguments (task, info); 146 tny_queue_task_set_func (task, get_msg_task); 147 tny_queue_task_set_callback (task, get_msg_callback); 146 148 147 149 g_mutex_lock (priv->lock); 148 o_async_worker_add(priv->queue, task);150 tny_queue_add_task (priv->queue, task); 149 151 g_mutex_unlock (priv->lock); 150 152 … … 306 308 /** 307 309 * tny_get_msg_queue_new: 310 * @decorated: The #TnyQueue to decorate with this queue 308 311 * 309 312 * Creates a queue that can get messages for you 310 313 * 311 * Return value: a new #Tny GetMsgQueue instance314 * Return value: a new #TnyQueue instance 312 315 **/ 313 Tny GetMsgQueue*314 tny_get_msg_queue_new ( void)316 TnyQueue* 317 tny_get_msg_queue_new (TnyQueue *decorated) 315 318 { 316 319 TnyGetMsgQueue *self = g_object_new (TNY_TYPE_GET_MSG_QUEUE, NULL); 317 318 return self; 320 TnyGetMsgQueuePriv *priv = TNY_GET_MSG_QUEUE_GET_PRIVATE (self); 321 322 priv->queue = TNY_QUEUE (g_object_ref (decorated)); 323 324 return TNY_QUEUE (self); 325 } 326 327 static gint 328 tny_get_msg_queue_add_task (TnyQueue *self, TnyQueueTask *task) 329 { 330 TnyGetMsgQueuePriv *priv = TNY_GET_MSG_QUEUE_GET_PRIVATE (self); 331 return tny_queue_add_task (priv->queue, task); 332 } 333 334 335 static void 336 tny_get_msg_queue_join (TnyQueue *self) 337 { 338 TnyGetMsgQueuePriv *priv = TNY_GET_MSG_QUEUE_GET_PRIVATE (self); 339 tny_queue_join (priv->queue); 340 return; 341 } 342 343 static TnyQueueTask* 344 tny_get_msg_queue_create_task (TnyQueue *self) 345 { 346 TnyGetMsgQueuePriv *priv = TNY_GET_MSG_QUEUE_GET_PRIVATE (self); 347 return tny_queue_create_task (priv->queue); 348 } 349 350 351 static void 352 tny_queue_init (TnyQueueIface *klass) 353 { 354 klass->add_task_func = tny_get_msg_queue_add_task; 355 klass->join_func = tny_get_msg_queue_join; 356 klass->create_task_func = tny_get_msg_queue_create_task; 319 357 } 320 358 … … 326 364 327 365 g_mutex_lock (priv->lock); 328 g_object_unref ( G_OBJECT (priv->queue));366 g_object_unref (priv->queue); 329 367 g_mutex_unlock (priv->lock); 330 368 g_mutex_free (priv->lock); … … 342 380 priv->total = 0; 343 381 g_mutex_lock (priv->lock); 344 priv->queue = o_async_worker_new ();382 priv->queue = NULL; 345 383 g_mutex_unlock (priv->lock); 346 384 … … 383 421 }; 384 422 423 static const GInterfaceInfo tny_queue_info = 424 { 425 (GInterfaceInitFunc) tny_queue_init, /* interface_init */ 426 NULL, /* interface_finalize */ 427 NULL /* interface_data */ 428 }; 429 385 430 type = g_type_register_static (G_TYPE_OBJECT, 386 431 "TnyGetMsgQueue", 387 432 &info, 0); 433 434 g_type_add_interface_static (type, TNY_TYPE_QUEUE, 435 &tny_queue_info); 388 436 } 389 437 return type; trunk/libtinymail-queues/tny-get-msg-queue.h
r1884 r1957 21 21 */ 22 22 #include <tny-shared.h> 23 23 #include <tny-queue.h> 24 #include <tny-queue-task.h> 24 25 #include <tny-folder.h> 25 26 #include <tny-msg.h> … … 52 53 53 54 GType tny_get_msg_queue_get_type (void); 54 Tny GetMsgQueue* tny_get_msg_queue_new (void);55 TnyQueue* tny_get_msg_queue_new (TnyQueue *decorated); 55 56 56 57 void tny_get_msg_queue_get_msg (TnyGetMsgQueue *self, TnyHeader *header, TnyGetMsgCallback callback, TnyStatusCallback status_callback, gpointer user_data); trunk/libtinymailui/tny-account-store-view.c
r1198 r1957 35 35 tny_account_store_view_set_account_store (TnyAccountStoreView *self, TnyAccountStore *account_store) 36 36 { 37 #ifdef D EBUG38 if (!TNY_ACCOUNT_STORE_VIEW_GET_IFACE (self)->set_account_store_func)39 g_critical ("You must implement tny_account_store_view_set_account_store\n");37 #ifdef DBC /* require */ 38 g_assert (TNY_IS_ACCOUNT_STORE_VIEW (self)); 39 g_assert (TNY_ACCOUNT_STORE_VIEW_GET_IFACE (self)->set_account_store_func != NULL); 40 40 #endif 41 41 42 TNY_ACCOUNT_STORE_VIEW_GET_IFACE (self)->set_account_store_func (self, account_store); 43 42 44 return; 43 45 } trunk/tests/c-demo/Makefile.am
r1884 r1957 15 15 if BUILD_QUEUES 16 16 INCLUDES += -DQUEUES -I$(top_srcdir)/libtinymail-queues 17 endif 18 19 if BUILD_ASYNCWORKER 20 INCLUDES += -DASYNCWORKER -I$(top_srcdir)/libtinymail-asyncworker $(LIBTINYMAIL_ASYNCWORKER_CFLAGS) 17 21 endif 18 22 … … 41 45 endif 42 46 47 if BUILD_ASYNCWORKER 48 tny_demoui_LDADD += $(top_builddir)/libtinymail-asyncworker/libtinymail-asyncworker-$(API_VERSION).la \ 49 $(LIBTINYMAIL_ASYNCWORKER_LIBS) 50 endif 51 trunk/tests/c-demo/tny-demoui-summary-view.c
r1930 r1957 78 78 79 79 80 #ifdef QUEUES 80 #ifdef ASYNCWORKER 81 #include <tny-async-worker-queue.h> 81 82 #include <tny-get-msg-queue.h> 82 83 #endif … … 753 754 } 754 755 755 #ifdef QUEUES 756 static TnyGetMsgQueue *fullqueue = NULL; 756 #ifdef ASYNCWORKER 757 static TnyQueue *fullqueue = NULL; 758 static TnyQueue *real_queue = NULL; 759 760 static TnyQueue* 761 get_queue (void) 762 { 763 if (!real_queue) 764 real_queue = tny_async_worker_queue_new_from_scratch (); 765 return real_queue; 766 } 757 767 758 768 static void … … 780 790 &folder, -1); 781 791 792 782 793 if (!fullqueue) 783 fullqueue = tny_get_msg_queue_new ( );784 785 tny_get_msg_queue_full_msg_retrieval ( fullqueue, folder,786 NULL, NULL, status_update, self);794 fullqueue = tny_get_msg_queue_new (get_queue ()); 795 796 tny_get_msg_queue_full_msg_retrieval (TNY_GET_MSG_QUEUE (fullqueue), 797 folder, NULL, NULL, status_update, self); 787 798 788 799 g_object_unref (G_OBJECT (folder)); … … 1122 1133 GtkSelectionMode mode; 1123 1134 GtkWidget *mrename, *mdelete, *mcreate, *mmerge; 1124 #ifdef QUEUES1135 #ifdef ASYNCWORKER 1125 1136 GtkWidget *fdown; 1126 1137 #endif … … 1132 1143 mdelete = gtk_menu_item_new_with_label (_("Delete folder")); 1133 1144 1134 #ifdef QUEUES1145 #ifdef ASYNCWORKER 1135 1146 fdown = gtk_menu_item_new_with_label (_("Download entire folder")); 1136 1147 #endif … … 1151 1162 g_signal_connect (G_OBJECT (mmerge), "activate", 1152 1163 G_CALLBACK (on_merge_view_activate), user_data); 1153 #ifdef QUEUES1164 #ifdef ASYNCWORKER 1154 1165 g_signal_connect (G_OBJECT (fdown), "activate", 1155 1166 G_CALLBACK (on_full_download_folder_activate), user_data); … … 1160 1171 gtk_menu_prepend (menu, mdelete); 1161 1172 gtk_menu_prepend (menu, mmerge); 1162 #ifdef QUEUES1173 #ifdef ASYNCWORKER 1163 1174 gtk_menu_prepend (menu, fdown); 1164 1175
