* Change save_settings call of main and viewer windows to
[modest] / src / modest-ui-dimming-rules.c
index c050f68..7ebd97d 100644 (file)
@@ -717,12 +717,12 @@ modest_ui_dimming_rules_on_paste_msgs (ModestWindow *win, gpointer user_data)
        if (!dimmed) {
                dimmed = _selected_folder_is_any_of_type (win, types, 3);
                if (dimmed)
-                       modest_dimming_rule_set_notification (rule, _("ckct_ib_unable_to_paste_here"));
+                       modest_dimming_rule_set_notification (rule, dgettext("hildon-common-strings", "ckct_ib_unable_to_paste_here"));
        }
        if (!dimmed) {
                dimmed = _selected_folder_not_writeable (MODEST_MAIN_WINDOW(win));
                if (dimmed) {
-                       modest_dimming_rule_set_notification (rule, _("ckct_ib_unable_to_paste_here"));
+                       modest_dimming_rule_set_notification (rule, dgettext("hildon-common-strings", "ckct_ib_unable_to_paste_here"));
                }
        }
        if (!dimmed) {
@@ -1070,7 +1070,7 @@ modest_ui_dimming_rules_on_add_to_contacts (ModestWindow *win, gpointer user_dat
                gchar *selection = NULL;
                selection = gtk_clipboard_wait_for_text (clipboard);
 
-               dimmed = !((selection != NULL) && (modest_text_utils_validate_recipient (selection)));
+               dimmed = !((selection != NULL) && (modest_text_utils_validate_recipient (selection, NULL)));
        }
 
        return dimmed;
@@ -1365,7 +1365,7 @@ _selected_folder_is_snd_level (ModestMainWindow *win)
        GtkTreeModel *model = NULL;
        GtkTreePath *path = NULL;
        GtkTreeIter iter;
-       TnyFolderStore *folder = NULL;
+       TnyFolderStore *folder = NULL;
        gboolean result = FALSE;
 
        g_return_val_if_fail (MODEST_IS_MAIN_WINDOW(win), TRUE);
@@ -1393,7 +1393,7 @@ _selected_folder_is_snd_level (ModestMainWindow *win)
  frees:
        if (folder != NULL)
                g_object_unref (folder);
-       if (path != NULL) 
+       if (path != NULL)
                gtk_tree_path_free (path);
        
        return result;
@@ -1438,7 +1438,7 @@ _invalid_clipboard_selected (ModestWindow *win,
                          (MODEST_IS_ATTACHMENTS_VIEW (focused)));
                
                if (result)
-                       modest_dimming_rule_set_notification (rule, _(""));                     
+                       modest_dimming_rule_set_notification (rule, "");
        }               
        else if (MODEST_IS_MAIN_WINDOW (win)) {
                GtkWidget *header_view = NULL;