[Commits] fancy_viewer.c 1.1.2.51 1.1.2.52
iwkse at claws-mail.org
iwkse at claws-mail.org
Sun Dec 18 04:33:57 CET 2011
Update of /home/claws-mail/plugins/fancy/src
In directory claws-mail:/tmp/cvs-serv1217/src
Modified Files:
Tag: gtk2
fancy_viewer.c
Log Message:
2011-12-18 [iwkse] 0.9.15cvs1
* src/fancy_viewer.c
Remove redundant #ifdef
thanks to Stéphane Goujet
Index: fancy_viewer.c
===================================================================
RCS file: /home/claws-mail/plugins/fancy/src/Attic/fancy_viewer.c,v
retrieving revision 1.1.2.51
retrieving revision 1.1.2.52
diff -u -d -r1.1.2.51 -r1.1.2.52
--- fancy_viewer.c 14 Dec 2011 11:17:00 -0000 1.1.2.51
+++ fancy_viewer.c 18 Dec 2011 03:33:55 -0000 1.1.2.52
@@ -976,19 +976,7 @@
if (webkit_web_view_can_copy_clipboard(view)) {
GtkClipboard *wv_clipboard = gtk_clipboard_get(GDK_SELECTION_PRIMARY);
const gchar *sel_text;
-#if WEBKIT_CHECK_VERSION(1,5,1)
- viewer->doc = webkit_web_view_get_dom_document(WEBKIT_WEB_VIEW(viewer->view));
- viewer->window = webkit_dom_document_get_default_view (viewer->doc);
- viewer->selection = webkit_dom_dom_window_get_selection (viewer->window);
- if (viewer->selection == NULL)
- return NULL;
- viewer->range = webkit_dom_dom_selection_get_range_at(viewer->selection, 0, NULL);
- if (viewer->range == NULL)
- return NULL;
- sel_text = (const *gchar)webkit_dom_range_get_text (viewer->range);
-#else
sel_text = (const *gchar)webkit_web_view_get_selected_text(viewer->view);
-#endif
gtk_clipboard_set_text(wv_clipboard, sel_text, -1);
}
return FALSE;
More information about the Commits
mailing list