After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678313 - Improve copy/pasting with Adium themes
Improve copy/pasting with Adium themes
Status: RESOLVED OBSOLETE
Product: empathy
Classification: Core
Component: Chat themes
2.33.x
Other Linux
: Normal enhancement
: 3.8
Assigned To: empathy-maint
empathy-maint
: 674861 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-06-18 12:37 UTC by Guillaume Desmottes
Modified: 2018-05-22 15:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
set custom selection color in default themes (2.05 KB, patch)
2012-09-17 10:55 UTC, Guillaume Desmottes
none Details | Review

Description Guillaume Desmottes 2012-06-18 12:37:48 UTC
Atm we just use webkit_web_view_copy_clipboard() when copying chat from an Adium theme which doesn't copy something very useful with most themes. It would be good to do something smarter, if possible, and save the logs in a more IRC way:

<Alice> Oh hi
<Bob> Hey what's up?
etc

But I don't know if that's possible with WebKit.
Comment 1 Gustavo Noronha (kov) 2012-06-18 13:14:36 UTC
That would be great indeed! What you can do is use the GObject DOM bindings to poke at the DOM and fetch/manipulate the text data. Unfortunately the DOM bindings do not have documentation generated, so you need to rely on looking at the headers and/or generated files. The entry point is here:

http://webkitgtk.org/reference/webkitgtk/unstable/webkitgtk-webkitwebview.html#webkit-web-view-get-dom-document

Then look at the WebKitDOM* headers and use a DOM API reference to guide you, I guess. There is some usage of DOM bindings inside Epiphany that you can use too. window.getSelection() (so webkit_dom_dom_window_get_selection()) seems to be  the first step.
Comment 2 Guillaume Desmottes 2012-09-17 07:35:19 UTC
*** Bug 674861 has been marked as a duplicate of this bug. ***
Comment 3 Guillaume Desmottes 2012-09-17 10:55:43 UTC
Created attachment 224489 [details] [review]
set custom selection color in default themes

Ensure that we actually see the text being selected.
Comment 4 Guillaume Desmottes 2012-09-17 10:56:33 UTC
Comment on attachment 224489 [details] [review]
set custom selection color in default themes

wrong bug
Comment 5 GNOME Infrastructure Team 2018-05-22 15:35:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/empathy/issues/559.