2007-06-25 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 25 Jun 2007 12:26:37 +0000 (12:26 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 25 Jun 2007 12:26:37 +0000 (12:26 +0000)
* libmodest-dbus-client/libmodest-dbus-client.c:
(libmodest_dbus_client_search): Fix the build. Sorry.
* src/modest-ui-actions.c: (modest_ui_actions_on_new_msg),
(reply_forward_cb): Initialize variables to fix the build.

* src/modest-tny-account-store.c:
(modest_tny_account_store_get_tny_account_by): Fix the account URI
comparison (a silly typo) so that email search results can be opened
when there are more than one account.

pmo-trunk-r2398

ChangeLog2
libmodest-dbus-client/libmodest-dbus-client.c
src/modest-tny-account-store.c
src/modest-ui-actions.c

index 7d75478..509aa92 100644 (file)
@@ -1,6 +1,18 @@
 2007-06-25  Murray Cumming  <murrayc@murrayc.com>
 
        * libmodest-dbus-client/libmodest-dbus-client.c:
 2007-06-25  Murray Cumming  <murrayc@murrayc.com>
 
        * libmodest-dbus-client/libmodest-dbus-client.c:
+       (libmodest_dbus_client_search): Fix the build. Sorry.
+       * src/modest-ui-actions.c: (modest_ui_actions_on_new_msg),
+       (reply_forward_cb): Initialize variables to fix the build.
+       
+       * src/modest-tny-account-store.c:
+       (modest_tny_account_store_get_tny_account_by): Fix the account URI 
+       comparison (a silly typo) so that email search results can be opened 
+       when there are more than one account.
+
+2007-06-25  Murray Cumming  <murrayc@murrayc.com>
+
+       * libmodest-dbus-client/libmodest-dbus-client.c:
        (libmodest_dbus_client_search),
        (libmodest_dbus_client_get_folders): Use large timeouts (2 minutes) 
        instead of 1 second, because the search gets folders and messages from 
        (libmodest_dbus_client_search),
        (libmodest_dbus_client_get_folders): Use large timeouts (2 minutes) 
        instead of 1 second, because the search gets folders and messages from 
index 5a6113a..19210d3 100644 (file)
@@ -671,8 +671,6 @@ libmodest_dbus_client_search (osso_context_t          *osso_ctx,
 
        dbus_message_set_auto_start (msg, TRUE);
 
 
        dbus_message_set_auto_start (msg, TRUE);
 
-       dbus_error_init (&err);
-
        /* Use a long timeout (2 minutes) because the search currently 
         * gets folders and messages from the servers. */
        timeout = 120000; //milliseconds.
        /* Use a long timeout (2 minutes) because the search currently 
         * gets folders and messages from the servers. */
        timeout = 120000; //milliseconds.
@@ -682,6 +680,7 @@ libmodest_dbus_client_search (osso_context_t          *osso_ctx,
                __FUNCTION__); */
        /* TODO: Detect the timeout somehow. */
        DBusError err;
                __FUNCTION__); */
        /* TODO: Detect the timeout somehow. */
        DBusError err;
+       dbus_error_init (&err);
        reply = dbus_connection_send_with_reply_and_block (con,
                                                           msg, 
                                                           timeout,
        reply = dbus_connection_send_with_reply_and_block (con,
                                                           msg, 
                                                           timeout,
index 1d4409d..46516ac 100644 (file)
@@ -1127,7 +1127,7 @@ modest_tny_account_store_get_tny_account_by (ModestTnyAccountStore *self,
                }
                
                if (type == MODEST_TNY_ACCOUNT_STORE_QUERY_URL && 
                }
                
                if (type == MODEST_TNY_ACCOUNT_STORE_QUERY_URL && 
-                   tny_account_matches_url_string (TNY_ACCOUNT(cursor->data), val)) {
+                   tny_account_matches_url_string (TNY_ACCOUNT(cursor->data), str)) {
                        account = TNY_ACCOUNT (cursor->data);
                        goto end;
                } else {
                        account = TNY_ACCOUNT (cursor->data);
                        goto end;
                } else {
index 439343f..ada3f99 100644 (file)
@@ -486,7 +486,7 @@ modest_ui_actions_on_smtp_servers (GtkAction *action, ModestWindow *win)
 void
 modest_ui_actions_on_new_msg (GtkAction *action, ModestWindow *win)
 {
 void
 modest_ui_actions_on_new_msg (GtkAction *action, ModestWindow *win)
 {
-       ModestWindow *msg_win;
+       ModestWindow *msg_win = NULL;
        TnyMsg *msg = NULL;
        TnyFolder *folder = NULL;
        gchar *account_name = NULL;
        TnyMsg *msg = NULL;
        TnyFolder *folder = NULL;
        gchar *account_name = NULL;
@@ -785,11 +785,11 @@ reply_forward_cb (ModestMailOperation *mail_op,
 {
        TnyMsg *new_msg;
        ReplyForwardHelper *rf_helper;
 {
        TnyMsg *new_msg;
        ReplyForwardHelper *rf_helper;
-       ModestWindow *msg_win;
+       ModestWindow *msg_win = NULL;
        ModestEditType edit_type;
        ModestEditType edit_type;
-       gchar *from;
+       gchar *from = NULL;
        TnyAccount *account = NULL;
        TnyAccount *account = NULL;
-       ModestWindowMgr *mgr;
+       ModestWindowMgr *mgr = NULL;
        gchar *signature = NULL;
                        
        g_return_if_fail (user_data != NULL);
        gchar *signature = NULL;
                        
        g_return_if_fail (user_data != NULL);