* Renamed on_paste_msg by on_paste
[modest] / src / modest-ui-dimming-rules.c
index 2e639df..9bcf477 100644 (file)
@@ -1001,7 +1001,7 @@ modest_ui_dimming_rules_on_find_msg (ModestWindow *win, gpointer user_data)
 }
 
 gboolean 
-modest_ui_dimming_rules_on_paste_msgs (ModestWindow *win, gpointer user_data)
+modest_ui_dimming_rules_on_paste (ModestWindow *win, gpointer user_data)
 {
        ModestDimmingRule *rule = NULL;
        TnyFolderType types[3];
@@ -1019,12 +1019,16 @@ modest_ui_dimming_rules_on_paste_msgs (ModestWindow *win, gpointer user_data)
        if (!dimmed) {
                dimmed = _clipboard_is_empty (win);
                if (dimmed)
-                       modest_dimming_rule_set_notification (rule, dgettext("hildon-common-strings", "ecoc_ib_edwin_nothing_to_paste"));
+                       modest_dimming_rule_set_notification (rule, 
+                                                             dgettext("hildon-common-strings", 
+                                                                      "ecoc_ib_edwin_nothing_to_paste"));
        }
        if (!dimmed) {
                dimmed = _selected_folder_is_any_of_type (win, types, 3);
                if (dimmed)
-                       modest_dimming_rule_set_notification (rule, dgettext("hildon-common-strings", "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 = !_folder_view_has_focus (win);
@@ -1036,7 +1040,9 @@ modest_ui_dimming_rules_on_paste_msgs (ModestWindow *win, gpointer user_data)
        if (!dimmed) {
                dimmed = _selected_folder_not_writeable (MODEST_MAIN_WINDOW(win));
                if (dimmed) {
-                       modest_dimming_rule_set_notification (rule, dgettext("hildon-common-strings", "ckct_ib_unable_to_paste_here"));
+                       modest_dimming_rule_set_notification (rule, 
+                                                             dgettext("hildon-common-strings", 
+                                                                      "ckct_ib_unable_to_paste_here"));
                }
        }
        if (!dimmed) {