}
-/* this is a hack --> we use the tny_text_buffer_stream to
+/* FIXME: this is a hack --> we use the tny_text_buffer_stream to
* get the message text, then write to gtkhtml 'by hand' */
static gboolean
set_text_message (ModestMsgView *self, TnyMimePart *tny_body, TnyMsg *msg)
}
-gchar *
-modest_msg_view_get_selected_text (ModestMsgView *self)
-{
- ModestMsgViewPrivate *priv;
- gchar *sel;
- GtkWidget *html;
- int len;
- GtkClipboard *clip;
-
- g_return_val_if_fail (self, NULL);
- priv = MODEST_MSG_VIEW_GET_PRIVATE(self);
- html = priv->gtkhtml;
-
- /* I'm sure there is a better way to check for selected text */
- sel = gtk_html_get_selection_html(GTK_HTML(html), &len);
- if (!sel)
- return NULL;
-
- g_free(sel);
-
- clip = gtk_widget_get_clipboard(html, GDK_SELECTION_PRIMARY);
- return gtk_clipboard_wait_for_text(clip);
-}
-
-
void
modest_msg_view_set_message (ModestMsgView *self, TnyMsg *msg)
{
#include <tny-stream.h>
#include <tny-msg.h>
#include <tny-mime-part.h>
-#include <modest-conf.h>
+#include <tny-msg-view.h>
G_BEGIN_DECLS
* */
void modest_msg_view_set_message (ModestMsgView *self, TnyMsg *tny_msg);
-/**
- * modest_msg_view_get_selected_text:
- * @self: a ModestMsgView instance
- *
- * get the user selected part of the message
- *
- * Returns: a newly allocated string of the user's selection or NULL if nothing is selected
- */
-gchar * modest_msg_view_get_selected_text (ModestMsgView *self);
-
G_END_DECLS
#endif /* __MODEST_MSG_VIEW_H__ */