X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-msg-view.c;h=77bbc2b5818621115145e605227005e5f1634230;hb=7270a288479fe35fc30b521af30815ad8338d6c4;hp=5b6d5ac48545e4f5956c5cbd8c612915e9f8feec;hpb=b28cabc5878650bce571a5d548b4224878c151c7;p=modest diff --git a/src/widgets/modest-msg-view.c b/src/widgets/modest-msg-view.c index 5b6d5ac..77bbc2b 100644 --- a/src/widgets/modest-msg-view.c +++ b/src/widgets/modest-msg-view.c @@ -418,7 +418,7 @@ set_html_message (ModestMsgView *self, TnyMimePart *tny_body, TnyMsg *msg) } -/* 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) @@ -489,31 +489,6 @@ set_empty_message (ModestMsgView *self) } -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) {