Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_filedialog.c ewl_password.c ewl_tree.c ewl_widget.c 


Log Message:
Send event data for a double click.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_filedialog.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- ewl_filedialog.c    9 Dec 2003 23:50:36 -0000       1.18
+++ ewl_filedialog.c    10 Dec 2003 01:24:07 -0000      1.19
@@ -151,13 +151,23 @@
        ewl_widget_show(fd->selector);
 
        od->box = ewl_box_new(EWL_ORIENTATION_HORIZONTAL);
+       ewl_object_set_fill_policy(EWL_OBJECT(od->box), EWL_FLAG_FILL_HFILL |
+                                                       EWL_FLAG_FILL_HSHRINK);
        ewl_box_set_spacing(EWL_BOX(od->box), 4);
        ewl_object_set_padding(EWL_OBJECT(od->box), 10, 10, 10, 10);
+       /*
        ewl_object_set_fill_policy(EWL_OBJECT(od->box), EWL_FLAG_FILL_NONE);
+       */
        ewl_object_set_alignment(EWL_OBJECT(od->box), EWL_FLAG_ALIGN_RIGHT);
        ewl_container_append_child(EWL_CONTAINER(vbox), od->box);
        ewl_widget_show(od->box);
 
+       fd->entry = ewl_entry_new ("");
+       ewl_container_append_child(EWL_CONTAINER(od->box), fd->entry);
+       ewl_callback_append (fd->entry, EWL_CALLBACK_VALUE_CHANGED,
+                       ewl_filedialog_change_path, fd);
+       ewl_widget_show (fd->entry);
+
        od->open = ewl_button_new("Open");
        ewl_object_set_fill_policy(EWL_OBJECT(od->open), EWL_FLAG_FILL_NONE);
        ewl_callback_append(od->open, EWL_CALLBACK_CLICKED, cb, fd->selector);
@@ -173,12 +183,6 @@
 
        fd->dialog = (void *) od;
 
-       fd->entry = ewl_entry_new ("");
-       ewl_container_append_child(EWL_CONTAINER(vbox), fd->entry);
-       ewl_callback_append (fd->entry, EWL_CALLBACK_VALUE_CHANGED,
-                       ewl_filedialog_change_path, fd);
-       ewl_widget_show (fd->entry);
-       
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_password.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_password.c      8 Dec 2003 21:59:44 -0000       1.3
+++ ewl_password.c      10 Dec 2003 01:24:07 -0000      1.4
@@ -128,6 +128,7 @@
 
 /**
  * @param e: set the obscuring character for a passwords text
+ * @param o: the character to obscure the password characters
  * @return Returns no value.
  * @brief Sets the character used to obscure the text for a password.
  */
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_tree.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_tree.c  9 Dec 2003 17:19:49 -0000       1.30
+++ ewl_tree.c  10 Dec 2003 01:24:07 -0000      1.31
@@ -114,6 +114,9 @@
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("tree", tree);
 
+       if (!EWL_CONTAINER(tree)->children)
+               DRETURN(DLEVEL_STABLE);
+
        row = ewd_list_goto_first(EWL_CONTAINER(tree)->children);
        ewd_list_goto_first(EWL_CONTAINER(row)->children);
 
@@ -262,6 +265,7 @@
 void ewl_tree_remove_row(Ewl_Tree *tree, Ewl_Row *row)
 {
        Ewl_Widget *w;
+       Ewl_Container *c;
        Ewl_Tree_Node *node;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
@@ -270,9 +274,12 @@
        DCHECK_PARAM_PTR("row", row);
 
        node = EWL_TREE_NODE(EWL_WIDGET(row)->parent);
+       c = EWL_CONTAINER(row);
 
-       while ((w = ewd_list_goto_first(EWL_CONTAINER(row)->children)))
-               ewl_container_remove_child(EWL_CONTAINER(row), w);
+       if (c->children) {
+               while ((w = ewd_list_goto_first(c->children)))
+                       ewl_container_remove_child(c, w);
+       }
 
        ewl_widget_destroy(EWL_WIDGET(node));
 
@@ -459,6 +466,9 @@
 
        node->expanded = EWL_TREE_NODE_EXPANDED;
 
+       if (!EWL_CONTAINER(node)->children)
+               DRETURN(DLEVEL_STABLE);
+
        ewd_list_goto_first(EWL_CONTAINER(node)->children);
        ewd_list_next(EWL_CONTAINER(node)->children);
 
@@ -485,6 +495,9 @@
                DRETURN(DLEVEL_STABLE);
 
        c = EWL_CONTAINER(w);
+
+       if (!c->children)
+               DRETURN(DLEVEL_STABLE);
 
        ewd_list_goto_first(c->children);
        child = ewd_list_next(c->children);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -3 -r1.91 -r1.92
--- ewl_widget.c        8 Dec 2003 23:13:41 -0000       1.91
+++ ewl_widget.c        10 Dec 2003 01:24:07 -0000      1.92
@@ -1238,7 +1238,8 @@
 
        if (ewl_object_has_state(EWL_OBJECT(w), EWL_FLAG_STATE_HILITED)) {
                ewl_widget_set_state(w, "hilited");
-               ewl_callback_call(w, EWL_CALLBACK_CLICKED);
+               ewl_callback_call_with_event_data(w, EWL_CALLBACK_CLICKED,
+                                                 ev_data);
        } else
                ewl_widget_set_state(w, "normal");
 }




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to