* applied two syntax patches from steve.kowalik@canonical.com for Ubuntu Mobile
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 4 Jan 2008 10:51:39 +0000 (10:51 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Fri, 4 Jan 2008 10:51:39 +0000 (10:51 +0000)
  (apparently, -Wall/-Werror broke compilations with newer gcc's)
* remove the now unused curl echo from configure.ac

pmo-trunk-r3976

configure.ac
src/modest-account-mgr-helpers.c
src/modest-ui-dimming-rules.c

index 6e2b0e1..3c82a60 100644 (file)
@@ -477,7 +477,6 @@ echo "Prefix           : ${prefix}"
 echo "Build tests      : $build_tests"
 echo "Build docs       : $build_docs"
 echo "Gettext Package  : $GETTEXT_PACKAGE"
-echo "libcurl          : $have_libcurl"
 
 if test "x$with_platform" == "xmaemo"; then
    echo "Maemo Launcher   : $maemo_launcher"
index 9004316..eecde23 100644 (file)
@@ -496,25 +496,32 @@ modest_account_mgr_save_server_settings (ModestAccountMgr *self,
 
                has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_HOSTNAME, 
                                                            hostname, TRUE);
-               has_errors || (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_USERNAME,
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_USERNAME,
                                                                           username, TRUE));
-               has_errors || (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PASSWORD,
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PASSWORD,
                                                                           password, TRUE));
-               has_errors || (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PROTO,
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PROTO,
                                                                           protocol, TRUE));
-               has_errors || (has_errors = !modest_account_mgr_set_int (self, account_name, MODEST_ACCOUNT_PORT,
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_int (self, account_name, MODEST_ACCOUNT_PORT,
                                                                        port, TRUE));
-               has_errors || (has_errors = !modest_account_mgr_set_string (self, account_name, 
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_string (self, account_name, 
                                                                           MODEST_ACCOUNT_AUTH_MECH,
                                                                           auth_protocol, TRUE));               
-               has_errors || (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_SECURITY,
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_SECURITY,
                                                                           security,
                                                                           TRUE));
        } else {
                const gchar *uri = modest_server_account_settings_get_uri (settings);
                has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_URI,
                                                            uri, TRUE);
-               has_errors || (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PROTO,
+               if (!has_errors)
+                       (has_errors = !modest_account_mgr_set_string (self, account_name, MODEST_ACCOUNT_PROTO,
                                                                           protocol, TRUE));
        }
 
index 8d58b9c..a4c6df1 100644 (file)
@@ -1809,7 +1809,7 @@ modest_ui_dimming_rules_on_add_to_contacts (ModestWindow *win, gpointer user_dat
                        GtkClipboard *clipboard;
                        if (GTK_IS_HTML (focused)) {
                                const gchar *sel;
-                               guint len = -1;
+                               int len = -1;
                                sel = gtk_html_get_selection_html (GTK_HTML (focused), &len);
                                do_check = !((sel == NULL) || (sel[0] == '\0'));
                        }
@@ -2314,7 +2314,7 @@ _invalid_clipboard_selected (ModestWindow *win,
                                result = !gtk_text_buffer_get_has_selection (buffer);
                        } else if (GTK_IS_HTML (focused)) {
                                const gchar *sel;
-                               guint len = -1;
+                               int len = -1;
                                sel = gtk_html_get_selection_html (GTK_HTML (focused), &len);
                                result = ((sel == NULL) || (sel[0] == '\0'));
                        } else if (MODEST_IS_ATTACHMENTS_VIEW (focused)) {