Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_entry.c ewl_object.c ewl_object.h ewl_spectrum.c 


Log Message:
Minor documentation updates, fix some of the cursor problems with the entry,
need to use a different theme so you can see the text still.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_entry.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- ewl_entry.c 29 Sep 2003 21:46:50 -0000      1.67
+++ ewl_entry.c 16 Oct 2003 07:05:09 -0000      1.68
@@ -73,6 +73,7 @@
                        __ewl_entry_child_resize, NULL);
        ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FLAG_FILL_HSHRINK |
                        EWL_FLAG_FILL_HFILL);
+       ewl_container_intercept_callback(EWL_CONTAINER(w), EWL_CALLBACK_SELECT);
 
        e->text = ewl_text_new(text);
        ewl_container_append_child(EWL_CONTAINER(e), e->text);
@@ -109,15 +110,11 @@
  */
 void ewl_entry_set_text(Ewl_Entry * e, char *t)
 {
-       int pos;
-
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("e", e);
 
        ewl_text_set_text(EWL_TEXT(e->text), t);
-
-       pos = ewl_text_get_length(EWL_TEXT(e->text)) + 1;
-       ewl_cursor_set_base(EWL_CURSOR(e->cursor), pos);
+       ewl_cursor_set_base(EWL_CURSOR(e->cursor), 1);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -234,9 +231,9 @@
        }
 
        /*
-        * Scroll the text to fit the contents.
+        * Scroll the text to fit the cursor position.
         */
-       if ((c_spos == base) && ((ex + ew) > (int)(xx + ww))) {
+       if ((c_spos == base) && ((int)(ex + ew) > (int)(xx + ww))) {
                dx -= (int)((ex + ew) - (xx + ww));
        }
        else if ((c_epos == base) && (sx < xx)) {
@@ -523,6 +520,7 @@
        strcat(s3, &(s2[ep - 1]));
 
        ewl_entry_set_text(EWL_ENTRY(w), s3);
+       ewl_cursor_set_base(EWL_CURSOR(e->cursor), ep);
 
        FREE(s2);
        FREE(s3);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_object.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- ewl_object.c        8 Oct 2003 21:42:18 -0000       1.44
+++ ewl_object.c        16 Oct 2003 07:05:10 -0000      1.45
@@ -1247,7 +1247,7 @@
 
 /**
  * @param o: the object to remove specified state flags
- * @param state: a bitmask of state flags to be removed from the object
+ * @param flags: a bitmask of flags to be removed from the object
  * @param mask: a bitmask limiting removed flags to a certain set
  * @return Returns no value.
  * @brief Removes the set of state flags specified in @a flags from @a o.
@@ -1280,6 +1280,7 @@
 /**
  * @param o: the object to check for a specified flags
  * @param flags: the bitmask of flags to check on the object
+ * @param mask: get only the flags specified in mask
  * @return Returns TRUE if the specified flags are set, FALSE otherwise.
  * @brief Determines if an object has the requested @a flags set.
  */
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_object.h,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -3 -r1.33 -r1.34
--- ewl_object.h        29 Sep 2003 21:46:51 -0000      1.33
+++ ewl_object.h        16 Oct 2003 07:05:10 -0000      1.34
@@ -5,6 +5,8 @@
  * @defgroup Ewl_Object Basic Object Inherited by Ewl_Widget
  * @brief Defines the Ewl_Object class along with methods and macros related
  * to it.
+ *
+ * @{
  */
 
 /**
@@ -200,7 +202,7 @@
 /**
  * @def ewl_object_set_recursive(o)
  * @param o: the object to change the recursive flag
- * @val: a boolean indicating the value of the recursive flag
+ * @param val: a boolean indicating the value of the recursive flag
  * @return Returns no value.
  * @brief Changes the recursive flag value to match @a val.
  */
@@ -223,7 +225,7 @@
 /**
  * @def ewl_object_set_toplevel(o, val)
  * @param o: the object to change the top level flag
- * @val: a boolean indicating the value of the top level flag
+ * @param val: a boolean indicating the value of the top level flag
  * @return Returns no value.
  * @brief Changes the top level flag value to match @a val.
  */
@@ -346,5 +348,9 @@
  * Used to determine if a widget is hidden.
  */
 #define HIDDEN(o) (!(EWL_OBJECT(o)->flags & EWL_FLAG_VISIBLE_SHOWN))
+
+/**
+ * @}
+ */
 
 #endif                         /* __EWL_OBJECT_H__ */
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_spectrum.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ewl_spectrum.c      23 May 2003 22:10:15 -0000      1.1
+++ ewl_spectrum.c      16 Oct 2003 07:05:10 -0000      1.2
@@ -11,7 +11,6 @@
                            int *_g, int *_b);
 
 void            __draw_spectrum(Ewl_Spectrum * sp);
-int             __ewl_spectrum_idler(void *data);
 
 /**
  *




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to