+#ifndef MODEST_TOOLKIT_HILDON2
+static gboolean _folder_is_any_of_type (TnyFolder *folder, TnyFolderType types[], guint ntypes);
+static gboolean _clipboard_is_empty (ModestWindow *win);
+static gboolean _invalid_msg_selected (ModestMainWindow *win, gboolean unique, ModestDimmingRule *rule);
+static gboolean _selected_folder_not_writeable (ModestMainWindow *win, gboolean for_paste);
+static gboolean _selected_folder_not_moveable (ModestMainWindow *win);
+static gboolean _selected_folder_not_renameable (ModestMainWindow *win);
+static gboolean _selected_folder_not_deletable (ModestMainWindow *win);
+static gboolean _selected_folder_is_root (ModestMainWindow *win);
+static gboolean _selected_folder_is_root_or_inbox (ModestMainWindow *win);
+static gboolean _selected_folder_is_empty (ModestMainWindow *win);
+static gboolean _header_view_is_all_selected (ModestMainWindow *win);
+static gboolean _folder_view_has_focus (ModestWindow *win);
+static gboolean _selected_folder_is_same_as_source (ModestWindow *win);
+static gboolean _msg_download_completed (ModestMainWindow *win);
+static gboolean _selected_folder_has_subfolder_with_same_name (ModestWindow *win);
+#endif
+
+#ifndef MODEST_TOOLKIT_HILDON2