aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook/e-book-shell-content.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-11-18 03:10:58 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-11-18 03:10:58 +0800
commit35bc315e87dbc75965a43129615767085012a8bd (patch)
tree9e013ffec7e2f03c4b209aa25834c52803263cad /modules/addressbook/e-book-shell-content.c
parentef498ab03510076d9b4a80f52164032a413ec867 (diff)
downloadgsoc2013-evolution-35bc315e87dbc75965a43129615767085012a8bd.tar.gz
gsoc2013-evolution-35bc315e87dbc75965a43129615767085012a8bd.tar.zst
gsoc2013-evolution-35bc315e87dbc75965a43129615767085012a8bd.zip
Prefer EWebView calls over direct GtkHTML calls.
Diffstat (limited to 'modules/addressbook/e-book-shell-content.c')
-rw-r--r--modules/addressbook/e-book-shell-content.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/addressbook/e-book-shell-content.c b/modules/addressbook/e-book-shell-content.c
index 55b11fca5d..f5b147bf0d 100644
--- a/modules/addressbook/e-book-shell-content.c
+++ b/modules/addressbook/e-book-shell-content.c
@@ -595,23 +595,19 @@ void
e_book_shell_content_clipboard_copy (EBookShellContent *book_shell_content)
{
EAddressbookView *addressbook_view;
- GtkHTML *html;
- gchar *selection;
+ EWebView *web_view;
g_return_if_fail (E_IS_BOOK_SHELL_CONTENT (book_shell_content));
- html = GTK_HTML (book_shell_content->priv->preview);
+ web_view = E_WEB_VIEW (book_shell_content->priv->preview);
addressbook_view =
e_book_shell_content_get_current_view (book_shell_content);
g_return_if_fail (addressbook_view != NULL);
- if (!GTK_WIDGET_HAS_FOCUS (html)) {
+ if (!GTK_WIDGET_HAS_FOCUS (web_view)) {
e_addressbook_view_copy (addressbook_view);
return;
}
- selection = gtk_html_get_selection_html (html, NULL);
- if (selection != NULL)
- gtk_html_copy (html);
- g_free (selection);
+ e_web_view_clipboard_copy (web_view);
}