Hi,

Playing around with Elementary, I found that pasting in the elm_entry
dropped the first character of the pasted string. The first attached
patch fixes this problem.

Also, I found the typo PASSOWRD for the edje entry entry_mode. The
second attached patch corrects this to PASSWORD.

Best regards,

Olof Sjobergh
Index: TMP/st/elementary/src/lib/elm_entry.c
===================================================================
--- TMP/st/elementary/src/lib/elm_entry.c	(revision 37943)
+++ TMP/st/elementary/src/lib/elm_entry.c	(working copy)
@@ -319,23 +319,20 @@ _text_to_mkup(const char *text)
 {
    char *str = NULL;
    int str_len = 0, str_alloc = 0;
-   int ch, pos = 0;
+   int ch, pos = 0, pos2 = 0;
    
    for (;;)
      {
         // FIXME: use evas_string_char_next_get()
-        ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos);
+        pos = pos2;
+        ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos2);
         if (ch <= 0) break;
         if (ch == '\n') str = _str_append(str, "<br>", &str_len, &str_alloc);
         else if (ch == '\t') str = _str_append(str, "<\t>", &str_len, &str_alloc);
         else
           {
-             int pos2;
              char tstr[16];
              
-             pos2 = pos;
-             // FIXME: use evas_string_char_next_get()
-             ch = evas_common_font_utf8_get_next((unsigned char *)(text), &pos2);
              strncpy(tstr, text + pos, pos2 - pos);
              tstr[pos2 - pos] = 0;
              str = _str_append(str, tstr, &str_len, &str_alloc);
Index: TMP/st/elementary/data/themes/default.edc
===================================================================
--- TMP/st/elementary/data/themes/default.edc	(revision 37943)
+++ TMP/st/elementary/data/themes/default.edc	(working copy)
@@ -2942,7 +2942,7 @@ collections {
 	    type: TEXTBLOCK;
 	    mouse_events: 1;
 	    scale: 1;
-	    entry_mode: PASSOWRD;
+	    entry_mode: PASSWORD;
 	    multiline: 0;
 	    source: "elm/entry/selection/default"; // selection under
 	    source4: "elm/entry/cursor/default"; // cursorover
Index: edje/src/bin/edje_cc_handlers.c
===================================================================
--- edje/src/bin/edje_cc_handlers.c	(revision 38026)
+++ edje/src/bin/edje_cc_handlers.c	(working copy)
@@ -2081,7 +2081,7 @@ st_collections_group_parts_part_entry_mode(void)
 			       "NONE", EDJE_ENTRY_EDIT_MODE_NONE,
 			       "PLAIN", EDJE_ENTRY_EDIT_MODE_SELECTABLE,
 			       "EDITABLE", EDJE_ENTRY_EDIT_MODE_EDITABLE,
-			       "PASSOWRD", EDJE_ENTRY_EDIT_MODE_PASSWORD,
+			       "PASSWORD", EDJE_ENTRY_EDIT_MODE_PASSWORD,
 			       NULL);
 }
 
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to