aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-21 22:02:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-22 05:56:06 +0800
commitcb97c2dc8fd97b381af048f206333d5e557892ae (patch)
treec2901380e607a3b439abb1bed165344ba8f4fc83 /mail/em-folder-tree.c
parent64fa8ad9c0851e2d5c1e90ac2e75af8d455d9fea (diff)
downloadgsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.gz
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.tar.zst
gsoc2013-evolution-cb97c2dc8fd97b381af048f206333d5e557892ae.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index b9b1173011..e24b7d329b 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -315,7 +315,10 @@ folder_tree_get_folder_info__done (struct _EMFolderTreeGetFolderInfo *m)
return;
}
} else {
- gint fully_loaded = (m->flags & CAMEL_STORE_FOLDER_INFO_RECURSIVE) ? TRUE : FALSE;
+ gint fully_loaded;
+
+ fully_loaded =
+ ((m->flags & CAMEL_STORE_FOLDER_INFO_RECURSIVE) != 0);
do {
if (g_hash_table_lookup (si->full_hash, fi->full_name) == NULL) {
@@ -1787,7 +1790,11 @@ tree_drag_data_delete (GtkWidget *widget,
CamelStore *store;
GtkTreeIter iter;
- if (!priv->drag_row || (src_path = gtk_tree_row_reference_get_path (priv->drag_row)))
+ if (!priv->drag_row)
+ return;
+
+ src_path = gtk_tree_row_reference_get_path (priv->drag_row);
+ if (src_path == NULL)
return;
model = gtk_tree_view_get_model (GTK_TREE_VIEW (folder_tree));
@@ -2190,7 +2197,8 @@ folder_tree_drop_target (EMFolderTree *folder_tree,
if (gtk_tree_path_compare (path, src_path) == 0
|| gtk_tree_path_is_descendant (path, src_path)
|| (gtk_tree_path_is_ancestor (path, src_path)
- && gtk_tree_path_get_depth (path) == gtk_tree_path_get_depth (src_path)-1)) {
+ && gtk_tree_path_get_depth (path) ==
+ gtk_tree_path_get_depth (src_path) - 1)) {
gtk_tree_path_free (src_path);
goto done;
}
lementation with pub/sub supportBas van Kervel2015-12-1414-4/+1919 * cmd, eth, node, rpc, xeth: use single-instance servicesPéter Szilágyi2015-11-272-2/+2 * cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-273-19/+32 * Merge pull request #1666 from obscuren/create-transactionJeffrey Wilcke2015-11-212-7/+61 |\ | * rpc/api, xeth: added signTransaction methodJeffrey Wilcke2015-11-182-7/+61 * | Merge pull request #1917 from obscuren/validator-interfaceJeffrey Wilcke2015-11-191-4/+24 |\ \ | * | core, eth, rpc: split out block validator and state processorJeffrey Wilcke2015-11-181-4/+24 | |/ * / rpc/api: fix #1986, newIdentity autocompletePéter Szilágyi2015-11-181-1/+1 |/ * rpc/api: fix #1972 api regression (nil eth panic) in attachPéter Szilágyi2015-11-062-7/+4 * Merge pull request #1934 from karalabe/polish-protocol-infosJeffrey Wilcke2015-11-042-4/+7 |\ | * eth, p2p, rpc/api: polish protocol info gatheringPéter Szilágyi2015-10-282-4/+7 * | Merge pull request #1948 from bas-vk/rpcfixJeffrey Wilcke2015-11-032-7/+12 |\ \ | * | rpc: return an unsupported error when "pending" was used to create a filterBas van Kervel2015-10-302-7/+12 | |/ * | Merge pull request #1946 from fjl/xeth-oomJeffrey Wilcke2015-10-303-70/+49 |\ \ | * | cmd/utils, rpc/comms: stop XEth when IPC connection endsFelix Lange2015-10-303-70/+49 | |/ * / rpc: fixed params parsing problem which could lead to a panicBas van Kervel2015-10-292-7/+18 |/ * rpc api: eth_getNatSpeczelig2015-10-275-15/+31 * console:zelig2015-10-227-21/+67 * core, eth, trie: fix data races and merge/review issuesPéter Szilágyi2015-10-211-3/+1 * core, eth: receipt chain reconstructionPéter Szilágyi2015-10-191-1/+1 * core: differentiate receipt concensus and storage decodingPéter Szilágyi2015-10-191-2/+2 * core: support inserting pure header chainsPéter Szilágyi2015-10-191-7/+1 * Merge pull request #1869 from Gustav-Simonsson/gpu_minerJeffrey Wilcke2015-10-161-1/+1 |\ | * all: Add GPU mining, disabled by defaultGustav Simonsson2015-10-071-1/+1 * | core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-161-3/+3 * | cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-043-6/+6 * | cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-041-3/+3 |/ * rpc/api: don't crash for unknown blocksFelix Lange2015-09-231-25/+23 * jsre, rpc/api: pull in new web3 and use hex numbersPéter Szilágyi2015-09-152-7/+3 * eth, rpc: standardize the chain sync progress countersPéter Szilágyi2015-09-155-17/+20 * Merge pull request #1797 from karalabe/ensure-ipcpath-existsFelix Lange2015-09-141-1/+6 |\ | * rpc/comms: fix #1795, ensure IPC path exists before bindingPéter Szilágyi2015-09-111-1/+6 * | core: split out TD from database and all internalsPéter Szilágyi2015-09-112-40/+36 |/ * rpc/comms: fix bug attaching the console over httpHector Chu2015-09-071-2/+2 * Merge pull request #1742 from fjl/rpc-receipt-rootFelix Lange2015-08-311-0/+6 |\ | * rpc: add receiptRoot to getBlock* responsesFelix Lange2015-08-291-0/+6 * | Merge pull request #1724 from Gustav-Simonsson/get_workFelix Lange2015-08-293-1/+23 |\ \ | * | Improve error string and remove unneeded else clauseGustav Simonsson2015-08-282-5/+5 | * | rpc: return error code for eth_getWork when no work readyGustav Simonsson2015-08-263-1/+23 * | | rpc/api allow empty passwordBas van Kervel2015-08-282-4/+4 | |/ |/| * | Merge pull request #1718 from caktux/developFelix Lange2015-08-271-0/+1 |\ \ | * | add missing shh_getMessages to RPC mappingscaktux2015-08-261-0/+1 | |/ * | Merge pull request #1721 from bas-vk/console-error-parsingFelix Lange2015-08-272-8/+7 |\ \ | * | bugfix console error handlingBas van Kervel2015-08-262-8/+7 | |/ * / rpc/api - remove personal.deleteAccount from RPC interfaceBas van Kervel2015-08-263-47/+0 |/ * Set ipc channel as user agent clientBas van Kervel2015-08-244-20/+48 * Merge pull request #1694 from obscuren/hide-fdtrackJeffrey Wilcke2015-08-202-6/+2 |\ | * Revert "fdtrack: temporary hack for tracking file descriptor usage"Jeffrey Wilcke2015-08-202-6/+2 * | rpc/comms reconnect ipc client after write errorBas van Kervel2015-08-201-3/+5 |/ * Merge pull request #1675 from obscuren/submithashrate-changeJeffrey Wilcke2015-08-181-2/+2 |\ | * rpc/api: return boolean value for eth_submitHashrateJeffrey Wilcke2015-08-171-2/+2 * | Merge pull request #1673 from karalabe/fix-api-xeth-responsesJeffrey Wilcke2015-08-181-5/+13 |\ \ | * | rpc: update the xeth over RPC API to use the success/failure messagesPéter Szilágyi2015-08-171-5/+13 | |/ * | Merge pull request #1649 from maran/pending_tx_responseJeffrey Wilcke2015-08-171-8/+8 |\ \ | |/ |/| | * rpc/api: format pendingTx response. Fixes #1648Maran2015-08-161-8/+8 * | support for user agentsBas van Kervel2015-08-1215-71/+337 |/ * core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-1/+1 * Merge pull request #1595 from obscuren/extra-dataJeffrey Wilcke2015-08-071-6/+2 |\ | * miner, rpc: added length check for extra dataJeffrey Wilcke2015-08-071-6/+2 * | miner, rpc: added submit hashrate for remote agentsJeffrey Wilcke2015-08-062-0/+41 |/ * fdtrack: temporary hack for tracking file descriptor usageFelix Lange2015-08-042-2/+6 * rpc/comms: use ConnState to track HTTP connectionsFelix Lange2015-08-032-205/+162 * Merge pull request #1461 from bas-vk/eth_resendJeffrey Wilcke2015-08-022-7/+19 |\ | * bugfix, pending transaction was resend with new gas price/limit but not remov...Bas van Kervel2015-07-282-7/+19 * | rpc/api: add missing autocomplete commandsPéter Szilágyi2015-07-311-5/+12 * | rpc: to in Call no longer required. Fixed eth_estimateGasJeffrey Wilcke2015-07-293-8/+4 * | Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-2849-49/+49 |\ \ | * | all: fix license headers one more timeFelix Lange2015-07-2449-49/+49 * | | params: reduce extra data to 32 bytesJeffrey Wilcke2015-07-261-0/+8 |/ / * / all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-2349-196/+196 |/ * added net.versionBas van Kervel2015-07-083-2/+10 * all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1 * all: update license informationFelix Lange2015-07-0749-0/+784 * Merge pull request #1428 from obscuren/coinbase-fixesJeffrey Wilcke2015-07-073-0/+43 |\ | * eth,miner,rpc: set coinbaseJeffrey Wilcke2015-07-071-1/+1 | * cmd,eth,rpc,tests: default coinbaseJeffrey Wilcke2015-07-073-0/+43 * | fix/skip tests, adapt registrar to no contract addresszelig2015-07-071-6/+6 * | rebase with zelig/frontier/registrarBas van Kervel2015-07-071-20/+10 * | corrected input formatters as suggested during reviewBas van Kervel2015-07-076-24/+4 * | fixed web3 formatters mismatchBas van Kervel2015-07-079-174/+73 * | fix js arguments and TestContract passeszelig2015-07-072-17/+19 * | fix sleepBlocks, implement sleepzelig2015-07-073-18/+44 * | add missing method to api/adminzelig2015-07-072-2/+17 * | Registrar and contractInfo handlingzelig2015-07-073-13/+508 * | Registrar and contractInfo handlingzelig2015-07-072-0/+79 |/ * core, eth, rpc: proper gas used. Closes #1417Jeffrey Wilcke2015-07-072-5/+4 * rpc, xeth: fixed returned tx hash & receipt logsJeffrey Wilcke2015-07-061-9/+14 * Add autocomplete support for consoleTaylor Gerring2015-07-061-0/+1 * CleanupTaylor Gerring2015-07-051-4/+4 * Compose additional fieldsTaylor Gerring2015-07-052-5/+18 * Remove redundant functionTaylor Gerring2015-07-051-1/+1 * Rename local variable for clarityTaylor Gerring2015-07-041-2/+2 * Decode full receipt storageTaylor Gerring2015-07-041-2/+4 * Fix hex conversionTaylor Gerring2015-07-041-1/+2 * Initial getTransactionReceipt supportTaylor Gerring2015-07-042-0/+43 * fixed unittest after new implementationBas van Kervel2015-07-031-37/+1 * simplified implementation and improved performanceBas van Kervel2015-07-031-103/+20 * display rpc error in consoleBas van Kervel2015-07-032-13/+15 * prevent discarding requests when parsing failsBas van Kervel2015-07-022-26/+273 * added pipelining supportBas van Kervel2015-07-021-15/+20 * fix logging jsonrpc request #1365ethers2015-07-011-1/+1 * Merge pull request #1328 from bas-vk/issue1327Jeffrey Wilcke2015-06-305-8/+252 |\ | * solved merge conflictsBas van Kervel2015-06-301-9/+0 | |\ | | * initialize fields to prevent nil pointer exceptionBas van Kervel2015-06-291-3/+8 | | * add json parsing method for resend transactionBas van Kervel2015-06-292-2/+76 | | * improved error handling in parsing requestBas van Kervel2015-06-292-2/+8 | | * fixed unittest compilation issueBas van Kervel2015-06-241-2/+3 | | * added eth.resendBas van Kervel2015-06-244-0/+76 | | * added eth.pendingTransactionsBas van Kervel2015-06-244-6/+79 | * | rebase with developBas van Kervel2015-06-302-15/+33 | * | initialize fields to prevent nil pointer exceptionBas van Kervel2015-06-301-3/+8 | * | add json parsing method for resend transactionBas van Kervel2015-06-302-2/+76 | * | improved error handling in parsing requestBas van Kervel2015-06-302-2/+8 | * | fixed unittest compilation issueBas van Kervel2015-06-301-2/+3 | * | added eth.resendBas van Kervel2015-06-304-0/+76 | * | added eth.pendingTransactionsBas van Kervel2015-06-304-6/+79 * | | core: reduce CPU load by reducing calls to checkQueueJeffrey Wilcke2015-06-301-2/+3 |/ / * | core, eth, rpc: avoid unnecessary block header copyingFelix Lange2015-06-301-8/+10 * | rpc: unmask pending block fieldsFelix Lange2015-06-301-8/+0 * | Merge pull request #1321 from karalabe/cut-it-open-3000Jeffrey Wilcke2015-06-254-0/+183 |\ \ | * | cmd/geth, rpc/api: fix reported metrics issuesPéter Szilágyi2015-06-251-15/+12 | * | rpc/api, cmd/geth: retrievel all percentiles, add time unitsPéter Szilágyi2015-06-241-21/+22 | * | cmd/geth, rpc/api: extend metrics API, add a basic monitor commandPéter Szilágyi2015-06-244-32/+148 | * | cmd/geth, rpc/api: move the metrics into the new consolePéter Szilágyi2015-06-242-0/+69 | |/ * | improved logging for IPC connection lifetime managementBas van Kervel2015-06-254-12/+23 * | added IPC timeout supportBas van Kervel2015-06-251-26/+34 * | support for large request/response on windowsunknown2015-06-251-31/+8 * | support for large requests/responsesBas van Kervel2015-06-253-17/+32 * | added support for batch requestsBas van Kervel2015-06-253-21/+78 |/ * bugfix in startRPC error handlingBas van Kervel2015-06-231-4/+4 * fixed eth sign unittestBas van Kervel2015-06-225-9/+27 * added RPC start/stop supportBas van Kervel2015-06-2228-125/+216 * fixed unittestsBas van Kervel2015-06-221-29/+0 * added batch support to console and attach actionsBas van Kervel2015-06-223-26/+26 * moved solidity test to new rpc structureBas van Kervel2015-06-221-0/+110 * added attach over http/rpc supportBas van Kervel2015-06-223-6/+134 * added attach over ipc commandBas van Kervel2015-06-226-10/+128 * cleanup comments/codeBas van Kervel2015-06-222-99/+12 * removed old rpc structure and added new inproc api clientBas van Kervel2015-06-2217-3482/+197 * fixed rpc test failure in eth.blockNumberBas van Kervel2015-06-221-43/+45 * fixed rpc test failure in net_peerCountBas van Kervel2015-06-221-1/+1 * fixed web3 rpc test failuresBas van Kervel2015-06-221-0/+24 * added DB apiBas van Kervel2015-06-226-5/+295 * refactored old rpc structure to newBas van Kervel2015-06-221-0/+4 * added comms httpBas van Kervel2015-06-225-1/+254 * made ipc handler generic and reusableBas van Kervel2015-06-222-28/+39 * Merge pull request #1290 from tgerring/dataargsJeffrey Wilcke2015-06-191-0/+54 |\ | * unit test coverage for NewDataArgsTaylor Gerring2015-06-181-0/+54 * | Merge pull request #1267 from SilentCicero/developJeffrey Wilcke2015-06-195-0/+85 |\| | * New DataArgs and eth_sendRawTransactionSilentCicero2015-06-174-2/+60 | * thanks subtly :)Nick Dodson2015-06-161-1/+1 | * NewSigArgs arg change.Nick Dodson2015-06-161-1/+1 | * Update utils.goNick Dodson2015-06-151-1/+1 | * Update eth.goNick Dodson2015-06-151-1/+1 | * Change eth_pushTx case to eth_sendRawTransactionNick Dodson2015-06-151-1/+1 | * Changed variable namesSilentCicero2015-06-152-8/+2 | * eth_pushTx send raw signed encoded TX data to the chain through RPCSilentCicero2015-06-153-0/+33 * | Merge pull request #1260 from obscuren/tx-drop-low-txJeffrey Wilcke2015-06-162-7/+10 |\ \ | * | rpc/api: fixed default gas-(price) issue.obscuren2015-06-152-7/+10 | |/ * | fixed rpc/api.GasPricezsfelfoldi2015-06-151-1/+1 * | fixed saving receiptszsfelfoldi2015-06-151-1/+1 |/ * fixed incomplete merge actionBas van Kervel2015-06-111-702/+0 * removed obsolete print statementBas van Kervel2015-06-111-86/+0 * upgrade web3.js with _extend supportBas van Kervel2015-06-117-6/+51 * added net APIBas van Kervel2015-06-111-0/+8 * added miner APIBas van Kervel2015-06-111-1/+5 * fixed windows build problemBas van Kervel2015-06-111-0/+702 * changed send methods for backwards compatability in geth consoleBas van Kervel2015-06-111-0/+54 * added console commandBas van Kervel2015-06-114-26/+62 * added API/IPC commandline flagsBas van Kervel2015-06-111-0/+5 * restructured eth rpc APIBas van Kervel2015-06-113-0/+122 * added shh APIBas van Kervel2015-06-116-5/+370 * cleanup of javascript APIBas van Kervel2015-06-119-88/+89 * added txpool APIBas van Kervel2015-06-114-1/+91 * upgrade web3.js with _extend supportBas van Kervel2015-06-115-79/+79 * added admin APIBas van Kervel2015-06-1114-203/+613 * added personal APIBas van Kervel2015-06-115-9/+259 * added debug APIBas van Kervel2015-06-119-712/+980 * added net APIBas van Kervel2015-06-119-11/+141 * added miner APIBas van Kervel2015-06-115-1/+323 * fixed windows build problemBas van Kervel2015-06-111-1/+1 * changed send methods for backwards compatability in geth consoleBas van Kervel2015-06-111-0/+54 * added console commandBas van Kervel2015-06-118-61/+213 * added API/IPC commandline flagsBas van Kervel2015-06-111-0/+5 * added RPC/IPC supportBas van Kervel2015-06-116-1/+887 * restructured eth rpc APIBas van Kervel2015-06-1111-0/+2167 * Updated testTaylor Gerring2015-06-11