Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_entry.c 


Log Message:
update the selection on double click

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_entry.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- e_entry.c   21 Apr 2007 12:46:58 -0000      1.37
+++ e_entry.c   22 Apr 2007 04:40:40 -0000      1.38
@@ -319,7 +319,10 @@
    if (event->button == 1)
      {
         if (event->flags & EVAS_BUTTON_DOUBLE_CLICK)
-          e_editable_select_all(sd->editable_object);
+         {
+            e_editable_select_all(sd->editable_object);
+            _e_entry_x_selection_update(obj);
+         }
         else
           {
              e_editable_cursor_pos_set(sd->editable_object, pos);
@@ -535,11 +538,11 @@
    start_pos = (cursor_pos <= selection_pos) ? cursor_pos : selection_pos;
    end_pos = (cursor_pos >= selection_pos) ? cursor_pos : selection_pos;
    selecting = (start_pos != end_pos);
-   
+  
    if ((!selecting) ||
        (!(text = e_editable_text_range_get(editable, start_pos, end_pos))))
      return;
-   
+  
    ecore_x_selection_primary_set(win->evas_win, text, strlen(text) + 1);
    free(text);
 }



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to