Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_text.c
Log Message:
- make it possibly to copy selected text easier. this dosen't seem to work
with kde apps (kate specifically) but it does work with eterm and
evolution.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -3 -r1.90 -r1.91
--- ewl_text.c 14 Feb 2006 20:49:21 -0000 1.90
+++ ewl_text.c 14 Feb 2006 21:57:47 -0000 1.91
@@ -3530,6 +3530,25 @@
ewl_text_trigger_length_set(s, idx - base);
}
+ /* XXX this needs to be SOFTWARE_X11 and GL_X11 */
+#ifdef ENABLE_EWL_SOFTWARE_X11
+ if (ewl_config.evas.engine & EWL_ENGINE_X11)
+ {
+ Ewl_Embed *emb;
+ Ewl_Window *win;
+ char *txt;
+
+ emb = ewl_embed_widget_find(EWL_WIDGET(s->text_parent));
+ win = ewl_window_window_find(emb->evas_window);
+
+ /* set the clipboard text */
+ txt = ewl_text_selection_text_get(EWL_TEXT(s->text_parent));
+ if (txt) ecore_x_selection_primary_set(
+ (Ecore_X_Window)win->window,
+ txt, strlen(txt) + 1);
+ }
+#endif
+
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs