summaryrefslogtreecommitdiff
path: root/src/lib/ethumb
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 01:35:58 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-14 01:35:58 +0000
commitc42971cd273b31ce9ec55206eb7d178ffd3f8c88 (patch)
treefb3c512d2d9ba67816f2ff5a00728e13a92ab796 /src/lib/ethumb
parent070cce20e78722ee5615d34521a8397772c3e7f3 (diff)
fix minor ethumb errors.
SVN revision: 82741
Diffstat (limited to 'src/lib/ethumb')
-rw-r--r--src/lib/ethumb/client/ethumb_client.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/ethumb/client/ethumb_client.c b/src/lib/ethumb/client/ethumb_client.c
index 0cc7722808..cfe04887cf 100644
--- a/src/lib/ethumb/client/ethumb_client.c
+++ b/src/lib/ethumb/client/ethumb_client.c
@@ -301,6 +301,11 @@ _ethumb_client_report_connect(Ethumb_Client *client, Eina_Bool success)
301 return; 301 return;
302 } 302 }
303 303
304 if (success)
305 INF("Success connecting to Ethumb server.");
306 else
307 ERR("Could not connect to Ethumb server.");
308
304 client->connect.cb(client->connect.data, client, success); 309 client->connect.cb(client->connect.data, client, success);
305 if (client->connect.free_data) 310 if (client->connect.free_data)
306 { 311 {
@@ -322,6 +327,7 @@ _ethumb_client_new_cb(void *data, const EDBus_Message *msg, EDBus_Pending *pendi
322 if (edbus_message_error_get(msg, &errname, &errmsg)) 327 if (edbus_message_error_get(msg, &errname, &errmsg))
323 { 328 {
324 ERR("Error: %s %s", errname, errmsg); 329 ERR("Error: %s %s", errname, errmsg);
330 _ethumb_client_report_connect(client, 0);
325 return; 331 return;
326 } 332 }
327 333
@@ -625,7 +631,7 @@ _ethumb_client_ethumb_setup_cb(void *data EINA_UNUSED, const EDBus_Message *msg,
625 631
626 if (edbus_message_error_get(msg, &errname, &errmsg)) 632 if (edbus_message_error_get(msg, &errname, &errmsg))
627 { 633 {
628 ERR("Error: %s %s\n", errname, errmsg); 634 ERR("Error: %s %s", errname, errmsg);
629 return; 635 return;
630 } 636 }
631 637
@@ -888,10 +894,9 @@ _ethumb_client_queue_add_cb(void *data, const EDBus_Message *msg, EDBus_Pending
888 894
889 client->pending_add = eina_list_remove(client->pending_add, pending); 895 client->pending_add = eina_list_remove(client->pending_add, pending);
890 896
891 //in case of error or when user cancel
892 if (edbus_message_error_get(msg, &errname, &errmsg)) 897 if (edbus_message_error_get(msg, &errname, &errmsg))
893 { 898 {
894 ERR("Error: %s %s\n", errname, errmsg); 899 ERR("Error: %s %s", errname, errmsg);
895 goto end; 900 goto end;
896 } 901 }
897 902
@@ -965,7 +970,7 @@ _ethumb_client_queue_add(Ethumb_Client *client, const char *file, const char *ke
965static void 970static void
966_ethumb_client_queue_remove_cb(void *data, const EDBus_Message *msg, EDBus_Pending *edbus_pending EINA_UNUSED) 971_ethumb_client_queue_remove_cb(void *data, const EDBus_Message *msg, EDBus_Pending *edbus_pending EINA_UNUSED)
967{ 972{
968 Eina_Bool success; 973 Eina_Bool success = EINA_FALSE;
969 struct _ethumb_pending_remove *pending = data; 974 struct _ethumb_pending_remove *pending = data;
970 Ethumb_Client *client = pending->client; 975 Ethumb_Client *client = pending->client;
971 const char *errname, *errmsg; 976 const char *errname, *errmsg;
@@ -974,7 +979,7 @@ _ethumb_client_queue_remove_cb(void *data, const EDBus_Message *msg, EDBus_Pendi
974 979
975 if (edbus_message_error_get(msg, &errname, &errmsg)) 980 if (edbus_message_error_get(msg, &errname, &errmsg))
976 { 981 {
977 ERR("Error: %s %s\n", errname, errmsg); 982 ERR("Error: %s %s", errname, errmsg);
978 goto end; 983 goto end;
979 } 984 }
980 985