X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-text-utils.h;h=4443876684eafae8ea5261c0ab0488fd19def421;hb=3202e152f26d1cd47e4e2d1c03a71ffe308b06ee;hp=3b27aa985bfddd2824f6cc649028b144e32f4877;hpb=d27a0a29347366d5421e7e796eca4655ef0d095a;p=modest diff --git a/src/modest-text-utils.h b/src/modest-text-utils.h index 3b27aa9..4443876 100644 --- a/src/modest-text-utils.h +++ b/src/modest-text-utils.h @@ -435,5 +435,26 @@ gchar * modest_text_utils_label_get_selection (GtkLabel *label); gboolean modest_text_utils_is_forbidden_char (const gchar character, ModestTextUtilsForbiddenCharType type); +/** + * modest_text_utils_buffer_selection_is_valid: + * @buffer: a #GtkTextBuffer + * + * Checks if @buffer contains a valid selection for cut/copy. This means it's + * not empty, and no images are in the selection. + * + * Returns: %TRUE if there's a valid selection, false otherwise. + */ +gboolean modest_text_utils_buffer_selection_is_valid (GtkTextBuffer *buffer); + +/** + * modest_text_utils_escape_mnemonics: + * @text: a string + * + * obtains the representation of text, but escaping mnemonics (we duplicate _) + * + * Returns: a newly allocated string + */ +gchar *modest_text_utils_escape_mnemonics (const gchar *text); + #endif /* __MODEST_TEXT_UTILS_H__ */