Enlightenment CVS committal

Author  : fletch3k
Project : misc
Module  : enotes

Dir     : misc/enotes/src


Modified Files:
        note.c note.h saveload.c saveload.h settings.c settings.h 


Log Message:
Embed Fixes

===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- note.c      29 Apr 2004 16:20:19 -0000      1.14
+++ note.c      5 May 2004 18:59:26 -0000       1.15
@@ -202,11 +202,15 @@
 
        evas_object_show(p->eo);
 
+
        p->vbox = ewl_vbox_new();
        ewl_object_set_fill_policy((Ewl_Object *) p->vbox, EWL_FLAG_FILL_FILL);
        ewl_container_append_child((Ewl_Container *) p->emb, p->vbox);
        ewl_widget_show(p->vbox);
 
+       ewl_callback_append(p->emb, EWL_CALLBACK_CONFIGURE, note_move_embed,
+                           p->vbox);
+
        p->title = ewl_entry_new(title);
        ewl_container_append_child((Ewl_Container *) p->vbox, p->title);
        ewl_widget_show(p->title);
@@ -506,3 +510,15 @@
 {
        return (evas_list_prev(note));
 }
+
+/**
+ * @param w: The widget to size according to the embed.
+ * @params ev_data and user_data: Callback info.
+ * @brief: Moves embed contents to correct location.
+ */
+void
+note_move_embed(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+       ewl_object_request_geometry(EWL_OBJECT(user_data), CURRENT_X(w),
+                                   CURRENT_Y(w), CURRENT_W(w), CURRENT_H(w));
+}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- note.h      19 Feb 2004 18:12:57 -0000      1.5
+++ note.h      5 May 2004 18:59:26 -0000       1.6
@@ -88,6 +88,7 @@
 char           *get_date_string(void);
 int             note_edje_close_timer(void *p);
 int             timer_val_compare(void *data);
+void            note_move_embed(Ewl_Widget * w, void *ev_data, void *user_data);
 
 
 /* External Interaction */
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/saveload.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- saveload.c  11 Mar 2004 17:28:58 -0000      1.8
+++ saveload.c  5 May 2004 18:59:26 -0000       1.9
@@ -88,6 +88,9 @@
                                   EWL_FLAG_FILL_FILL);
        ewl_widget_show(saveload->vbox);
 
+       ewl_callback_append(saveload->emb, EWL_CALLBACK_CONFIGURE,
+                           save_and_load_move_embed, saveload->vbox);
+
        saveload->tree = ewl_tree_new(1);
        ewl_container_append_child((Ewl_Container *) saveload->vbox,
                                   saveload->tree);
@@ -410,6 +413,9 @@
                                   EWL_FLAG_FILL_FILL);
        ewl_widget_show(load->vbox);
 
+       ewl_callback_append(load->emb, EWL_CALLBACK_CONFIGURE,
+                           save_and_load_move_embed, load->vbox);
+
        load->tree = ewl_tree_new(1);
        ewl_container_append_child((Ewl_Container *) load->vbox, load->tree);
        ewl_object_set_fill_policy((Ewl_Object *) load->tree,
@@ -657,3 +663,15 @@
        ewl_load_revert(NULL, NULL, NULL);
        return;
 }
+
+/**
+ * @param w: The widget to size according to the embed.
+ * @params ev_data and user_data: Callback info.
+ * @brief: Moves embed contents to correct location.
+ */
+void
+save_and_load_move_embed(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+       ewl_object_request_geometry(EWL_OBJECT(user_data), CURRENT_X(w),
+                                   CURRENT_Y(w), CURRENT_W(w), CURRENT_H(w));
+}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/saveload.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- saveload.h  19 Feb 2004 18:12:57 -0000      1.6
+++ saveload.h  5 May 2004 18:59:26 -0000       1.7
@@ -111,5 +111,9 @@
 void            ewl_load_listitem_click(Ewl_Widget * o, void *ev_data,
                                        void *null);
 
+/** BOTH **/
+void            save_and_load_move_embed(Ewl_Widget * w, void *ev_data,
+                                        void *user_data);
+
 
 #endif
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/settings.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- settings.c  11 Mar 2004 17:28:58 -0000      1.6
+++ settings.c  5 May 2004 18:59:26 -0000       1.7
@@ -78,6 +78,9 @@
        ewl_object_set_fill_policy((Ewl_Object *) s->vbox, EWL_FLAG_FILL_FILL);
        ewl_widget_show(s->vbox);
 
+       ewl_callback_append(s->emb, EWL_CALLBACK_CONFIGURE, settings_move_embed,
+                           s->vbox);
+
        s->tree = ewl_tree_new(2);
        ewl_container_append_child((Ewl_Container *) s->vbox, s->tree);
        ewl_object_set_fill_policy((Ewl_Object *) s->tree, EWL_FLAG_FILL_FILL);
@@ -338,3 +341,15 @@
        free(locfn);
        return;
 }
+
+/**
+ * @param w: The widget to size according to the embed.
+ * @params ev_data and user_data: Callback info.
+ * @brief: Moves embed contents to correct location.
+ */
+void
+settings_move_embed(Ewl_Widget * w, void *ev_data, void *user_data)
+{
+       ewl_object_request_geometry(EWL_OBJECT(user_data), CURRENT_X(w),
+                                   CURRENT_Y(w), CURRENT_W(w), CURRENT_H(w));
+}
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/settings.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- settings.h  17 Feb 2004 12:07:28 -0000      1.5
+++ settings.h  5 May 2004 18:59:26 -0000       1.6
@@ -60,6 +60,8 @@
 void            fill_tree(void);
 void            settings_setup_button(Ewl_Widget * c, Ewl_Widget ** b,
                                      char *label);
+void            settings_move_embed(Ewl_Widget * w, void *ev_data,
+                                   void *user_data);
 
 /* Setting up the Options */
 Settings_Opt    setup_settings_opt(Ewl_Widget * tree, char *caption,




-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to