Changeset 3415
- Timestamp:
- 02/16/08 16:54:20
- Files:
-
- trunk/ChangeLog (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-account-store.sgml (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-account.sgml (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-device.sgml (modified) (1 diff)
- trunk/docs/devel/reference/tmpl/tny-send-queue.sgml (modified) (5 diffs)
- trunk/docs/devel/reference/tmpl/tny-shared.sgml (modified) (5 diffs)
- trunk/libtinymail-camel/tny-camel-account-priv.h (modified) (1 diff)
- trunk/libtinymail-camel/tny-camel-account.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-camel-bs-mime-part.c (modified) (2 diffs)
- trunk/libtinymail-camel/tny-camel-folder.c (modified) (2 diffs)
- trunk/tests/c-demo/tny-demoui-summary-view.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ChangeLog
r3412 r3415 2 2 3 3 * NAMESPACE vs. LIST separator for mail.h-farm.it 4 * Get-Message cancels 5 * Various smaller bugfixes 4 6 5 7 2008-02-15 Philip Van Hoof <pvanhoof@gnome.org> trunk/docs/devel/reference/tmpl/tny-account-store.sgml
r3409 r3415 49 49 50 50 </para> 51 52 @: 51 53 52 54 @tnyaccountstore: the object which received the signal. trunk/docs/devel/reference/tmpl/tny-account.sgml
r3409 r3415 28 28 29 29 </para> 30 31 @:32 30 33 31 @tnyaccount: the object which received the signal. trunk/docs/devel/reference/tmpl/tny-device.sgml
r3409 r3415 36 36 37 37 </para> 38 39 @: 40 @: 38 41 39 42 @tnydevice: the object which received the signal. trunk/docs/devel/reference/tmpl/tny-send-queue.sgml
r3409 r3415 40 40 </para> 41 41 42 @:43 @:44 @:45 @:46 47 42 @tnysendqueue: the object which received the signal. 48 43 @arg1: … … 54 49 55 50 </para> 56 57 @:58 @:59 @:60 @:61 @:62 51 63 52 @tnysendqueue: the object which received the signal. … … 72 61 </para> 73 62 74 @:75 @:76 @:77 @:78 @:79 80 63 @tnysendqueue: the object which received the signal. 81 64 @arg1: … … 89 72 </para> 90 73 74 @: 75 91 76 @tnysendqueue: the object which received the signal. 92 77 … … 95 80 96 81 </para> 82 83 @: 97 84 98 85 @tnysendqueue: the object which received the signal. trunk/docs/devel/reference/tmpl/tny-shared.sgml
r3409 r3415 54 54 </para> 55 55 56 @ :56 @tnyaccountstore: the object which received the signal. 57 57 58 58 <!-- ##### STRUCT TnyAccountStoreIface ##### --> … … 262 262 </para> 263 263 264 @ tnyaccount: the object which received the signal.264 @: 265 265 266 266 <!-- ##### SIGNAL TnyAccount::connection-status-changed ##### --> … … 321 321 </para> 322 322 323 @ :324 @ :323 @tnydevice: the object which received the signal. 324 @arg1: 325 325 326 326 <!-- ##### STRUCT TnyDeviceIface ##### --> … … 493 493 </para> 494 494 495 @: 496 @: 497 @: 498 @: 499 500 <!-- ##### SIGNAL TnySendQueue::msg-sending ##### --> 501 <para> 502 503 </para> 504 505 @: 506 @: 507 @: 508 @: 509 @: 510 511 <!-- ##### SIGNAL TnySendQueue::msg-sent ##### --> 512 <para> 513 514 </para> 515 516 @: 517 @: 518 @: 519 @: 520 @: 521 522 <!-- ##### SIGNAL TnySendQueue::queue-start ##### --> 523 <para> 524 525 </para> 526 495 527 @tnysendqueue: the object which received the signal. 496 @arg1: 497 @arg2: 498 @arg3: 499 500 <!-- ##### SIGNAL TnySendQueue::msg-sending ##### --> 528 529 <!-- ##### SIGNAL TnySendQueue::queue-stop ##### --> 501 530 <para> 502 531 … … 504 533 505 534 @tnysendqueue: the object which received the signal. 506 @arg1:507 @arg2:508 @arg3:509 @arg4:510 511 <!-- ##### SIGNAL TnySendQueue::msg-sent ##### -->512 <para>513 514 </para>515 516 @tnysendqueue: the object which received the signal.517 @arg1:518 @arg2:519 @arg3:520 @arg4:521 522 <!-- ##### SIGNAL TnySendQueue::queue-start ##### -->523 <para>524 525 </para>526 527 @:528 529 <!-- ##### SIGNAL TnySendQueue::queue-stop ##### -->530 <para>531 532 </para>533 534 @:535 535 536 536 <!-- ##### STRUCT TnySendQueueIface ##### --> trunk/libtinymail-camel/tny-camel-account-priv.h
r3125 r3415 63 63 gboolean pass_func_set, forget_pass_func_set; 64 64 CamelProviderType type; 65 CamelOperation *cancel ;65 CamelOperation *cancel, *getmsg_cancel; 66 66 GStaticRecMutex *cancel_lock; 67 67 gboolean inuse_spin, in_auth; trunk/libtinymail-camel/tny-camel-account.c
r3389 r3415 1215 1215 if (priv->cancel) 1216 1216 camel_operation_cancel (priv->cancel); 1217 if (priv->getmsg_cancel) 1218 camel_operation_cancel (priv->getmsg_cancel); 1217 1219 g_static_rec_mutex_unlock (priv->cancel_lock); 1218 1220 … … 1240 1242 { 1241 1243 TnyCamelStoreAccountPriv *priv = TNY_CAMEL_STORE_ACCOUNT_GET_PRIVATE (self); 1244 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (self); 1242 1245 1243 1246 _tny_camel_queue_cancel_remove_items (priv->queue, 1244 1247 TNY_CAMEL_QUEUE_GET_HEADERS_ITEM|TNY_CAMEL_QUEUE_SYNC_ITEM| 1245 1248 TNY_CAMEL_QUEUE_REFRESH_ITEM|TNY_CAMEL_QUEUE_CANCELLABLE_ITEM); 1249 1250 g_static_rec_mutex_lock (apriv->cancel_lock); 1251 if (apriv->getmsg_cancel) 1252 camel_operation_cancel (apriv->getmsg_cancel); 1253 g_static_rec_mutex_unlock (apriv->cancel_lock); 1246 1254 1247 1255 } else { trunk/libtinymail-camel/tny-camel-bs-mime-part.c
r3388 r3415 552 552 553 553 cancel = camel_operation_new (decode_async_status, info); 554 555 if (priv->folder && TNY_IS_CAMEL_FOLDER (priv->folder)) { 556 TnyCamelFolderPriv *fpriv = TNY_CAMEL_FOLDER_GET_PRIVATE (priv->folder); 557 if (fpriv->account && TNY_IS_CAMEL_ACCOUNT (fpriv->account)) { 558 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (fpriv->account); 559 apriv->getmsg_cancel = cancel; 560 } 561 } 562 554 563 camel_operation_ref (cancel); 555 564 camel_operation_register (cancel); … … 573 582 if (cancel) 574 583 camel_operation_unref (cancel); 584 585 586 if (priv->folder && TNY_IS_CAMEL_FOLDER (priv->folder)) { 587 TnyCamelFolderPriv *fpriv = TNY_CAMEL_FOLDER_GET_PRIVATE (priv->folder); 588 if (fpriv->account && TNY_IS_CAMEL_ACCOUNT (fpriv->account)) { 589 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (fpriv->account); 590 apriv->getmsg_cancel = NULL; 591 } 592 } 575 593 576 594 /* To disable parallel getting of messages while summary is being retreived, trunk/libtinymail-camel/tny-camel-folder.c
r3373 r3415 2274 2274 cancel = camel_operation_new (tny_camel_folder_get_msg_async_status, info); 2275 2275 2276 if (priv->account && TNY_IS_CAMEL_ACCOUNT (priv->account)) { 2277 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (priv->account); 2278 apriv->getmsg_cancel = cancel; 2279 } 2280 2276 2281 /* To disable parallel getting of messages while summary is being retreived, 2277 2282 * restore this lock (A) */ … … 2295 2300 if (cancel) 2296 2301 camel_operation_unref (cancel); 2302 2303 if (priv->account && TNY_IS_CAMEL_ACCOUNT (priv->account)) { 2304 TnyCamelAccountPriv *apriv = TNY_CAMEL_ACCOUNT_GET_PRIVATE (priv->account); 2305 apriv->getmsg_cancel = NULL; 2306 } 2297 2307 2298 2308 /* To disable parallel getting of messages while summary is being retreived, trunk/tests/c-demo/tny-demoui-summary-view.c
r3304 r3415 1390 1390 1391 1391 1392 1393 static void 1394 cancel_button_clicked (GtkWidget *button, gpointer user_data) 1395 { 1396 TnyDemouiSummaryView *self = user_data; 1397 TnyDemouiSummaryViewPriv *priv = TNY_DEMOUI_SUMMARY_VIEW_GET_PRIVATE (self); 1398 GtkTreeIter iter; 1399 GtkTreeModel *model; 1400 1401 if (gtk_tree_selection_get_selected (priv->mailbox_select, &model, &iter)) 1402 { 1403 gint type; 1404 TnyAccount *account = NULL; 1405 1406 gtk_tree_model_get (model, &iter, 1407 TNY_GTK_FOLDER_STORE_TREE_MODEL_TYPE_COLUMN, 1408 &type, -1); 1409 1410 if (type != TNY_FOLDER_TYPE_ROOT) 1411 { 1412 TnyFolder *folder; 1413 1414 gtk_tree_model_get (model, &iter, 1415 TNY_GTK_FOLDER_STORE_TREE_MODEL_INSTANCE_COLUMN, 1416 &folder, -1); 1417 1418 if (TNY_IS_FOLDER (folder)) 1419 account = tny_folder_get_account (folder); 1420 1421 g_object_unref (folder); 1422 1423 } else { 1424 gtk_tree_model_get (model, &iter, 1425 TNY_GTK_FOLDER_STORE_TREE_MODEL_INSTANCE_COLUMN, 1426 &account, -1); 1427 } 1428 1429 if (account) { 1430 tny_account_cancel (account); 1431 g_object_unref (account); 1432 } 1433 } 1434 } 1435 1436 1392 1437 static void 1393 1438 on_create_folder_activate (GtkMenuItem *mitem, gpointer user_data) … … 1731 1776 TnyPlatformFactory *platfact; 1732 1777 GtkVBox *vbox = GTK_VBOX (self); 1733 GtkWidget *mailbox_sw, *widget ;1778 GtkWidget *mailbox_sw, *widget, *cancel_button; 1734 1779 GtkWidget *header_sw; 1735 1780 GtkCellRenderer *renderer; … … 1753 1798 priv->killacc_button = gtk_button_new_with_label ("Kill account"); 1754 1799 1800 cancel_button = gtk_button_new_with_label ("Cancel"); 1801 1802 1755 1803 priv->current_accounts = NULL; 1756 1804 … … 1760 1808 g_signal_connect (G_OBJECT (priv->poke_button), "clicked", 1761 1809 G_CALLBACK (poke_button_toggled), self); 1810 1811 g_signal_connect (G_OBJECT (cancel_button), "clicked", 1812 G_CALLBACK (cancel_button_clicked), self); 1762 1813 1763 1814 g_signal_connect (G_OBJECT (priv->sync_button), "clicked", … … 1796 1847 gtk_box_pack_start (GTK_BOX (priv->status), priv->sync_button, FALSE, FALSE, 0); 1797 1848 gtk_box_pack_start (GTK_BOX (priv->status), priv->killacc_button, FALSE, FALSE, 0); 1798 1849 gtk_box_pack_start (GTK_BOX (priv->status), cancel_button, FALSE, FALSE, 0); 1850 1851 gtk_widget_show (cancel_button); 1799 1852 gtk_widget_show (priv->online_button); 1800 1853 gtk_widget_show (priv->poke_button);
