E CVS: libs/ewl pfritz

2008-08-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text_context.c 


Log Message:
fix context_hash_cmp

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_context.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_text_context.c  28 Jun 2008 10:11:27 -  1.13
+++ ewl_text_context.c  11 Aug 2008 12:15:32 -  1.14
@@ -537,7 +537,7 @@
 
 DENTER_FUNCTION(DLEVEL_STABLE);
 
-#define KEY_BUILD(c) (c.r | c.g | c.b | c.a)
+#define KEY_BUILD(c) ((c.r  24) | (c.g  16) | (c.b  8) | c.a)
 #define KEY_COMPARE(k1, k2) if (k1  k2) goto CTX1_LARGER; else if (k2  k1) 
goto CTX2_LARGER;
 
 KEY_COMPARE(ecore_str_compare(tx1-font, tx2-font), 0);



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text_trigger.h 


Log Message:
area_add and area_clean_up are meant to be internal

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_trigger.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_text_trigger.h  30 Jul 2008 21:43:54 -  1.11
+++ ewl_text_trigger.h  11 Aug 2008 12:32:19 -  1.12
@@ -73,14 +73,13 @@
 unsigned int char_len);
 unsigned int ewl_text_trigger_length_get(Ewl_Text_Trigger *t);
 
-void ewl_text_trigger_area_add(Ewl_Text *t,
-Ewl_Text_Trigger *cur,
-int x, int y, int w, int h);
-void ewl_text_trigger_areas_cleanup(Ewl_Text_Trigger 
*trig);
-
 /*
  * Internal stuff
  */
+void ewl_text_trigger_area_add(Ewl_Text *t, Ewl_Text_Trigger *cur,
+int x, int y, int w, int h);
+void ewl_text_trigger_areas_cleanup(Ewl_Text_Trigger *trig);
+
 void ewl_text_trigger_cb_show(Ewl_Widget *w, void *ev, void *data);
 void ewl_text_trigger_cb_hide(Ewl_Widget *w, void *ev, void *data);
 void ewl_text_trigger_cb_unrealize(Ewl_Widget *w, void *ev, void *data);



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text.c ewl_text_trigger.c 


Log Message:
- attach the mouse pointer of the trigger to its areas
- forward the click event to the trigger
- only warn if trigger are really overlapping

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.208
retrieving revision 1.209
diff -u -3 -r1.208 -r1.209
--- ewl_text.c  8 Aug 2008 00:37:34 -   1.208
+++ ewl_text.c  11 Aug 2008 13:22:32 -  1.209
@@ -4139,14 +4139,14 @@
 {
 if (trigger-char_pos  cur-char_pos)
 {
-if ((trigger-char_pos + trigger-char_len)  
cur-char_pos)
-break;
+if ((trigger-char_pos + trigger-char_len) = 
cur-char_pos)
+continue;
 
 DWARNING(Overlapping triggers are not allowed.);
 DRETURN(DLEVEL_STABLE);
 }
 
-if ((trigger-char_pos  (cur-char_pos + cur-char_len)))
+if ((trigger-char_pos = (cur-char_pos + cur-char_len)))
 continue;
 
 if ((trigger-char_pos = cur-char_pos)
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_trigger.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_text_trigger.c  30 Jul 2008 21:43:54 -  1.15
+++ ewl_text_trigger.c  11 Aug 2008 13:22:32 -  1.16
@@ -53,6 +53,8 @@
 void *data);
 static void ewl_text_trigger_area_cb_mouse_down(Ewl_Widget *w, void *ev,
 void *data);
+static void ewl_text_trigger_area_cb_clicked(Ewl_Widget *w, void *ev,
+void *data);
 
 /**
  * @param type: The type of trigger to create
@@ -295,6 +297,8 @@
 ewl_text_trigger_area_type_set(EWL_TEXT_TRIGGER_AREA(area), cur-type);
 ewl_object_geometry_request(EWL_OBJECT(area), x, y, w, h);
 EWL_TEXT_TRIGGER_AREA(area)-trigger = cur;
+/* attach the pointer of the trigger to the area */
+ewl_attach_mouse_cursor_set(area, ewl_attach_mouse_cursor_get(cur));
 
 ewl_widget_show(area);
 
@@ -465,6 +469,8 @@
 ewl_text_trigger_area_cb_mouse_down, NULL);
 ewl_callback_append(w, EWL_CALLBACK_MOUSE_UP,
 ewl_text_trigger_area_cb_mouse_up, NULL);
+ewl_callback_append(w, EWL_CALLBACK_CLICKED,
+ewl_text_trigger_area_cb_clicked, NULL);
 
 DRETURN_INT(TRUE, DLEVEL_STABLE);
 }
@@ -646,4 +652,31 @@
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
+
+/**
+ * @internal
+ * @param w: the area
+ * @param ev: The event data
+ * @param data: UNUSED
+ * @return Returns no value
+ * @brief The trigger clicked callback
+ */
+void
+ewl_text_trigger_area_cb_clicked(Ewl_Widget *w, void *ev,
+void *data __UNUSED__)
+{
+Ewl_Text_Trigger_Area *a;
+
+DENTER_FUNCTION(DLEVEL_STABLE);
+DCHECK_PARAM_PTR(w);
+DCHECK_TYPE(w, EWL_TEXT_TRIGGER_AREA_TYPE);
+
+a = EWL_TEXT_TRIGGER_AREA(w);
+if (a-trigger)
+ewl_callback_call_with_event_data(EWL_WIDGET(a-trigger),
+EWL_CALLBACK_CLICKED, ev);
+
+DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
Ewl.h Makefile.am 
Added Files:
ewl_message.c ewl_message.h 


Log Message:
add ewl_message, an convienice class for message dialogs

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/Ewl.h,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- Ewl.h   14 Jul 2008 20:24:18 -  1.43
+++ Ewl.h   7 Aug 2008 22:04:34 -   1.44
@@ -41,6 +41,7 @@
 #include ewl_floater.h
 #include ewl_dialog.h
 #include ewl_icondialog.h
+#include ewl_message.h
 #include ewl_popup.h
 
 #include ewl_text.h
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/Makefile.am,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- Makefile.am 14 Jul 2008 20:24:18 -  1.67
+++ Makefile.am 7 Aug 2008 22:04:34 -   1.68
@@ -64,6 +64,7 @@
ewl_menu.h \
ewl_menubar.h \
ewl_menu_item.h \
+   ewl_message.h \
ewl_misc.h \
ewl_model.h \
ewl_mvc.h \
@@ -147,6 +148,7 @@
ewl_menu.c \
ewl_menubar.c \
ewl_menu_item.c \
+   ewl_message.c \
ewl_misc.c \
ewl_model.c \
ewl_mvc.c \



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text.c 


Log Message:
obscure selected text also in the clipboard, thanks to Sachiel

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.207
retrieving revision 1.208
diff -u -3 -r1.207 -r1.208
--- ewl_text.c  5 Aug 2008 21:04:14 -   1.207
+++ ewl_text.c  8 Aug 2008 00:37:34 -   1.208
@@ -3673,6 +3673,7 @@
 static void
 ewl_text_selection_select_to(Ewl_Text_Trigger *s, unsigned int char_idx)
 {
+Ewl_Text *t;
 unsigned int start_pos;
 unsigned int base;
 char *txt;
@@ -3681,6 +3682,7 @@
 DCHECK_PARAM_PTR(s);
 DCHECK_TYPE(s, EWL_TEXT_TRIGGER_TYPE);
 
+t = EWL_TEXT(s-text_parent);
 base = ewl_text_trigger_base_get(s);
 start_pos = ewl_text_trigger_start_pos_get(s);
 
@@ -3695,13 +3697,30 @@
 ewl_text_trigger_length_set(s, char_idx - base);
 }
 
+if (t-obscure)
+{
+char *ptr;
+unsigned int obs_len, len, i;
+
+len = ewl_text_trigger_length_get(s);
+obs_len = strlen(t-obscure);
+txt = ptr = malloc((obs_len * len) + 1);
+for(i = 0; i  len; i++)
+{
+memcpy(ptr, t-obscure, obs_len);
+ptr += obs_len;
+}
+*ptr = '\0';
+}
+else
+txt = ewl_text_selection_text_get(t);
+
 /* set the clipboard text */
-txt = ewl_text_selection_text_get(EWL_TEXT(s-text_parent));
 if (txt)
 {
 Ewl_Embed *emb;
 
-emb = ewl_embed_widget_find(EWL_WIDGET(s-text_parent));
+emb = ewl_embed_widget_find(EWL_WIDGET(t));
 ewl_embed_selection_text_set(emb, txt);
 FREE(txt);
 }



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/widget


Modified Files:
ewl_widget_test.c 


Log Message:
add layer priority unit test

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/widget/ewl_widget_test.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_widget_test.c   4 Aug 2008 22:45:51 -   1.10
+++ ewl_widget_test.c   5 Aug 2008 12:00:12 -   1.11
@@ -32,6 +32,7 @@
 static int internal_test_set_get(char *buf, int len);
 static int unmanaged_test_set_get(char *buf, int len);
 static int toplayered_test_set_get(char *buf, int len);
+static int layer_priority_test_set_get(char *buf, int len);
 static int clipped_test_set_get(char *buf, int len);
 static int data_test_set_get(char *buf, int len);
 static int data_test_set_remove(char *buf, int len);
@@ -72,6 +73,7 @@
 {widget internal set/get, internal_test_set_get, NULL, -1, 
0},
 {widget unmanaged set/get, unmanaged_test_set_get, NULL, -1, 
0},
 {widget layer top set/get, toplayered_test_set_get, NULL, 
-1, 0},
+{widget layer priority set/get, layer_priority_test_set_get, 
NULL, -1, 0},
 {widget clipped set/get, clipped_test_set_get, NULL, -1, 0},
 {widget data set/get, data_test_set_get, NULL, -1, 0},
 {widget data set/remove, data_test_set_remove, NULL, -1, 0},
@@ -370,6 +372,41 @@
 
 return ret;
 }
+
+/*
+ * Verify that the layer priortiy of a widget is set properly after changing
+ * it.
+ */
+static int
+layer_priority_test_set_get(char *buf, int len)
+{
+Ewl_Widget *w;
+int ret = 0;
+
+w = ewl_widget_new();
+
+if (ewl_widget_layer_priority_get(w) == 0)
+{
+ewl_widget_layer_priority_set(w, 10);
+if (ewl_widget_layer_priority_get(w) == 10)
+{
+ewl_widget_layer_priority_set(w, -20);
+if (ewl_widget_layer_priority_get(w) == -20)
+ret = 1;
+else
+LOG_FAILURE(buf, len, layer priority is not
+ -20);
+}
+else
+LOG_FAILURE(buf, len, layer priority is not 10);
+}
+else
+LOG_FAILURE(buf, len, layer priority is unequal zero 
+after widget_init);
+
+return ret;
+}
+
 
 /*
  * Verify that the clipped flag on a widget is set properly after changing



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_container.c 


Log Message:
add container_new()

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_container.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -3 -r1.77 -r1.78
--- ewl_container.c 5 Aug 2008 08:41:19 -   1.77
+++ ewl_container.c 5 Aug 2008 19:30:12 -   1.78
@@ -13,6 +13,33 @@
 static int ewl_container_child_count_get_helper(Ewl_Container *c, int skip);
 
 /**
+ * @return Returns a newly allocated container on success, NULL on failure.
+ * @brief Allocate a new container.
+ *
+ * Do not use this function unless you know what you are doing! It is only
+ * intended to easily create custom container. It doesn't manage the children.
+ */
+Ewl_Widget *
+ewl_container_new(void)
+{
+Ewl_Container *c;
+
+DENTER_FUNCTION(DLEVEL_STABLE);
+
+c = NEW(Ewl_Container, 1);
+if (!c)
+DRETURN_PTR(NULL, DLEVEL_STABLE);
+
+if (!ewl_container_init(c)) {
+FREE(c);
+c = NULL;
+}
+
+DRETURN_PTR(EWL_WIDGET(c), DLEVEL_STABLE);
+}
+
+
+/**
  * @param c: the container to initialize
  * @return Returns TRUE on success, otherwise FALSE.
  * @brief Initialize a containers default fields and callbacks



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_container.h 


Log Message:
and make it public

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_container.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- ewl_container.h 5 Jul 2008 18:03:53 -   1.40
+++ ewl_container.h 5 Aug 2008 19:30:39 -   1.41
@@ -107,6 +107,7 @@
 Ewl_Container_Iterator iterator; /** Function to find next child */
 };
 
+Ewl_Widget  *ewl_container_new(void);
 int  ewl_container_init(Ewl_Container *container);
 
 void ewl_container_add_notify_set(Ewl_Container *container,



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-05 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_tree.c ewl_text.c ewl_scrollpane.c ewl_image.c 
ewl_filepicker.c ewl_filelist_view.c ewl_container.c 


Log Message:
warnings--

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -3 -r1.75 -r1.76
--- ewl_tree.c  29 Jul 2008 02:31:47 -  1.75
+++ ewl_tree.c  5 Aug 2008 21:04:14 -   1.76
@@ -217,7 +217,7 @@
 void
 ewl_tree_column_count_set(Ewl_Tree *tree, unsigned int count)
 {
-int i;
+unsigned int i;
 
 DENTER_FUNCTION(DLEVEL_STABLE);
 DCHECK_PARAM_PTR(tree);
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -3 -r1.206 -r1.207
--- ewl_text.c  30 Jul 2008 21:43:54 -  1.206
+++ ewl_text.c  5 Aug 2008 21:04:14 -   1.207
@@ -3034,7 +3034,7 @@
 {
 char *otxt, *ptr;
 size_t len;
-int i;
+size_t i;
 
 len = strlen(t-obscure);
 otxt = alloca(len * node-char_len + 1);
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_scrollpane.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- ewl_scrollpane.c11 Jun 2008 23:04:45 -  1.42
+++ ewl_scrollpane.c5 Aug 2008 21:04:14 -   1.43
@@ -1054,7 +1054,8 @@
  * @brief The mouse move callback for kinetic scrolling
  */
 static void
-ewl_scrollpane_cb_mouse_move_embedded(Ewl_Widget *w, void *ev, void *data)
+ewl_scrollpane_cb_mouse_move_embedded(Ewl_Widget *w __UNUSED__, void *ev, 
+void *data)
 {
 Ewl_Scrollpane *s;
 Ewl_Event_Mouse *mm;
@@ -1097,7 +1098,8 @@
  * @brief The mouse up callback for kinetic scrolling
  */
 static void
-ewl_scrollpane_cb_mouse_up_normal(Ewl_Widget *w, void *ev, void *data)
+ewl_scrollpane_cb_mouse_up_normal(Ewl_Widget *w __UNUSED__, void *ev 
__UNUSED__,
+ void *data)
 {
 Ewl_Scrollpane *s;
 
@@ -1119,7 +1121,8 @@
  * @brief The mouse up callback for kinetic scrolling
  */
 static void
-ewl_scrollpane_cb_mouse_up_embedded(Ewl_Widget *w, void *ev, void *data)
+ewl_scrollpane_cb_mouse_up_embedded(Ewl_Widget *w __UNUSED__, 
+void *ev __UNUSED__, void *data)
 {
 Ewl_Scrollpane *s;
 Ewl_Event_Mouse *mm;
@@ -1505,7 +1508,8 @@
  * @brief Frees data from the scrollpane
  */
 void
-ewl_scrollpane_cb_destroy(Ewl_Widget *w, void *ev, void *data)
+ewl_scrollpane_cb_destroy(Ewl_Widget *w, void *ev __UNUSED__,
+void *data __UNUSED__)
 {
 DENTER_FUNCTION(DLEVEL_STABLE);
 DCHECK_PARAM_PTR(w);
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_image.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- ewl_image.c 7 May 2008 13:38:23 -   1.74
+++ ewl_image.c 5 Aug 2008 21:04:14 -   1.75
@@ -651,7 +651,8 @@
 
 #ifdef BUILD_EPSILON_SUPPORT
 static void
-ewl_image_thumbnail_cb_value_changed(Ewl_Widget *w, void *ev, void *data)
+ewl_image_thumbnail_cb_value_changed(Ewl_Widget *w, void *ev __UNUSED__
+, void *data)
 {
 Ewl_Widget *thumb;
 Ewl_Widget *image;
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filepicker.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- ewl_filepicker.c11 Jun 2008 23:04:45 -  1.54
+++ ewl_filepicker.c5 Aug 2008 21:04:14 -   1.55
@@ -1171,7 +1171,7 @@
 }
 
 static void
-ewl_filepicker_cb_dir_new(Ewl_Widget *w, void *ev,
+ewl_filepicker_cb_dir_new(Ewl_Widget *w, void *ev __UNUSED__,
 void *data)
 {
 Ewl_Widget *d;
@@ -1238,7 +1238,7 @@
 }
 
 static void
-ewl_filepicker_cb_dialog_delete(Ewl_Widget *w, void *ev,
+ewl_filepicker_cb_dialog_delete(Ewl_Widget *w, void *ev __UNUSED__,
 void *data)
 {
 DENTER_FUNCTION(DLEVEL_STABLE);
@@ -1253,7 +1253,7 @@
 }
 
 static void
-ewl_filepicker_cb_dialog_response(Ewl_Widget *w, void *ev,
+ewl_filepicker_cb_dialog_response(Ewl_Widget *w, void *ev __UNUSED__,
 void *data)
 {
 Ewl_Filepicker_Dialog *resp;
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_filelist_view.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 

E CVS: libs/ewl pfritz

2008-08-04 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_widget.h ewl_widget.c ewl_enums.h 


Log Message:
use a flag for unmanaged and toplayered

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.h,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -3 -r1.75 -r1.76
--- ewl_widget.h26 Jul 2008 22:11:22 -  1.75
+++ ewl_widget.h4 Aug 2008 22:45:44 -   1.76
@@ -154,14 +154,9 @@
 const char *inheritance;  /** Inheritance of path widget */
 int layer;/** the layer relative to the parent */
 
-Ecore_Hash *theme; /** Overriding theme settings */
-Ewl_Pair_List theme_text;/** Overriding text in theme */
-unsigned int flags;   /** the widget flags */
-
-unsigned char toplayered:1;/** Indicates if the widget should
-be on the top of the layer stack */
-unsigned char unmanaged:1;
-
+Ecore_Hash *theme;  /** Overriding theme settings */
+Ewl_Pair_List theme_text;   /** Overriding text in theme */
+unsigned int flags; /** the widget flags */
 };
 
 Ewl_Widget  *ewl_widget_new(void);
@@ -505,7 +500,8 @@
 
 
 
-#define UNMANAGED(w) (((const Ewl_Widget *)(w))-unmanaged)
+#define UNMANAGED(w) (EWL_WIDGET(w)-flags  EWL_FLAG_PROPERTY_UNMANAGED)
+#define TOPLAYERED(w) (EWL_WIDGET(w)-flags  EWL_FLAG_PROPERTY_TOPLAYERED)
 
 /*
  * Internally used callbacks, override at your own risk.
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -3 -r1.168 -r1.169
--- ewl_widget.c26 Jul 2008 22:11:22 -  1.168
+++ ewl_widget.c4 Aug 2008 22:45:51 -   1.169
@@ -1197,10 +1197,15 @@
 DCHECK_PARAM_PTR(w);
 DCHECK_TYPE(w, EWL_WIDGET_TYPE);
 
-if (w-toplayered == top)
+if (!!TOPLAYERED(w) == !!top)
 DRETURN(DLEVEL_STABLE);
 
-w-toplayered = top;
+if (top)
+ewl_widget_flags_add(w, EWL_FLAG_PROPERTY_TOPLAYERED,
+EWL_FLAGS_PROPERTY_MASK);
+else
+ewl_widget_flags_remove(w, EWL_FLAG_PROPERTY_TOPLAYERED,
+EWL_FLAGS_PROPERTY_MASK);
 
 if (REALIZED(w)) {
 ewl_widget_layer_stack_add(w);
@@ -1223,7 +1228,7 @@
 DCHECK_PARAM_PTR_RET(w, FALSE);
 DCHECK_TYPE_RET(w, EWL_WIDGET_TYPE, 0);
 
-DRETURN_INT(w-toplayered, DLEVEL_STABLE);
+DRETURN_INT(TOPLAYERED(w), DLEVEL_STABLE);
 }
 
 /**
@@ -1642,7 +1647,13 @@
 of a widget that has already a parent!\n);
 DRETURN(DLEVEL_STABLE);
 }
-w-unmanaged = !!val;
+
+if (val)
+ewl_widget_flags_add(w, EWL_FLAG_PROPERTY_UNMANAGED,
+EWL_FLAGS_PROPERTY_MASK);
+else
+ewl_widget_flags_remove(w, EWL_FLAG_PROPERTY_UNMANAGED,
+EWL_FLAGS_PROPERTY_MASK);
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -2129,7 +2140,7 @@
 if (w-parent  !REVEALED(w-parent))
 DRETURN(DLEVEL_STABLE);
 
-if (w-parent  !w-toplayered)
+if (w-parent  !TOPLAYERED(w))
 smart_parent = w-parent-smart_object;
 else {
 Ewl_Embed *emb;
@@ -2166,7 +2177,7 @@
 DRETURN(DLEVEL_STABLE);
 
 /* check first if the widget should be on the top */
-if (w-toplayered)
+if (TOPLAYERED(w))
 {
 evas_object_raise(w-smart_object);
 DRETURN(DLEVEL_STABLE);
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_enums.h,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -3 -r1.92 -r1.93
--- ewl_enums.h 3 Jul 2008 08:35:59 -   1.92
+++ ewl_enums.h 4 Aug 2008 22:45:51 -   1.93
@@ -159,36 +159,38 @@
 /*
  * Behavior modifying properties.
  */
-EWL_FLAG_PROPERTY_RECURSIVE   = 0x10,  /** Widget is recursive */
-EWL_FLAG_PROPERTY_TOPLEVEL= 0x20,  /** Widget is a top level 
widget */
-EWL_FLAG_PROPERTY_INTERNAL= 0x40,  /** Widget is internal */
-EWL_FLAG_PROPERTY_BLOCK_TAB_FOCUS = 0x80,  /** Widget will block tab 
focus changes */
-EWL_FLAG_PROPERTY_FOCUSABLE   = 0x100, /** Widget is focusable */
-EWL_FLAG_PROPERTY_IN_TAB_LIST = 0x200, /** Widget is in the tab 
order */
-EWL_FLAG_PROPERTY_DND_TARGET  = 0x400, /** Widget is DND aware */
-EWL_FLAG_PROPERTY_DND_SOURCE

E CVS: libs/ewl pfritz

2008-08-04 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/evas


Modified Files:
ewl_engine_evas.c 


Log Message:
use a flag for unmanaged and toplayered

===
RCS file: /cvs/e/e17/libs/ewl/src/engines/evas/ewl_engine_evas.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_engine_evas.c   7 May 2008 13:38:21 -   1.23
+++ ewl_engine_evas.c   4 Aug 2008 22:45:51 -   1.24
@@ -227,7 +227,7 @@
 DRETURN(DLEVEL_STABLE);
 
 
-if (w-parent  !w-toplayered)
+if (w-parent  !TOPLAYERED(w))
 smart_parent = w-parent-smart_object;
 else {
 Ewl_Embed *emb;
@@ -264,7 +264,7 @@
 DRETURN(DLEVEL_STABLE);
 
 /* check first if the widget should be on the top */
-if (w-toplayered)
+if (TOPLAYERED(w))
 {
 evas_object_raise(w-smart_object);
 DRETURN(DLEVEL_STABLE);



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-04 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/config


Modified Files:
ewl_config_test.c 


Log Message:
stupid cnp error

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/config/ewl_config_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_config_test.c   7 May 2008 13:38:15 -   1.5
+++ ewl_config_test.c   4 Aug 2008 23:02:20 -   1.6
@@ -311,8 +311,8 @@
 float v = rand();
 float v_r;
 
-ewl_config_int_set(conf, test key, v, EWL_STATE_TRANSIENT);
-v_r = ewl_config_int_get(conf, test key);
+ewl_config_float_set(conf, test key, v, EWL_STATE_TRANSIENT);
+v_r = ewl_config_float_get(conf, test key);
 
 if (v_r != v) {
 LOG_FAILURE(buf, len, The returned float is different



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/entry


Modified Files:
ewl_entry_test.c 


Log Message:
add button to select the whole text of the first entry

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/entry/ewl_entry_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_entry_test.c28 Jul 2008 00:47:49 -  1.6
+++ ewl_entry_test.c3 Aug 2008 15:32:01 -   1.7
@@ -67,12 +67,19 @@
 ewl_text_text_set(EWL_TEXT(entry[2]), Not more than 30 characters);
 }
 
+static void
+select_entry_text(Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__,
+void *user_data __UNUSED__)
+{
+ewl_text_all_select(EWL_TEXT(entry[0]));
+ewl_widget_focus_send(entry[0]);
+}
+
 static int
 create_test(Ewl_Container *box)
 {
 Ewl_Widget *entry_box;
 Ewl_Widget *button_hbox, *o;
-Ewl_Widget *button[2];
 
 /*
  * Create the main box for holding the widgets
@@ -114,28 +121,25 @@
 ewl_box_spacing_set(EWL_BOX(button_hbox), 5);
 ewl_widget_show(button_hbox);
 
-button[0] = ewl_button_new();
-ewl_button_label_set(EWL_BUTTON(button[0]), Fetch text);
-ewl_container_child_append(EWL_CONTAINER(button_hbox), button[0]);
-ewl_callback_append(button[0], EWL_CALLBACK_CLICKED,
+o = ewl_button_new();
+ewl_button_label_set(EWL_BUTTON(o), Fetch text);
+ewl_container_child_append(EWL_CONTAINER(button_hbox), o);
+ewl_callback_append(o, EWL_CALLBACK_CLICKED,
 fetch_entry_text, NULL);
-ewl_widget_show(button[0]);
-
-button[1] = ewl_button_new();
-ewl_button_label_set(EWL_BUTTON(button[1]), Set Text);
-ewl_container_child_append(EWL_CONTAINER(button_hbox), button[1]);
-ewl_callback_append(button[1], EWL_CALLBACK_CLICKED,
-set_entry_text, NULL);
-ewl_widget_show(button[1]);
+ewl_widget_show(o);
 
-o = ewl_label_new();
-ewl_label_text_set(EWL_LABEL(o), Text insert \\);
+o = ewl_button_new();
+ewl_button_label_set(EWL_BUTTON(o), Set Text);
 ewl_container_child_append(EWL_CONTAINER(button_hbox), o);
+ewl_callback_append(o, EWL_CALLBACK_CLICKED,
+set_entry_text, NULL);
 ewl_widget_show(o);
 
-o = ewl_text_new();
-ewl_text_text_set(EWL_TEXT(o), );
+o = ewl_button_new();
+ewl_button_label_set(EWL_BUTTON(o), Select All);
 ewl_container_child_append(EWL_CONTAINER(button_hbox), o);
+ewl_callback_append(o, EWL_CALLBACK_CLICKED,
+select_entry_text, NULL);
 ewl_widget_show(o);
 
 return 1;



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-08-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_entry.c 


Log Message:
only remove the selection if we are going to insert a character

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -3 -r1.92 -r1.93
--- ewl_entry.c 13 Jul 2008 00:05:41 -  1.92
+++ ewl_entry.c 3 Aug 2008 16:09:35 -   1.93
@@ -448,12 +448,12 @@
 
ewl_entry_cursor_position_get(EWL_ENTRY_CURSOR(e-cursor)));
 }
 }
-else if (!(event-modifiers  EWL_KEY_MODIFIER_CTRL))
+else if (!(event-modifiers  EWL_KEY_MODIFIER_CTRL)
+ ((strlen(event-keyname) == 1) 
+|| (*event-keyname  0)))
 {
 ewl_entry_selection_clear(e);
-
-if ((strlen(event-keyname) == 1) || (*event-keyname  0))
-ewl_text_text_insert(EWL_TEXT(e), event-keyname,
+ewl_text_text_insert(EWL_TEXT(e), event-keyname,
 ewl_entry_cursor_position_get(
 EWL_ENTRY_CURSOR(e-cursor)));
 }



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_colorpicker.c 


Log Message:
add comment

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_colorpicker.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -3 -r1.49 -r1.50
--- ewl_colorpicker.c   11 Jun 2008 23:04:45 -  1.49
+++ ewl_colorpicker.c   27 Jul 2008 23:23:17 -  1.50
@@ -165,6 +165,7 @@
 ewl_container_child_append(EWL_CONTAINER(hbox), o);
 ewl_spectrum_type_set(EWL_SPECTRUM(o), EWL_SPECTRUM_TYPE_VERTICAL);
 ewl_spectrum_rgb_set(EWL_SPECTRUM(o), r, g, b);
+/* XXX this shouldn't be hard coded */
 ewl_object_minimum_size_set(EWL_OBJECT(o), 15, 150);
 ewl_object_maximum_size_set(EWL_OBJECT(o), 15, EWL_OBJECT_MAX_SIZE);
 ewl_object_padding_set(EWL_OBJECT(o), 2, 2, 2, 2);



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/entry


Modified Files:
ewl_entry_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/entry/ewl_entry_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_entry_test.c7 May 2008 13:38:15 -   1.5
+++ ewl_entry_test.c28 Jul 2008 00:47:49 -  1.6
@@ -7,11 +7,20 @@
 
 #include stdio.h
 #include stdlib.h
+#include string.h
 
 static Ewl_Widget *entry[3];
 
 static int create_test(Ewl_Container *box);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test entry_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
 void
 test_info(Ewl_Test *test)
 {
@@ -21,6 +30,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_SIMPLE;
+test-unit_tests = entry_unit_tests;
 }
 
 static void
@@ -131,4 +141,41 @@
 return 1;
 }
 
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *e;
+int ret = 0;
+
+e = ewl_entry_new();
+
+if (!EWL_ENTRY_IS(e))
+{
+LOG_FAILURE(buf, len, returned widget is not of the type
+  EWL_ENTRY_TYPE);
+goto DONE;
+}
+if (ewl_object_fill_policy_get(EWL_OBJECT(e)) != (EWL_FLAG_FILL_HSHRINK
+| EWL_FLAG_FILL_HFILL))
+{
+LOG_FAILURE(buf, len, default fill policy is wrong);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(e), EWL_ENTRY_TYPE))
+{
+LOG_FAILURE(buf, len, appearance is not  EWL_ENTRY_TYPE);
+goto DONE;
+}
+if (!ewl_widget_focusable_get(e))
+{
+LOG_FAILURE(buf, len, entry is not focusable);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(e);
+
+return ret;
+}
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/combo


Modified Files:
ewl_combo_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/combo/ewl_combo_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_combo_test.c7 May 2008 13:38:15 -   1.5
+++ ewl_combo_test.c28 Jul 2008 00:47:49 -  1.6
@@ -35,6 +35,14 @@
 unsigned int row,
 unsigned int col);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test combo_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
 void
 test_info(Ewl_Test *test)
 {
@@ -45,6 +53,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_MISC;
+test-unit_tests = combo_unit_tests;
 }
 
 static int
@@ -349,5 +358,32 @@
 void *data __UNUSED__)
 {
 printf(value changed to (%s)\n, ewl_text_text_get(EWL_TEXT(w)));
+}
+
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+
+c = ewl_combo_new();
+
+if (!EWL_COMBO_IS(c))
+{
+LOG_FAILURE(buf, len, returned widget is not of the type 
+EWL_COMBO_TYPE);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(c), EWL_COMBO_TYPE))
+{
+LOG_FAILURE(buf, len, combo has a wrong appearance);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
 }
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/container


Modified Files:
ewl_container_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/container/ewl_container_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_container_test.c7 May 2008 13:38:15 -   1.3
+++ ewl_container_test.c28 Jul 2008 00:47:49 -  1.4
@@ -2,13 +2,17 @@
 #include Ewl_Test.h
 #include ewl_test_private.h
 #include ewl_button.h
+#include ewl_macros.h
 #include stdio.h
 #include string.h
 #include stdlib.h
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
 static int switch_parents(char *buf, int len);
 
 static Ewl_Unit_Test container_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
 {switch parents, switch_parents, NULL, -1, 0},
 {NULL, NULL, NULL, -1, 0}
 };
@@ -21,6 +25,34 @@
 test-filename = __FILE__;
 test-type = EWL_TEST_TYPE_UNIT;
 test-unit_tests = container_unit_tests;
+}
+
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+
+c = NEW(Ewl_Container, 1);
+ewl_container_init(EWL_CONTAINER(c));
+
+if (!EWL_CONTAINER_IS(c))
+{
+LOG_FAILURE(buf, len, returned widget is not of the type
+  EWL_CONTAINER_TYPE);
+goto DONE;
+}
+if (!ewl_widget_recursive_get(c))
+{
+LOG_FAILURE(buf, len, container is not recrusive);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
 }
 
 static int



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/datepicker


Modified Files:
ewl_datepicker_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/datepicker/ewl_datepicker_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_datepicker_test.c   6 May 2008 20:09:03 -   1.2
+++ ewl_datepicker_test.c   28 Jul 2008 00:47:49 -  1.3
@@ -3,9 +3,18 @@
 #include ewl_test_private.h
 #include ewl_datepicker.h
 #include stdio.h
+#include string.h
 
 static int create_test(Ewl_Container *win);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test datepicker_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
 void
 test_info(Ewl_Test *test)
 {
@@ -14,6 +23,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_MISC;
+test-unit_tests = datepicker_unit_tests;
 }
 
 static int
@@ -26,5 +36,39 @@
 ewl_widget_show(datepicker);
 
 return 1;
+}
+
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+
+c = ewl_datepicker_new();
+
+if (!EWL_DATEPICKER_IS(c))
+{
+LOG_FAILURE(buf, len, returned widget is not of the type
+  EWL_DATEPICKER_TYPE);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(c), EWL_DATEPICKER_TYPE))
+{
+LOG_FAILURE(buf, len, datepicker has not the appearance
+  EWL_DATEPICKER_TYPE);
+goto DONE;
+}
+if (ewl_object_fill_policy_get(EWL_OBJECT(c)) != EWL_FLAG_FILL_NONE)
+{
+LOG_FAILURE(buf, len, returned datepicker has wrong fill 
+policy);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
 }
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/colorpicker


Modified Files:
ewl_colorpicker_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/colorpicker/ewl_colorpicker_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_colorpicker_test.c  7 May 2008 13:38:15 -   1.4
+++ ewl_colorpicker_test.c  28 Jul 2008 00:47:49 -  1.5
@@ -8,6 +8,14 @@
 static int create_test(Ewl_Container *box);
 static void color_value_changed(Ewl_Widget *w, void *ev, void *data);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test colorpicker_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
 void
 test_info(Ewl_Test *test)
 {
@@ -16,6 +24,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_MISC;
+test-unit_tests = colorpicker_unit_tests;
 }
 
 static int
@@ -41,4 +50,39 @@
 printf(value changed to (%u, %u, %u)\n, r, g, b);
 }
 
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+unsigned int r, g, b;
+
+c = ewl_colorpicker_new();
+
+if (!EWL_COLORPICKER_IS(c))
+{
+LOG_FAILURE(buf, len, returned color picker is not of the 
type
+  EWL_COLORPICKER_TYPE);
+goto DONE;
+}
+if (!ewl_colorpicker_color_mode_get(EWL_COLORPICKER(c)) 
+== EWL_COLOR_MODE_HSV_HUE)
+{
+LOG_FAILURE(buf, len, colorpicker's color mode differs);
+goto DONE;
+}
+ewl_colorpicker_current_rgb_get(EWL_COLORPICKER(c), r, g, b);
+if (r != 0 || g != 0 || b != 0)
+{
+LOG_FAILURE(buf, len, colorpicker's color is not black);
+goto DONE;
+}
+
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
+}
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/colordialog


Modified Files:
ewl_colordialog_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/colordialog/ewl_colordialog_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_colordialog_test.c  7 May 2008 13:38:15 -   1.4
+++ ewl_colordialog_test.c  28 Jul 2008 00:47:49 -  1.5
@@ -4,12 +4,23 @@
 #include ewl_button.h
 #include ewl_colordialog.h
 #include stdlib.h
+#include string.h
+#include stdio.h
 
 static int create_test(Ewl_Container *win);
 static void colordialog_cb_launch(Ewl_Widget *w, void *ev, void *data);
 static void colordialog_cb_value_changed(Ewl_Widget *w, void *ev,
 void *data);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test colordialog_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
+
 void
 test_info(Ewl_Test *test)
 {
@@ -18,6 +29,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_ADVANCED;
+test-unit_tests = colordialog_unit_tests;
 }
 
 static int
@@ -80,4 +92,45 @@
 ewl_widget_show(o);
 }
 
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+
+c = ewl_colordialog_new();
+
+if (!EWL_COLORDIALOG_IS(c))
+{
+LOG_FAILURE(buf, len, returned color dialog is not of the 
type
+  EWL_COLORDIALOG_TYPE);
+goto DONE;
+}
+if (!!strcmp(ewl_window_title_get(EWL_WINDOW(c)), Ewl Colordialog))
+{
+LOG_FAILURE(buf, len, window title is not Ewl Colordialog);
+goto DONE;
+}
+if (!!strcmp(ewl_window_name_get(EWL_WINDOW(c)), Ewl Colordialog))
+{
+LOG_FAILURE(buf, len, window name is not Ewl Colordialog);
+goto DONE;
+}
+if (!!strcmp(ewl_window_title_get(EWL_WINDOW(c)), Ewl Colordialog))
+{
+LOG_FAILURE(buf, len, window group is not Ewl Colordialog);
+goto DONE;
+}
+if (!ewl_colordialog_has_alpha_get(EWL_COLORDIALOG(c)))
+{
+LOG_FAILURE(buf, len, colordialog has no alpha channel);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
+}
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/dialog


Modified Files:
ewl_dialog_test.c 


Log Message:
add more constructure unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/dialog/ewl_dialog_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_dialog_test.c   7 May 2008 13:38:15 -   1.3
+++ ewl_dialog_test.c   28 Jul 2008 00:47:49 -  1.4
@@ -10,12 +10,21 @@
 #include ewl_label.h
 #include ewl_text.h
 #include stdio.h
+#include string.h
 
 static int create_test(Ewl_Container *box);
 static void dialog_response_cb(Ewl_Widget *w, void *ev, void *data);
 static void run_dialog(Ewl_Widget *w, void *ev, void *data);
 static void dialog_delete_cb(Ewl_Widget *w, void *ev, void *data);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test dialog_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
 void
 test_info(Ewl_Test *test)
 {
@@ -24,6 +33,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_ADVANCED;
+test-unit_tests = dialog_unit_tests;
 }
 
 static int
@@ -184,4 +194,31 @@
 ewl_widget_destroy(w);
 }
 
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+
+c = ewl_dialog_new();
+
+if (!EWL_DIALOG_IS(c))
+{
+LOG_FAILURE(buf, len, returned dialog is not of the type
+  EWL_DIALOG_TYPE);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(c), EWL_DIALOG_TYPE))
+{
+LOG_FAILURE(buf, len, the dialog's appearance differs to 
+EWL_DIALOG_TYPE);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
+}
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-26 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_widget.c ewl_widget.h ewl_box.c 


Log Message:
*API BREAK*, don't return a copy

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -3 -r1.167 -r1.168
--- ewl_widget.c25 Jul 2008 10:30:04 -  1.167
+++ ewl_widget.c26 Jul 2008 22:11:22 -  1.168
@@ -644,14 +644,14 @@
  * failure.
  * @brief Retrieve the appearance key of the widget
  */
-char *
+const char *
 ewl_widget_appearance_get(Ewl_Widget *w)
 {
 DENTER_FUNCTION(DLEVEL_STABLE);
 DCHECK_PARAM_PTR_RET(w, NULL);
 DCHECK_TYPE_RET(w, EWL_WIDGET_TYPE, NULL);
 
-DRETURN_PTR((w-appearance ? strdup(w-appearance) : NULL), 
DLEVEL_STABLE);
+DRETURN_PTR(w-appearance, DLEVEL_STABLE);
 }
 
 /**
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.h,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -3 -r1.74 -r1.75
--- ewl_widget.h4 Jun 2008 20:18:27 -   1.74
+++ ewl_widget.h26 Jul 2008 22:11:22 -  1.75
@@ -190,7 +190,7 @@
 Ewl_State_Type flag);
 
 void ewl_widget_appearance_set(Ewl_Widget *w, const char 
*appearance);
-char*ewl_widget_appearance_get(Ewl_Widget *w);
+const char  *ewl_widget_appearance_get(Ewl_Widget *w);
 char*ewl_widget_appearance_path_get(Ewl_Widget *w);
 int  ewl_widget_appearance_path_size_get(Ewl_Widget *w);
 int  ewl_widget_appearance_path_copy(Ewl_Widget *w, char *buf,
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_box.c,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -3 -r1.58 -r1.59
--- ewl_box.c   11 Jun 2008 23:04:45 -  1.58
+++ ewl_box.c   26 Jul 2008 22:11:22 -  1.59
@@ -202,7 +202,7 @@
 {
 Ewl_Container *c;
 Ewl_Widget *child;
-char *appearance;
+const char *appearance;
 
 DENTER_FUNCTION(DLEVEL_STABLE);
 DCHECK_PARAM_PTR(b);
@@ -223,14 +223,12 @@
  * menubar */
 appearance = ewl_widget_appearance_get(EWL_WIDGET(b));
 if ((b-orientation == EWL_ORIENTATION_HORIZONTAL)
- (!strcmp(appearance,vbox)))
+ (!strcmp(appearance, vbox)))
 ewl_widget_appearance_set(EWL_WIDGET(b), hbox);
 
 else if ((b-orientation == EWL_ORIENTATION_VERTICAL)
  (!strcmp(appearance, hbox)))
 ewl_widget_appearance_set(EWL_WIDGET(b), vbox);
-
-IF_FREE(appearance);
 
 /* we need to reset the preferred size of the box after chaning the
  * orientation. We'll cheat by calling ewl_box_child_show_cb foreach



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-26 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/calendar


Modified Files:
ewl_calendar_test.c 


Log Message:
add some constructor unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/calendar/ewl_calendar_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_calendar_test.c 7 May 2008 13:38:14 -   1.3
+++ ewl_calendar_test.c 26 Jul 2008 23:04:56 -  1.4
@@ -4,10 +4,20 @@
 #include ewl_calendar.h
 #include stdio.h
 #include stdlib.h
+#include string.h
 
 static int create_test(Ewl_Container *box);
 static void ewl_calendar_test(Ewl_Widget *w, void *ev, void *data);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test calendar_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
+
 void
 test_info(Ewl_Test *test)
 {
@@ -16,6 +26,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_MISC;
+test-unit_tests = calendar_unit_tests;
 }
 
 static int
@@ -41,5 +52,37 @@
 date = ewl_calendar_ascii_time_get(EWL_CALENDAR(data));
 printf (Selected: %s\n, date);
 free(date);
+}
+
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *c;
+int ret = 0;
+
+c = ewl_calendar_new();
+
+if (!EWL_CALENDAR_IS(c))
+{
+LOG_FAILURE(buf, len, returned calendar is not of the type
+ calendar);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(c), EWL_CALENDAR_TYPE))
+{
+LOG_FAILURE(buf, len, calendar has wrong appearance);
+goto DONE;
+}
+if (!ewl_object_fill_policy_get(EWL_OBJECT(c)) == EWL_FLAG_FILL_FILL)
+{
+LOG_FAILURE(buf, len, calendar's fill policy is not set to 
fill);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(c);
+
+return ret;
 }
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-26 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/box


Modified Files:
ewl_box_test.c 


Log Message:
add some constructor unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/box/ewl_box_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_box_test.c  7 May 2008 13:38:14 -   1.4
+++ ewl_box_test.c  26 Jul 2008 23:04:56 -  1.5
@@ -11,6 +11,15 @@
 static void toggle_child_shrink(Ewl_Widget *w, void *ev, void *data);
 static void toggle_child_fill(Ewl_Widget *w, void *ev, void *data);
 
+/* unit tests */
+static int constructor_test(char *buf, int len);
+
+static Ewl_Unit_Test box_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
+{NULL, NULL, NULL, -1, 0}
+};
+
+
 void
 test_info(Ewl_Test *test)
 {
@@ -21,6 +30,7 @@
 test-filename = __FILE__;
 test-func = create_test;
 test-type = EWL_TEST_TYPE_CONTAINER;
+test-unit_tests = box_unit_tests;
 }
 
 static int
@@ -324,5 +334,36 @@
 
 ewl_button_label_set(EWL_BUTTON(w), l);
 ewl_object_alignment_set(EWL_OBJECT(w), a);
+}
+
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *b;
+int ret = 0;
+
+b = ewl_box_new();
+
+if (!EWL_BOX_IS(b))
+{
+LOG_FAILURE(buf, len, returned box is not of the type box);
+goto DONE;
+}
+if (!ewl_box_orientation_get(EWL_BOX(b)) == EWL_ORIENTATION_HORIZONTAL)
+{
+LOG_FAILURE(buf, len, button has a stock type set);
+goto DONE;
+}
+if (ewl_widget_focusable_get(b))
+{
+LOG_FAILURE(buf, len, box is not focusable);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(b);
+
+return ret;
 }
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-26 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/border


Modified Files:
ewl_border_test.c 


Log Message:
add some constructor unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/border/ewl_border_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_border_test.c   7 May 2008 13:38:14 -   1.6
+++ ewl_border_test.c   26 Jul 2008 23:04:56 -  1.7
@@ -18,13 +18,14 @@
 static void border_change_position(Ewl_Widget *w, void *ev, void *data);
 static void checkbutton_cb(Ewl_Widget *w, void *ev, void *data);
 
-static int border_is_test(char *buf, int len);
+/* unit tests */
+static int constructor_test(char *buf, int len);
 static int label_set_get_test(char *buf, int len);
 static int label_position_set_get_test(char *buf, int len);
 static int label_alignment_set_get_test(char *buf, int len);
 
 static Ewl_Unit_Test border_unit_tests[] = {
-{Border is, border_is_test, NULL, -1, 0},
+{constructor, constructor_test, NULL, -1, 0},
 {Border label set/get, label_set_get_test, NULL, -1, 0},
 {Border label position set/get, label_position_set_get_test, 
NULL, -1, 0},
 {Border label alignment set/get, 
label_alignment_set_get_test, NULL, -1, 0},
@@ -244,18 +245,40 @@
 }
 }
 
-static int border_is_test(char *buf, int len)
+static int
+constructor_test(char *buf, int len)
 {
-Ewl_Widget *border;
+Ewl_Widget *b;
 int ret = 0;
 
-border = ewl_border_new();
-if (ewl_widget_type_is(border, EWL_BORDER_TYPE))
-ret = 1;
-else
-LOG_FAILURE(buf, len, border type doesn't match);
+b = ewl_border_new();
+
+if (!EWL_BORDER_IS(b))
+{
+LOG_FAILURE(buf, len, returned border widget  is not of the
+type border);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(b), EWL_BORDER_TYPE))
+{
+LOG_FAILURE(buf, len, border has wrong appearance);
+goto DONE;
+}
+if (!ewl_border_label_position_get(EWL_BORDER(b)) == EWL_POSITION_TOP)
+{
+LOG_FAILURE(buf, len, the label position of the border 
+is wrong);
+goto DONE;
+}
+if (ewl_widget_focusable_get(b))
+{
+LOG_FAILURE(buf, len, border widget is focusable);
+goto DONE;
+}
 
-ewl_widget_destroy(border);
+ret = 1;
+DONE:
+ewl_widget_destroy(b);
 
 return ret;
 }



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-26 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/button


Modified Files:
ewl_button_test.c 


Log Message:
add some constructor unit tests

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/button/ewl_button_test.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_button_test.c   7 May 2008 13:38:14 -   1.8
+++ ewl_button_test.c   26 Jul 2008 23:04:56 -  1.9
@@ -11,6 +11,7 @@
 
 static int create_test(Ewl_Container *win);
 
+static int constructor_test(char *buf, int len);
 static int label_test_set_get(char *buf, int len);
 static int image_null_test_get(char *buf, int len);
 static int image_null_test_set_get(char *buf, int len);
@@ -25,6 +26,7 @@
 static int image_fill_policy_test_set_get(char *buf, int len);
 
 static Ewl_Unit_Test button_unit_tests[] = {
+{constructor, constructor_test, NULL, -1, 0},
 {label set/get, label_test_set_get, NULL, -1, 0},
 {image null get, image_null_test_get, NULL, -1, 0},
 {image null set/get, image_null_test_set_get, NULL, -1, 0},
@@ -191,6 +193,44 @@
 
 return 1;
 }
+
+static int
+constructor_test(char *buf, int len)
+{
+Ewl_Widget *button;
+int ret = 0;
+
+button = ewl_button_new();
+
+if (!EWL_BUTTON_IS(button))
+{
+LOG_FAILURE(buf, len, returned button is not of the type
+ button);
+goto DONE;
+}
+if (!!strcmp(ewl_widget_appearance_get(button), EWL_BUTTON_TYPE))
+{
+LOG_FAILURE(buf, len, button has wrong appearance);
+goto DONE;
+}
+if (!ewl_stock_type_get(EWL_STOCK(button)) == EWL_STOCK_NONE)
+{
+LOG_FAILURE(buf, len, button has a stock type set);
+goto DONE;
+}
+if (!ewl_widget_focusable_get(button))
+{
+LOG_FAILURE(buf, len, button is not focusable);
+goto DONE;
+}
+
+ret = 1;
+DONE:
+ewl_widget_destroy(button);
+
+return ret;
+}
+
 
 static int
 label_test_set_get(char *buf, int len)



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/x11


Modified Files:
ewl_engine_x11.c 


Log Message:
stop confusing e17

===
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -3 -r1.61 -r1.62
--- ewl_engine_x11.c14 Jul 2008 17:54:29 -  1.61
+++ ewl_engine_x11.c25 Jul 2008 08:59:23 -  1.62
@@ -470,20 +470,29 @@
 static void
 ee_window_min_max_size_set(Ewl_Window *win)
 {
+int min_w, min_h, max_w, max_h;
 DENTER_FUNCTION(DLEVEL_STABLE);
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
+min_w = ewl_object_minimum_w_get(EWL_OBJECT(win));
+min_h = ewl_object_minimum_h_get(EWL_OBJECT(win));
+max_w = ewl_object_maximum_w_get(EWL_OBJECT(win));
+max_h = ewl_object_maximum_h_get(EWL_OBJECT(win));
+
+if (min_w  max_w)
+min_w = max_w;
+if (min_h  max_h)
+min_h = max_h;
+
 ecore_x_icccm_size_pos_hints_set(INTPTR_TO_INT(win-window),
 0, ECORE_X_GRAVITY_NW,
-
ewl_object_minimum_w_get(EWL_OBJECT(win)),
-
ewl_object_minimum_h_get(EWL_OBJECT(win)),
-
ewl_object_maximum_w_get(EWL_OBJECT(win)),
-
ewl_object_maximum_h_get(EWL_OBJECT(win)),
+min_w, min_h,
+max_w, max_h,
 0, 0, /* base */
 0, 0, /* step */
 0, 0); /* aspect */
-
+
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 
@@ -1091,8 +1100,7 @@
  * (As long as it doesn't break initial size.)
  */
 if (ev-from_wm) window-flags |= EWL_WINDOW_USER_CONFIGURE;
-ewl_object_geometry_request(EWL_OBJECT(window), 0, 0, ev-w,
-ev-h);
+ewl_object_size_request(EWL_OBJECT(window), ev-w, ev-h);
 }
 
 DRETURN_INT(TRUE, DLEVEL_STABLE);



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17/groups


Modified Files:
label.edc 


Log Message:
make it possible to truncate a label with elipsis

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/label.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- label.edc   2 Jan 2007 05:23:40 -   1.1
+++ label.edc   25 Jul 2008 10:14:21 -  1.2
@@ -23,18 +23,51 @@
rel2
{
relative: 1.0 1.0;
-   offset: -1 -1;
+   offset: 5 -1;
}
text
{
text: text;
font: ewl/default;
size: 10;
-   min: 1 1;
-   align: 0.5 0.5;
+   min: 0 1;
+   max: 1 1;
+   align: 0.0 0.5;
}
color: 0 0 0 255;
color3: 255 255 255 32;
+   }
+   }
+   part
+   {
+   name: size_giver;
+   type: TEXT;
+   effect: SOFT_SHADOW;
+
+   description
+   {
+   state: default 0.0;
+   visible: 0;
+   align: 0.0 0.5;
+
+   rel1
+   {
+   relative: 0.0 0.0;
+   offset: 0 0;
+   }
+   rel2
+   {
+   relative: 1.0 1.0;
+   offset: -1 -1;
+   }
+   text
+   {
+   font: ewl/default;
+   text_source: ewl/label/text;
+   size: 10;
+   min: 1 1;
+   align: 0.0 0.5;
+   }
}
}
}



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/label


Modified Files:
ewl_label_test.c 


Log Message:
test case for a shrinkable label

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/label/ewl_label_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_label_test.c7 May 2008 13:38:17 -   1.4
+++ ewl_label_test.c25 Jul 2008 10:25:08 -  1.5
@@ -2,6 +2,7 @@
 #include Ewl_Test.h
 #include ewl_test_private.h
 #include ewl_button.h
+#include ewl_paned.h
 #include ewl_label.h
 
 #include stdio.h
@@ -36,16 +37,26 @@
 static int
 create_test(Ewl_Container *box)
 {
-Ewl_Widget *body, *o2, *o;
+Ewl_Widget *body, *o2, *o, *p;
 
 body = ewl_vbox_new();
 ewl_container_child_append(EWL_CONTAINER(box), body);
 ewl_widget_show(body);
 
+p = ewl_hpaned_new();
+ewl_container_child_append(EWL_CONTAINER(body), p);
+ewl_widget_show(p);
+
 o = ewl_label_new();
-ewl_container_child_append(EWL_CONTAINER(body), o);
+ewl_container_child_append(EWL_CONTAINER(p), o);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER);
-ewl_label_text_set(EWL_LABEL(o), First label);
+ewl_label_text_set(EWL_LABEL(o), A non-shrinkable, centered  label);
+ewl_widget_show(o);
+
+o = ewl_label_new();
+ewl_container_child_prepend(EWL_CONTAINER(p), o);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HSHRINKABLE);
+ewl_label_text_set(EWL_LABEL(o), Shrinkable label);
 ewl_widget_show(o);
 
 o2 = ewl_button_new();
@@ -61,9 +72,9 @@
 cb_click(Ewl_Widget *w __UNUSED__, void *e __UNUSED__, void *data)
 {
 if ((counter % 2) == 0)
-ewl_label_text_set(EWL_LABEL(data), Second Label);
+ewl_label_text_set(EWL_LABEL(data), Still Shrinkable label);
 else
-ewl_label_text_set(EWL_LABEL(data), First label);
+ewl_label_text_set(EWL_LABEL(data), Shrinkable label);
 
 counter ++;
 }



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-25 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_widget.c 


Log Message:
work-around for the truncation bug in edje, which described on the dev-ml

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -3 -r1.166 -r1.167
--- ewl_widget.c1 Jul 2008 10:11:25 -   1.166
+++ ewl_widget.c25 Jul 2008 10:30:04 -  1.167
@@ -896,6 +896,14 @@
 
 ewl_object_preferred_inner_size_set(EWL_OBJECT(w), (int)nw, (int)nh);
 
+/* XXX: this is a work-around to let edje show the ... for a
+ * trucated text, if we changed the text.
+ *
+ * remove this lines, when the bug is fixed in edje!
+ */
+evas_object_resize(w-theme_object, 0, 0);
+evas_object_resize(w-theme_object, CURRENT_W(w), CURRENT_H(w));
+
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-23 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_paned.c 


Log Message:
use the preferred size as default initial size

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- ewl_paned.c 18 Jul 2008 13:05:46 -  1.73
+++ ewl_paned.c 23 Jul 2008 21:22:44 -  1.74
@@ -719,7 +719,7 @@
 }
 else
 {
-panes-size = layout-minimum_size(EWL_OBJECT(child));
+panes-size = 
layout-preferred_size(EWL_OBJECT(child));
 (*resizable)++;
 panes-fixed = FALSE;
 }



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_misc.c 


Log Message:
remove hard coded value, besides that the check was wrong

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -3 -r1.113 -r1.114
--- ewl_misc.c  14 Jul 2008 17:27:20 -  1.113
+++ ewl_misc.c  18 Jul 2008 12:04:43 -  1.114
@@ -146,10 +146,12 @@
 int
 ewl_cast_pointer_to_integer(void *ptr)
 {
+const unsigned int imask = ~0;
+const unsigned long int mask = ~((unsigned long int) imask);
+
 DENTER_FUNCTION(DLEVEL_STABLE);
 
-if (sizeof(int) != sizeof(void *) 
- (((unsigned long) ptr)  0x) != 0)
+if (((unsigned long) ptr)  mask)
 DWARNING(Information lost while casting a pointer to an int);
 
 DRETURN_INT((int)((long int)ptr), DLEVEL_STABLE);



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/evas_xrender_x11


Modified Files:
ewl_engine_evas_xrender_x11.c 


Log Message:
fix warnings

===
RCS file: 
/cvs/e/e17/libs/ewl/src/engines/evas_xrender_x11/ewl_engine_evas_xrender_x11.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_engine_evas_xrender_x11.c   7 May 2008 13:38:22 -   1.15
+++ ewl_engine_evas_xrender_x11.c   18 Jul 2008 12:32:02 -  1.16
@@ -108,7 +108,7 @@
 sinfo-info.display = ecore_x_display_get();
 sinfo-info.visual = DefaultVisual(sinfo-info.display,
 DefaultScreen(sinfo-info.display));
-sinfo-info.drawable = (Ecore_X_Window)win-window;
+sinfo-info.drawable = INTPTR_TO_INT(win-window);
 
 evas_engine_info_set(evas, info);
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/evas_software_x11


Modified Files:
ewl_engine_evas_software_x11.c 


Log Message:
fix warnings

===
RCS file: 
/cvs/e/e17/libs/ewl/src/engines/evas_software_x11/ewl_engine_evas_software_x11.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_engine_evas_software_x11.c  7 May 2008 13:38:22 -   1.17
+++ ewl_engine_evas_software_x11.c  18 Jul 2008 12:32:02 -  1.18
@@ -109,7 +109,7 @@
 DefaultScreen(sinfo-info.display));
 sinfo-info.colormap = DefaultColormap(sinfo-info.display,
 DefaultScreen(sinfo-info.display));
-sinfo-info.drawable = (Ecore_X_Window)win-window;
+sinfo-info.drawable = INTPTR_TO_INT(win-window);
 sinfo-info.depth = DefaultDepth(sinfo-info.display,
 DefaultScreen(sinfo-info.display));
 sinfo-info.rotation = 0;



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/evas_gl_x11


Modified Files:
ewl_engine_evas_gl_x11.c 


Log Message:
fix warnings

===
RCS file: /cvs/e/e17/libs/ewl/src/engines/evas_gl_x11/ewl_engine_evas_gl_x11.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_engine_evas_gl_x11.c7 May 2008 13:38:22 -   1.17
+++ ewl_engine_evas_gl_x11.c18 Jul 2008 12:32:02 -  1.18
@@ -108,7 +108,7 @@
 glinfo-info.colormap = glinfo-func.best_colormap_get(
 glinfo-info.display,
 DefaultScreen(glinfo-info.display));
-glinfo-info.drawable = (Ecore_X_Window)win-window;
+glinfo-info.drawable = INTPTR_TO_INT(win-window);
 glinfo-info.depth = glinfo-func.best_depth_get(
 glinfo-info.display,
 DefaultScreen(glinfo-info.display));



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_tree.c ewl_text.c ewl_radiobutton.c ewl_embed.c 
ewl_attach.h 


Log Message:
fix warnings

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_tree.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -3 -r1.73 -r1.74
--- ewl_tree.c  11 Jun 2008 23:04:45 -  1.73
+++ ewl_tree.c  18 Jul 2008 12:32:02 -  1.74
@@ -726,7 +726,7 @@
 
 /* update our sort information and call the sort function, skipping
  * over SORT_NONE */
-tree-sort.column = (unsigned int)data;
+tree-sort.column = INTPTR_TO_INT(data);
 tree-sort.direction = ((tree-sort.direction + 1) % 
EWL_SORT_DIRECTION_MAX);
 if (!tree-sort.direction) tree-sort.direction ++;
 
@@ -779,7 +779,7 @@
 
 ewl_callback_append(EWL_WIDGET(box), EWL_CALLBACK_CLICKED,
 ewl_tree_cb_column_sort,
-(unsigned int *)column);
+INT_TO_INTPTR(column));
 
 c = ewl_button_new();
 ewl_container_child_append(box, c);
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.203
retrieving revision 1.204
diff -u -3 -r1.203 -r1.204
--- ewl_text.c  13 Jul 2008 00:05:41 -  1.203
+++ ewl_text.c  18 Jul 2008 12:32:02 -  1.204
@@ -804,7 +804,7 @@
 DCHECK_PARAM_PTR_RET(t, 0);
 DCHECK_TYPE_RET(t, EWL_TEXT_TYPE, 0);
 
-DRETURN_INT(t-obscure, DLEVEL_STABLE);
+DRETURN_PTR(t-obscure, DLEVEL_STABLE);
 }
 
 /**
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_radiobutton.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_radiobutton.c   7 May 2008 13:38:25 -   1.23
+++ ewl_radiobutton.c   18 Jul 2008 12:32:02 -  1.24
@@ -92,7 +92,7 @@
 DCHECK_PARAM_PTR_RET(rb, 0);
 DCHECK_TYPE_RET(rb, EWL_RADIOBUTTON_TYPE, 0);
 
-DRETURN_INT(rb-value, DLEVEL_STABLE);
+DRETURN_PTR(rb-value, DLEVEL_STABLE);
 }
 
 /**
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_embed.c,v
retrieving revision 1.148
retrieving revision 1.149
diff -u -3 -r1.148 -r1.149
--- ewl_embed.c 17 Jun 2008 22:31:34 -  1.148
+++ ewl_embed.c 18 Jul 2008 12:32:02 -  1.149
@@ -1720,9 +1720,9 @@
 pointer = argb-handle;
 }
 
-if (!pointer) {
-   if (!(pointer = (int)ewl_attach_get(w,
-EWL_ATTACH_TYPE_MOUSE_CURSOR)))
+if (!pointer) 
+{
+if (!(pointer = ewl_attach_mouse_cursor_get(w)))
 pointer = EWL_MOUSE_CURSOR_LEFT_PTR;
 }
 ewl_engine_pointer_set(embed, pointer);
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_attach.h17 Jun 2008 22:02:49 -  1.24
+++ ewl_attach.h18 Jul 2008 12:32:02 -  1.25
@@ -75,12 +75,19 @@
 
 
 /**
- * @def ewl_attach_mouse_cursor_set(w, data)
+ * @def ewl_attach_mouse_cursor_set(w, cursor)
  * Convenience method to set a cursor widget attachment
  */
-#define ewl_attach_mouse_cursor_set(w, data) \
+#define ewl_attach_mouse_cursor_set(w, cursor) \
 ewl_attach_other_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_MOUSE_CURSOR, \
-(int *)data)
+INT_TO_INTPTR(cursor))
+/**
+ * @def ewl_attach_mouse_cursor_get(w)
+ * Convenience method to get the widget's cursor attachment
+ */
+#define ewl_attach_mouse_cursor_get(w) \
+INTPTR_TO_INT(ewl_attach_get(EWL_WIDGET(w), \
+EWL_ATTACH_TYPE_MOUSE_CURSOR))
 
 /**
  * @def ewl_attach_mouse_argb_cursor_set(w, cursor)



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin


Modified Files:
ewl_embed_test.c 


Log Message:
- don't use private pointer casting macros in public header (ewl_attach.c)
- fix more warnings (we are now hopefully warning free)

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/ewl_embed_test.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ewl_embed_test.c11 Jun 2008 23:04:42 -  1.22
+++ ewl_embed_test.c18 Jul 2008 13:05:46 -  1.23
@@ -118,7 +118,7 @@
 emb = ewl_embed_new();
 ewl_object_fill_policy_set(EWL_OBJECT(emb), EWL_FLAG_FILL_ALL);
 eo = ewl_embed_canvas_set(EWL_EMBED(emb), evas,
-  (void *) ecore_evas_software_x11_window_get(ee));
+  (void 
*)(long)ecore_evas_software_x11_window_get(ee));
 ewl_embed_focus_set(EWL_EMBED(emb), TRUE);
 ewl_widget_show(emb);
 
@@ -180,7 +180,7 @@
 emb = ewl_embed_new();
 ewl_object_fill_policy_set(EWL_OBJECT(emb), EWL_FLAG_FILL_ALL);
 eo = ewl_embed_canvas_set(EWL_EMBED(emb), evas,
-  (void *) ecore_evas_software_x11_window_get(ee));
+  (void 
*)(long)ecore_evas_software_x11_window_get(ee));
 ewl_widget_show(emb);
 
 /*
@@ -221,7 +221,7 @@
 emb = ewl_embed_new();
 ewl_object_fill_policy_set(EWL_OBJECT(emb), EWL_FLAG_FILL_ALL);
 eo = ewl_embed_canvas_set(EWL_EMBED(emb), evas,
-  (void *) ecore_evas_software_x11_window_get(ee));
+  (void 
*)(long)ecore_evas_software_x11_window_get(ee));
 ewl_embed_focus_set(EWL_EMBED(emb), TRUE);
 ewl_widget_show(emb);
 



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-18 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_paned.c ewl_attach.h 


Log Message:
- don't use private pointer casting macros in public header (ewl_attach.c)
- fix more warnings (we are now hopefully warning free)

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_paned.c,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -3 -r1.72 -r1.73
--- ewl_paned.c 7 May 2008 13:38:25 -   1.72
+++ ewl_paned.c 18 Jul 2008 13:05:46 -  1.73
@@ -1197,7 +1197,7 @@
 
 ewl_callback_append(w, EWL_CALLBACK_MOUSE_MOVE,
 ewl_paned_grabber_cb_mouse_move,
-(void *) ds);
+INT_TO_INTPTR(ds));
 ewl_widget_state_set(w, selected, EWL_STATE_PERSISTENT);
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -1242,7 +1242,7 @@
 e = ev;
 p = EWL_PANED(w-parent);
 c = EWL_CONTAINER(p);
-mouse_offset = (int) data;
+mouse_offset = INTPTR_TO_INT(data);
 
 if (ewl_paned_orientation_get(p) == EWL_ORIENTATION_HORIZONTAL)
 {
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- ewl_attach.h18 Jul 2008 12:32:02 -  1.25
+++ ewl_attach.h18 Jul 2008 13:05:46 -  1.26
@@ -80,13 +80,13 @@
  */
 #define ewl_attach_mouse_cursor_set(w, cursor) \
 ewl_attach_other_set(EWL_WIDGET(w), EWL_ATTACH_TYPE_MOUSE_CURSOR, \
-INT_TO_INTPTR(cursor))
+(void *)(long int)(cursor))
 /**
  * @def ewl_attach_mouse_cursor_get(w)
  * Convenience method to get the widget's cursor attachment
  */
 #define ewl_attach_mouse_cursor_get(w) \
-INTPTR_TO_INT(ewl_attach_get(EWL_WIDGET(w), \
+((int)(long int) ewl_attach_get(EWL_WIDGET(w), \
 EWL_ATTACH_TYPE_MOUSE_CURSOR))
 
 /**



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-17 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_callback.c 


Log Message:
use ecore_direct_hash() instead of a cast

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_callback.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -3 -r1.41 -r1.42
--- ewl_callback.c  7 May 2008 13:38:23 -   1.41
+++ ewl_callback.c  17 Jul 2008 23:00:42 -  1.42
@@ -725,8 +725,8 @@
 
 cb = EWL_CALLBACK(key);
 
-DRETURN_INT((unsigned int) (cb-func) ^
-(unsigned int) (cb-user_data), DLEVEL_STABLE);
+DRETURN_INT(ecore_direct_hash(cb-func) 
+^ ecore_direct_hash(cb-user_data), DLEVEL_STABLE);
 }
 
 /*



-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_misc.c ewl_macros.h ewl_debug.h 


Log Message:
add macro to cast from pointer to int and vice versa

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -3 -r1.112 -r1.113
--- ewl_misc.c  4 Jun 2008 20:18:27 -   1.112
+++ ewl_misc.c  14 Jul 2008 17:27:20 -  1.113
@@ -136,6 +136,26 @@
 }
 
 /**
+ * @param ptr: the pointer to cast
+ * @return The integer value of the pointer
+ *
+ * This function casts a pointer into an integer. If there should be an
+ * information lost, i.e. the content of the pointer does not fit into
+ * an integer, it will print a runtime warning.
+ */
+int
+ewl_cast_pointer_to_integer(void *ptr)
+{
+DENTER_FUNCTION(DLEVEL_STABLE);
+
+if (sizeof(int) != sizeof(void *) 
+ (((unsigned long) ptr)  0x) != 0)
+DWARNING(Information lost while casting a pointer to an int);
+
+DRETURN_INT((int)((long int)ptr), DLEVEL_STABLE);
+}
+
+/**
  * @param argc: the argc passed into the main function
  * @param argv: the argv passed into the main function
  * @return Returns 1 or greater on success, 0 otherwise.
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_macros.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- ewl_macros.h7 May 2008 13:38:24 -   1.14
+++ ewl_macros.h14 Jul 2008 17:27:20 -  1.15
@@ -115,6 +115,24 @@
 #endif
 
 /**
+ * @def PTRINT_TO_INT(x)
+ * Does a cast from a pointer to the type int, if debug is enabled at 
+ * compile-time it will add a runtime check if any information get lost.
+ */
+#ifdef EWL_ENABLE_DEBUG
+# define PTRINT_TO_INT(x) ewl_cast_pointer_to_integer(x)
+#else
+# define PTRINT_TO_INT(x) ((int)((long int)(x)))
+#endif
+
+/**
+ * @def PRTINT_TO_INT(x)
+ * Does a cast from a pointer to the type int, if debug is enabled at 
+ * compile-time it will add a runtime check if any information get lost.
+ */
+#define INT_TO_PTRINT(x) ((void *)((long int)(x)))
+
+/**
  * @}
  */
 
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_debug.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewl_debug.h 7 May 2008 13:38:23 -   1.34
+++ ewl_debug.h 14 Jul 2008 17:27:20 -  1.35
@@ -14,6 +14,7 @@
 void ewl_print_warning(void);
 void ewl_segv(void);
 void ewl_backtrace(void);
+int  ewl_cast_pointer_to_integer(void *ptr);
 
 /**
  * The Ewl_Config_Cache structure



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/x11


Modified Files:
ewl_engine_x11.c 


Log Message:
use this macro to cast

===
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -3 -r1.59 -r1.60
--- ewl_engine_x11.c7 May 2008 13:38:22 -   1.59
+++ ewl_engine_x11.c14 Jul 2008 17:28:54 -  1.60
@@ -406,7 +406,7 @@
 ewl_object_current_h_get(EWL_OBJECT(win)));
 
 ecore_x_icccm_protocol_set(xwin, ECORE_X_WM_PROTOCOL_DELETE_REQUEST, 
1);
-win-window = (void *)xwin;
+win-window = INT_TO_PTRINT(xwin);
 
 if (win-flags  EWL_WINDOW_BORDERLESS)
 ee_window_borderless_set(win);
@@ -422,8 +422,8 @@
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
 ee_window_hide(win);
-ecore_x_window_del((Ecore_X_Window)(EWL_EMBED(win)-canvas_window));
-ecore_x_window_del((Ecore_X_Window)(win-window));
+ecore_x_window_del(PTRINT_TO_INT(EWL_EMBED(win)-canvas_window));
+ecore_x_window_del(PTRINT_TO_INT(win-window));
 
 EWL_EMBED(win)-canvas_window = NULL;
 win-window = NULL;
@@ -438,7 +438,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_window_move((Ecore_X_Window)win-window,
+ecore_x_window_move(PTRINT_TO_INT(win-window),
 EWL_EMBED(win)-x,
 EWL_EMBED(win)-y);
 
@@ -457,11 +457,12 @@
 width = ewl_object_current_w_get(EWL_OBJECT(win));
 height = ewl_object_current_h_get(EWL_OBJECT(win));
 
-ecore_x_window_resize((Ecore_X_Window)win-window, width, height);
+ecore_x_window_resize(PTRINT_TO_INT(win-window), width, height);
 
 if (EWL_EMBED(win)-canvas_window != win-window)
-
ecore_x_window_resize((Ecore_X_Window)EWL_EMBED(win)-canvas_window,
-width, height);
+ecore_x_window_resize(
+PTRINT_TO_INT(EWL_EMBED(win)-canvas_window),
+width, height);
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -473,7 +474,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_icccm_size_pos_hints_set((Ecore_X_Window)win-window,
+ecore_x_icccm_size_pos_hints_set(PTRINT_TO_INT(win-window),
 0, ECORE_X_GRAVITY_NW,
 
ewl_object_minimum_w_get(EWL_OBJECT(win)),
 
ewl_object_minimum_h_get(EWL_OBJECT(win)),
@@ -493,8 +494,8 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_window_show((Ecore_X_Window)win-window);
-ecore_x_window_show((Ecore_X_Window)EWL_EMBED(win)-canvas_window);
+ecore_x_window_show(PTRINT_TO_INT(win-window));
+ecore_x_window_show(PTRINT_TO_INT(EWL_EMBED(win)-canvas_window));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -506,8 +507,8 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_window_hide((Ecore_X_Window)EWL_EMBED(win)-canvas_window);
-ecore_x_window_hide((Ecore_X_Window)EWL_WINDOW(win)-window);
+ecore_x_window_hide(PTRINT_TO_INT(EWL_EMBED(win)-canvas_window));
+ecore_x_window_hide(PTRINT_TO_INT(EWL_WINDOW(win)-window));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -522,8 +523,8 @@
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
 title = win-title ? win-title : ;
-ecore_x_icccm_title_set((Ecore_X_Window)win-window, title);
-ecore_x_netwm_name_set((Ecore_X_Window)win-window, title);
+ecore_x_icccm_title_set(PTRINT_TO_INT(win-window), title);
+ecore_x_netwm_name_set(PTRINT_TO_INT(win-window), title);
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -535,7 +536,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_icccm_name_class_set((Ecore_X_Window)win-window, win-name,
+ecore_x_icccm_name_class_set(PTRINT_TO_INT(win-window), win-name,
 (win-classname ? win-classname : win-name));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -548,7 +549,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_mwm_borderless_set((Ecore_X_Window)win-window,
+ecore_x_mwm_borderless_set(PTRINT_TO_INT(win-window),
 (!!(win-flags  EWL_WINDOW_BORDERLESS)));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -561,7 +562,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_netwm_window_type_set((Ecore_X_Window)win-window,
+  

E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/engines/x11


Modified Files:
ewl_engine_x11.c 


Log Message:
rename PTRINT to INTPTR

===
RCS file: /cvs/e/e17/libs/ewl/src/engines/x11/ewl_engine_x11.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -3 -r1.60 -r1.61
--- ewl_engine_x11.c14 Jul 2008 17:28:54 -  1.60
+++ ewl_engine_x11.c14 Jul 2008 17:54:29 -  1.61
@@ -406,7 +406,7 @@
 ewl_object_current_h_get(EWL_OBJECT(win)));
 
 ecore_x_icccm_protocol_set(xwin, ECORE_X_WM_PROTOCOL_DELETE_REQUEST, 
1);
-win-window = INT_TO_PTRINT(xwin);
+win-window = INT_TO_INTPTR(xwin);
 
 if (win-flags  EWL_WINDOW_BORDERLESS)
 ee_window_borderless_set(win);
@@ -422,8 +422,8 @@
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
 ee_window_hide(win);
-ecore_x_window_del(PTRINT_TO_INT(EWL_EMBED(win)-canvas_window));
-ecore_x_window_del(PTRINT_TO_INT(win-window));
+ecore_x_window_del(INTPTR_TO_INT(EWL_EMBED(win)-canvas_window));
+ecore_x_window_del(INTPTR_TO_INT(win-window));
 
 EWL_EMBED(win)-canvas_window = NULL;
 win-window = NULL;
@@ -438,7 +438,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_window_move(PTRINT_TO_INT(win-window),
+ecore_x_window_move(INTPTR_TO_INT(win-window),
 EWL_EMBED(win)-x,
 EWL_EMBED(win)-y);
 
@@ -457,11 +457,11 @@
 width = ewl_object_current_w_get(EWL_OBJECT(win));
 height = ewl_object_current_h_get(EWL_OBJECT(win));
 
-ecore_x_window_resize(PTRINT_TO_INT(win-window), width, height);
+ecore_x_window_resize(INTPTR_TO_INT(win-window), width, height);
 
 if (EWL_EMBED(win)-canvas_window != win-window)
 ecore_x_window_resize(
-PTRINT_TO_INT(EWL_EMBED(win)-canvas_window),
+INTPTR_TO_INT(EWL_EMBED(win)-canvas_window),
 width, height);
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -474,7 +474,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_icccm_size_pos_hints_set(PTRINT_TO_INT(win-window),
+ecore_x_icccm_size_pos_hints_set(INTPTR_TO_INT(win-window),
 0, ECORE_X_GRAVITY_NW,
 
ewl_object_minimum_w_get(EWL_OBJECT(win)),
 
ewl_object_minimum_h_get(EWL_OBJECT(win)),
@@ -494,8 +494,8 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_window_show(PTRINT_TO_INT(win-window));
-ecore_x_window_show(PTRINT_TO_INT(EWL_EMBED(win)-canvas_window));
+ecore_x_window_show(INTPTR_TO_INT(win-window));
+ecore_x_window_show(INTPTR_TO_INT(EWL_EMBED(win)-canvas_window));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -507,8 +507,8 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_window_hide(PTRINT_TO_INT(EWL_EMBED(win)-canvas_window));
-ecore_x_window_hide(PTRINT_TO_INT(EWL_WINDOW(win)-window));
+ecore_x_window_hide(INTPTR_TO_INT(EWL_EMBED(win)-canvas_window));
+ecore_x_window_hide(INTPTR_TO_INT(EWL_WINDOW(win)-window));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -523,8 +523,8 @@
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
 title = win-title ? win-title : ;
-ecore_x_icccm_title_set(PTRINT_TO_INT(win-window), title);
-ecore_x_netwm_name_set(PTRINT_TO_INT(win-window), title);
+ecore_x_icccm_title_set(INTPTR_TO_INT(win-window), title);
+ecore_x_netwm_name_set(INTPTR_TO_INT(win-window), title);
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
 }
@@ -536,7 +536,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_icccm_name_class_set(PTRINT_TO_INT(win-window), win-name,
+ecore_x_icccm_name_class_set(INTPTR_TO_INT(win-window), win-name,
 (win-classname ? win-classname : win-name));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -549,7 +549,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_mwm_borderless_set(PTRINT_TO_INT(win-window),
+ecore_x_mwm_borderless_set(INTPTR_TO_INT(win-window),
 (!!(win-flags  EWL_WINDOW_BORDERLESS)));
 
 DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -562,7 +562,7 @@
 DCHECK_PARAM_PTR(win);
 DCHECK_TYPE(win, EWL_WINDOW_TYPE);
 
-ecore_x_netwm_window_type_set(PTRINT_TO_INT(win-window),
+ecore_x_netwm_window_type_set(INTPTR_TO_INT(win-window),
   

E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_macros.h 


Log Message:
rename PTRINT to INTPTR

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_macros.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- ewl_macros.h14 Jul 2008 17:27:20 -  1.15
+++ ewl_macros.h14 Jul 2008 17:54:29 -  1.16
@@ -115,22 +115,22 @@
 #endif
 
 /**
- * @def PTRINT_TO_INT(x)
+ * @def INTPTR_TO_INT(x)
  * Does a cast from a pointer to the type int, if debug is enabled at 
  * compile-time it will add a runtime check if any information get lost.
  */
 #ifdef EWL_ENABLE_DEBUG
-# define PTRINT_TO_INT(x) ewl_cast_pointer_to_integer(x)
+# define INTPTR_TO_INT(x) ewl_cast_pointer_to_integer(x)
 #else
-# define PTRINT_TO_INT(x) ((int)((long int)(x)))
+# define INTPTR_TO_INT(x) ((int)((long int)(x)))
 #endif
 
 /**
- * @def PRTINT_TO_INT(x)
+ * @def INTPTR_TO_INT(x)
  * Does a cast from a pointer to the type int, if debug is enabled at 
  * compile-time it will add a runtime check if any information get lost.
  */
-#define INT_TO_PTRINT(x) ((void *)((long int)(x)))
+#define INT_TO_INTPTR(x) ((void *)((long int)(x)))
 
 /**
  * @}



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17


Modified Files:
e17.edc 


Log Message:
add icondialog

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/e17.edc,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- e17.edc 26 Apr 2008 21:07:35 -  1.31
+++ e17.edc 14 Jul 2008 20:24:18 -  1.32
@@ -162,6 +162,12 @@
item: /dialog/group ewl/dialog;
item: /dialog/vbox/hseparator/group ewl/spacer;
item: /dialog/vbox/actionarea/group ewl/dialog/actionarea;
+   item: /icondialog/group ewl/dialog;
+   item: /icondialog/vbox/hseparator/group ewl/spacer;
+   item: /icondialog/vbox/actionarea/group ewl/dialog/actionarea;
+   item: /icondialog/vbox/hbox/group ewl/icondialog/box;
+   item: /icondialog/vbox/hbox/image/group ewl/icondialog/icon;
+   item: /icondialog/icon_size 64;
 
/* default values */
item: /entry/color/a 255;



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
Makefile.am Ewl.h 
Added Files:
ewl_icondialog.c ewl_icondialog.h 


Log Message:
add icondialog

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/Makefile.am,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -3 -r1.66 -r1.67
--- Makefile.am 29 Jun 2008 14:01:39 -  1.66
+++ Makefile.am 14 Jul 2008 20:24:18 -  1.67
@@ -55,6 +55,7 @@
ewl_histogram.h \
ewl_icon.h \
ewl_icon_theme.h \
+   ewl_icondialog.h \
ewl_io_manager.h \
ewl_image.h \
ewl_list.h \
@@ -138,6 +139,7 @@
ewl_histogram.c \
ewl_icon.c \
ewl_icon_theme.c \
+   ewl_icondialog.c \
ewl_io_manager.c \
ewl_image.c \
ewl_list.c \
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/Ewl.h,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -3 -r1.42 -r1.43
--- Ewl.h   20 May 2008 23:47:00 -  1.42
+++ Ewl.h   14 Jul 2008 20:24:18 -  1.43
@@ -40,6 +40,7 @@
 #include ewl_button.h
 #include ewl_floater.h
 #include ewl_dialog.h
+#include ewl_icondialog.h
 #include ewl_popup.h
 
 #include ewl_text.h



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17/groups


Modified Files:
dialog.edc 


Log Message:
add icondialog

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/dialog.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- dialog.edc  3 Feb 2007 03:30:31 -   1.1
+++ dialog.edc  14 Jul 2008 20:24:18 -  1.2
@@ -127,3 +127,24 @@
}
 }
 
+group
+{
+   name: ewl/icondialog/box;
+   
+   data
+   {
+   item: inset 16;
+   item: inset/bottom 0;
+   }
+}
+
+group
+{
+   name: ewl/icondialog/icon;
+   
+   data
+   {
+   item: pad/right 16;
+   }
+}
+



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_dialog.h 


Log Message:
remove spaces between functions and parenthesises

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dialog.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- ewl_dialog.h5 Jul 2008 18:03:53 -   1.25
+++ ewl_dialog.h12 Jul 2008 19:30:58 -  1.26
@@ -62,8 +62,8 @@
 Ewl_Position active_area; /** Which section of the dialog is active */
 };
 
-Ewl_Widget  *ewl_dialog_new (void);
-int  ewl_dialog_init (Ewl_Dialog *dialog);
+Ewl_Widget  *ewl_dialog_new(void);
+int  ewl_dialog_init(Ewl_Dialog *dialog);
 
 void ewl_dialog_action_position_set(Ewl_Dialog *d, Ewl_Position 
pos);
 Ewl_Position ewl_dialog_action_position_get(Ewl_Dialog *dialog);



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17/groups


Modified Files:
text.edc 


Log Message:
select the whole line

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/text.edc,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- text.edc9 Jul 2008 21:45:57 -   1.7
+++ text.edc12 Jul 2008 21:56:00 -  1.8
@@ -206,12 +206,6 @@
 group
 {
name: ewl/entry/selection;
-   data
-   {
-   item: pad/top 4;
-   item: pad/bottom 4;
-   }
-   
parts
{
part



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-10 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/engine


Modified Files:
ewl_engine_test.c 


Log Message:
destroy the window before leaving the unit test

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/engine/ewl_engine_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_engine_test.c   7 May 2008 13:38:15 -   1.5
+++ ewl_engine_test.c   10 Jul 2008 21:42:06 -  1.6
@@ -197,7 +197,7 @@
 Ewl_Widget *window;
 
 window = ewl_window_new();
-ewl_embed_engine_name_set(EWL_EMBED(window), ewl_engine);
+ewl_embed_engine_name_set(EWL_EMBED(window), ewl_engine_test);
 ewl_widget_show(window);
 
 return window;
@@ -215,10 +215,12 @@
 window = create_unit_test_window();
 engine_name = ewl_embed_engine_name_get(EWL_EMBED(window));
 
-if (strcmp(engine_name, ewl_engine))
+if (strcmp(engine_name, ewl_engine_test))
 LOG_FAILURE(buf, len, engine name doesn't match);
 else
 ret = 1;
+
+ewl_widget_destroy(window);
 
 return ret;
 }



-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-07-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/object


Modified Files:
ewl_object_test.c 


Log Message:
add unit test for the returned values of preferred_size_get()

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/object/ewl_object_test.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ewl_object_test.c   11 Jun 2008 23:04:43 -  1.12
+++ ewl_object_test.c   9 Jul 2008 22:56:59 -   1.13
@@ -27,6 +27,7 @@
 static int position_size_test_set_get(char *buf, int len);
 static int preferred_inner_size_test_set_get(char *buf, int len);
 static int preferred_size_test_set_get(char *buf, int len);
+static int preferred_size_test_get(char *buf, int len);
 static int minimum_size_test_set_get(char *buf, int len);
 static int maximum_size_test_set_get(char *buf, int len);
 static int minimum_size_test_set_request(char *buf, int len);
@@ -50,6 +51,7 @@
 {position size set/get, position_size_test_set_get, NULL, 
-1, 0},
 {preferred inner size set/get, 
preferred_inner_size_test_set_get, NULL, -1, 0},
 {preferred size set/get, preferred_size_test_set_get, NULL, 
-1, 0},
+{preferred size get, preferred_size_test_get, NULL, -1, 0},
 {minimum size set/get, minimum_size_test_set_get, NULL, -1, 
0},
 {maximum size set/get, maximum_size_test_set_get, NULL, -1, 
0},
 {minimum size set/request, minimum_size_test_set_request, 
NULL, -1, 0},
@@ -459,6 +461,97 @@
 width, height);
 
 ewl_widget_destroy(w);
+
+return ret;
+}
+
+/*
+ * Set different sizes (minimum, maximum, preferred) and fill policies
+ * and test if it returns the right size
+ */
+static int
+preferred_size_test_get(char *buf, int len)
+{
+Ewl_Object *o;
+int width, height;
+int ret = 0;
+const int small_w = 13;
+const int medium_w = 20;
+const int large_w = 30;
+const int small_h = 7;
+const int medium_h = 30;
+const int large_h = 32;
+
+o = EWL_OBJECT(ewl_widget_new());
+
+ewl_object_preferred_inner_size_set(o, medium_w, medium_h);
+
+ewl_object_preferred_size_get(o, width, height);
+if (width != medium_w  height != medium_h)
+{
+LOG_FAILURE(buf, len,
+Preferred size differs from the set value
+set: %dx%d get: %dx%d, 
+medium_w, medium_h, width, height);
+goto DONE;
+}
+
+/* now set a minimum size that is larger then the preferred size */
+ewl_object_minimum_size_set(o, large_w, large_h);
+ewl_object_preferred_size_get(o, width, height);
+if (width != large_w || height != large_h)
+{
+LOG_FAILURE(buf, len,
+Preferred size differs from the minimum size
+expect: %dx%d get: %dx%d, 
+large_w, large_h, width, height);
+goto DONE;
+}
+/* reset the minimum size */
+ewl_object_minimum_size_set(o, 0, 0);
+
+/* set a maximum size that is smaller then the preferred size */
+ewl_object_maximum_size_set(o, small_w, small_h);
+ewl_object_preferred_size_get(o, width, height);
+if (width != small_w || height != small_h)
+{
+LOG_FAILURE(buf, len,
+Preferred size differs from the maximum size
+expect: %dx%d get: %dx%d, 
+small_w, small_h, width, height);
+goto DONE;
+}
+/* reset the minimum size */
+ewl_object_maximum_size_set(o, 0, 0);
+
+/* set a smaller minimum size, but set the fill policy to shrink */
+ewl_object_minimum_size_set(o, small_w, small_h);
+ewl_object_fill_policy_set(o, EWL_FLAG_FILL_SHRINK);
+ewl_object_preferred_size_get(o, width, height);
+if (width != small_w || height != small_h)
+{
+LOG_FAILURE(buf, len,
+Preferred size differs from the minimum size
+expect: %dx%d get: %dx%d, 
+small_w, small_h, width, height);
+goto DONE;
+}
+
+/* do the same but this time with a larger minimum size */
+ewl_object_minimum_size_set(o, large_w, large_h);
+ewl_object_preferred_size_get(o, width, height);
+if (width != large_w || height != large_h)
+{
+LOG_FAILURE(buf, len,
+Preferred size differs from the minimum size
+  

E CVS: libs/ewl pfritz

2008-07-09 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/doc/tutorials


Modified Files:
fill_policies.dox 


Log Message:
update docs to reflect the fill policy changes done some days ago

===
RCS file: /cvs/e/e17/libs/ewl/doc/tutorials/fill_policies.dox,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- fill_policies.dox   26 Apr 2008 17:41:07 -  1.2
+++ fill_policies.dox   9 Jul 2008 23:06:12 -   1.3
@@ -1,14 +1,21 @@
 /**
  * @page fill_policies Fill Policies
 
-As widgets are packed together their fill policies kick in and 
-adjust the widget sizes as needed to make everything fit. The fill 
-policies of Ewl can be a bit confusing for the first time user, hell, 
-I still have problems at times.
+Ewl is a container-based widget library, this means that the container will
+care to place its children. As point of reference the preferred size of the
+child is used. In the case (and these cases are not rare) that the container
+has more free space or less free space to distribute the fill policies of the 
+children kick in and adjust the widget sizes as needed to make everything fit.
+Thus you can give the container hints if the child is stick to its preferred
+size or if it can grow and/or shrink. The fill policies of Ewl can be a bit 
+confusing for the first time user. But once you understood the concept, 
+it gives you the power to arrange the widget as you like without being a worry
+to the underlying calculations, which are fortunately done by the container.
 
 @section fill_users Using the fill policy
 
 The basis for how fill policies fit together is shown the following image.
[EMAIL PROTECTED] Update this image
 
 @image html object_sizing.png
 
@@ -18,29 +25,55 @@
   - maximum size
 
 As the name implies the widget wants to be set to its 
[EMAIL PROTECTED] preferred size whenever possible. If the fill policy allows, 
the 
-widget can also shrink or grow within the bounds of its @e minimum and 
[EMAIL PROTECTED] maximum sizes.
-
[EMAIL PROTECTED]
-Fill Policy   | Effect  
-
-EWL_FLAG_FILL_NONE| Do not fill or shrink in any direction
-EWL_FLAG_FILL_VSHRINK | Vertically shrink
-EWL_FLAG_FILL_HSHRINK | Horizontally shrink
-EWL_FLAG_FILL_SHRINK  | Shrink both horizontally and vertically
-EWL_FLAG_FILL_VFILL   | Vertically fill
-EWL_FLAG_FILL_HFILL   | Horizontally fill
-EWL_FLAG_FILL_FILL| Fill both horizontally and vertically
-EWL_FLAG_FILL_ALL | Shrink or fill as needed
[EMAIL PROTECTED]
[EMAIL PROTECTED] preferred size whenever possible. If the fill policy allows, 
the widget can
+also shrink or grow within the bounds of its @e minimum and @e maximum sizes.
+
[EMAIL PROTECTED] @c EWL_FLAG_FILL_NONE
+Do not fill or shrink in any direction
[EMAIL PROTECTED] @c EWL_FLAG_FILL_VSHRINKABLE
+Vertically shrinkable
[EMAIL PROTECTED] @c EWL_FLAG_FILL_HSHRINKABLE
+Horizontally shrinkable
[EMAIL PROTECTED] @c EWL_FLAG_FILL_SHRINKABLE
+Shrinkable both horizontally and vertically
[EMAIL PROTECTED] @c EWL_FLAG_FILL_VSHRINK
+Vertically shrink
[EMAIL PROTECTED] @c EWL_FLAG_FILL_HSHRINK
+Horizontally shrink
[EMAIL PROTECTED] @c EWL_FLAG_FILL_SHRINK
+Shrink both horizontally and vertically
[EMAIL PROTECTED] @c EWL_FLAG_FILL_VFILL
+Vertically fill
[EMAIL PROTECTED] @c EWL_FLAG_FILL_HFILL
+Horizontally fill
[EMAIL PROTECTED] @c EWL_FLAG_FILL_FILL
+Fill both horizontally and vertically
[EMAIL PROTECTED] @c EWL_FLAG_FILL_ALL
+Shrink or fill as needed
+
+You can combine any combination of fill policies with a binary OR. For example
[EMAIL PROTECTED] EWL_FLAG_FILL_VSHRINK | @c EWL_FLAG_FILL_HSHRINK is the same 
like
[EMAIL PROTECTED] EWL_FLAG_FILL_SHRINK.
+
[EMAIL PROTECTED] shrink_or_shrinkable The difference between shrink and 
shrinkable
+But what is the difference between the 'shrink' and the 'shrinkable' fill 
policy?
+The 'shrink' fill policy is used if the widget really wants to be shrunk, i.e.
+it prefers its minimum size over its actual set preferred size. Hence the
+container will only consider the minimum size of the child  to calculate the 
+preferred size. This fill policy is useful in cases, where you do not really
+want that the widget is shown in its full size. For example you do not want
+to show all items in a scrollpane, because if you'd want that you wouldn't use
+a scrollpane. So for a vertical scrollpane you can use @c VSHRINK, for example.
+The scrollpane will not show the whole list of the items, but it will make the
+scrollpane width enough, therefor each child fits into it and you don't need
+a horizontal scrollbar.
 
 @section fill_guide Guidelines for container authors
 
 As you have seen in the previous section fill policies and the three different
 sizes are very 

E CVS: libs/ewl pfritz

2008-07-01 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_window.c ewl_widget.c ewl_range.c ewl_label.c ewl_icon.c 
ewl_container.c 


Log Message:
use @note

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_window.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -3 -r1.93 -r1.94
--- ewl_window.c7 May 2008 13:38:25 -   1.93
+++ ewl_window.c1 Jul 2008 10:11:24 -   1.94
@@ -733,7 +733,7 @@
  * @return leader of the window or NULL
  * @brief Gets the leader of this window
  *
- * Note: this function returns even NULL if the leader
+ * @note this function returns even NULL if the leader
  * is a foreign window
  */
 Ewl_Window *
@@ -754,7 +754,7 @@
  * @return Returns the leader of this window or NULL
  * @brief Gets the leader of this window
  *
- * Note: this function returns even NULL if the leader
+ * @note this function returns even NULL if the leader
  * is a ewl window
  */
 Ewl_Embed_Window *
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.165
retrieving revision 1.166
diff -u -3 -r1.165 -r1.166
--- ewl_widget.c11 Jun 2008 23:04:45 -  1.165
+++ ewl_widget.c1 Jul 2008 10:11:25 -   1.166
@@ -1072,7 +1072,7 @@
  * @return Returns the current text on success, NULL on failure.
  * @brief Retrieve the text of the given theme part of a widget
  *
- * Note, the returned value will only be valid until the next time
+ * @note The returned value will only be valid until the next time
  * ewl_widget_appearance_text_set() is called on this widget.
  */
 const char *
@@ -1619,7 +1619,7 @@
  * the same layer with its sibling widgets. In most cases you also want to
  * set it as internal.
  *
- * Note: You cannot change the unmanaged state if the widget already has
+ * @note You cannot change the unmanaged state if the widget already has
  * a parent.
  */
 void
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_range.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_range.c 7 May 2008 13:38:25 -   1.13
+++ ewl_range.c 1 Jul 2008 10:11:25 -   1.14
@@ -11,7 +11,7 @@
  * @return Returns no value.
  * @brief Initialize the range to some sane starting values
  *
- * Note, there is no ewl_range_new(), becasue range only serves
+ * @note There is no ewl_range_new(), becasue range only serves
  * as a common API for seeker, spinner and progressbar
  */
 int
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_label.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- ewl_label.c 7 May 2008 13:38:23 -   1.30
+++ ewl_label.c 1 Jul 2008 10:11:25 -   1.31
@@ -80,8 +80,10 @@
 /**
  * @param la: The Ewl_Label to get the text from
  * @return Returns no value.
- * @brief Gets the current text set into the label. Note, this pointer will
- * only be valid until the next time ewl_label_text_set() is called.
+ * @brief Gets the current text set into the label. 
+ *
+ * @note This pointer will only be valid until the next time 
+ * ewl_label_text_set() is called.
  */
 const char *
 ewl_label_text_get(Ewl_Label *la)
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_icon.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- ewl_icon.c  7 May 2008 13:38:23 -   1.45
+++ ewl_icon.c  1 Jul 2008 10:11:25 -   1.46
@@ -170,7 +170,11 @@
  * @param icon: The icon to set the part to hide of
  * @param part: The part to hide
  * @return Returns no value.
- * @brief Hide the given part of the icon. Note: You can only hide one part.
+ * @brief Hide the given part of the icon.
+ *
+ * The give part of the icon will be hidden.
+ *
+ * @note You can only hide one part.
  */
 void
 ewl_icon_part_hide(Ewl_Icon *icon, Ewl_Icon_Part part)
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_container.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -3 -r1.75 -r1.76
--- ewl_container.c 4 Jun 2008 20:18:26 -   1.75
+++ ewl_container.c 1 Jul 2008 10:11:25 -   1.76
@@ -474,7 +474,8 @@
  *
  * This function return the number of visible child widgets in this container,
  * no matter if the container is set to redirect or not.
- * Note: other than ewl_container_count_get() and
+ * 
+ * @note Other than ewl_container_count_get() and
  * ewl_container_count_internal_get() it does not return the number of
  * children in the redirection end container.
  */



-
Check out 

E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_datepicker.c 


Log Message:
fit popup to parent widget

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_datepicker.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ewl_datepicker.c7 May 2008 13:38:23 -   1.26
+++ ewl_datepicker.c28 Jun 2008 09:48:40 -  1.27
@@ -49,17 +49,17 @@
 
 ewl_widget_appearance_set(EWL_WIDGET(dp), EWL_DATEPICKER_TYPE);
 ewl_widget_inherit(EWL_WIDGET(dp), EWL_DATEPICKER_TYPE);
-ewl_object_fill_policy_set(EWL_OBJECT(dp), EWL_FLAG_FILL_HFILL |
-EWL_FLAG_FILL_NONE);
+ewl_object_fill_policy_set(EWL_OBJECT(dp), EWL_FLAG_FILL_NONE);
 
 dp-calendar_window = ewl_popup_new();
 ewl_widget_appearance_set(dp-calendar_window,
 EWL_DATEPICKER_TYPE/EWL_POPUP_TYPE);
 ewl_object_fill_policy_set(EWL_OBJECT(dp-calendar_window),
-EWL_FLAG_FILL_NONE);
+EWL_FLAG_FILL_HFILL);
 ewl_popup_type_set(EWL_POPUP(dp-calendar_window),
 EWL_POPUP_TYPE_MENU_VERTICAL);
 ewl_popup_follow_set(EWL_POPUP(dp-calendar_window), EWL_WIDGET(dp));
+ewl_popup_fit_to_follow_set(EWL_POPUP(dp-calendar_window), TRUE);
 ewl_window_keyboard_grab_set(EWL_WINDOW(dp-calendar_window), TRUE);
 ewl_window_pointer_grab_set(EWL_WINDOW(dp-calendar_window), TRUE);
 ewl_callback_append(dp-calendar_window, EWL_CALLBACK_MOUSE_DOWN,
@@ -67,7 +67,7 @@
 
 dp-calendar = ewl_calendar_new();
 ewl_object_fill_policy_set(EWL_OBJECT(dp-calendar),
-EWL_FLAG_FILL_NONE);
+EWL_FLAG_FILL_HFILL);
 ewl_container_child_append(EWL_CONTAINER(dp-calendar_window),
 dp-calendar);
 ewl_callback_append(EWL_WIDGET(dp-calendar),



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text_context.c 


Log Message:
- fix wrap and align issues of the text widget
- bg color works now for the text

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_context.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_text_context.c  7 May 2008 13:38:25 -   1.11
+++ ewl_text_context.c  28 Jun 2008 10:02:31 -  1.12
@@ -439,9 +439,16 @@
 fmt[pos].val = t;
 fmt[pos++].free = TRUE;
 
-fmt[pos].key = backing_color;
-fmt[pos].val = 
ewl_text_context_color_string_get((ctx-style_colors.bg));
-fmt[pos++].free = TRUE;
+if (ctx-style_colors.bg.a)
+{
+fmt[pos].key = backing;
+fmt[pos].val = on;
+fmt[pos++].free = FALSE;
+
+fmt[pos].key = backing_color;
+fmt[pos].val = 
ewl_text_context_color_string_get((ctx-style_colors.bg));
+fmt[pos++].free = TRUE;
+}
 
 fmt[pos].key = color;
 fmt[pos].val = ewl_text_context_color_string_get((ctx-color));
@@ -532,8 +539,11 @@
 #define KEY_COMPARE(k1, k2) if (k1  k2) goto CTX1_LARGER; else if (k2  k1) 
goto CTX2_LARGER;
 
 KEY_COMPARE(ecore_str_compare(tx1-font, tx2-font), 0);
+KEY_COMPARE(ecore_str_compare(tx1-font_source, tx2-font_source), 0);
 KEY_COMPARE(tx1-size, tx2-size);
 KEY_COMPARE(tx1-styles, tx2-styles);
+KEY_COMPARE(tx1-align, tx2-align);
+KEY_COMPARE(tx1-wrap, tx2-wrap);
 KEY_COMPARE(KEY_BUILD(tx1-color), KEY_BUILD(tx2-color));
 KEY_COMPARE(KEY_BUILD(tx1-style_colors.bg),
 KEY_BUILD(tx2-style_colors.bg));



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin


Modified Files:
main.c 


Log Message:
- fix wrap and align issues of the text widget
- bg color works now for the text

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -u -3 -r1.104 -r1.105
--- main.c  17 Jun 2008 23:00:15 -  1.104
+++ main.c  28 Jun 2008 10:02:31 -  1.105
@@ -726,7 +726,6 @@
 ewl_container_child_append(EWL_CONTAINER(o2), o);
 ewl_widget_name_set(o, tutorial_text);
 ewl_text_selectable_set(EWL_TEXT(o), TRUE);
-ewl_text_wrap_set(EWL_TEXT(o), EWL_TEXT_WRAP_WORD);
 ewl_widget_show(o);
 
 o = ewl_statusbar_new();
@@ -926,7 +925,6 @@
 txt = ewl_io_manager_string_read(str, text/c);
 if (txt)
 {
-ewl_text_wrap_set(EWL_TEXT(txt), EWL_TEXT_WRAP_WORD);
 ewl_text_selectable_set(EWL_TEXT(txt), TRUE);
 ewl_widget_show(txt);
 ewl_container_child_append(EWL_CONTAINER(txtpane), txt);
@@ -944,6 +942,7 @@
 
 tutorial = EWL_TEXT(ewl_widget_name_find(tutorial_text));
 ewl_text_text_set(tutorial, NULL);
+ewl_text_wrap_set(tutorial, EWL_TEXT_WRAP_WORD);
 if (!str) return;
 
 start = str;
@@ -1173,14 +1172,18 @@
 ewl_text_font_source_set(EWL_TEXT(o), ewl_theme_path_get(), 
ewl/default/bold);
 ewl_text_font_size_set(EWL_TEXT(o), 22);
 ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_CENTER);
-ewl_text_styles_set(EWL_TEXT(o), EWL_TEXT_STYLE_SOFT_SHADOW);
+ewl_text_styles_set(EWL_TEXT(o), EWL_TEXT_STYLE_FAR_SHADOW);
+ewl_text_shadow_color_set(EWL_TEXT(o), 0, 0, 0, 30);
 ewl_text_text_append(EWL_TEXT(o), title);
 
+/* enter the new line before change the alignment */
+ewl_text_text_append(EWL_TEXT(o), \n\n);
+
 ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_LEFT);
 ewl_text_styles_set(EWL_TEXT(o), EWL_TEXT_STYLE_NONE);
-ewl_text_font_set(EWL_TEXT(o), NULL);
+ewl_text_wrap_set(EWL_TEXT(o), EWL_TEXT_WRAP_WORD);
 ewl_text_font_size_set(EWL_TEXT(o), 12);
-ewl_text_text_append(EWL_TEXT(o), \n\n);
+ewl_text_font_set(EWL_TEXT(o), NULL);
 ewl_text_text_append(EWL_TEXT(o), text);
 ewl_container_child_append(EWL_CONTAINER(vbox), o);
 ewl_widget_show(o);



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/text


Modified Files:
ewl_text_test.c 


Log Message:
- fix wrap and align issues of the text widget
- bg color works now for the text

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text/ewl_text_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_text_test.c 7 May 2008 13:38:20 -   1.6
+++ ewl_text_test.c 28 Jun 2008 10:02:31 -  1.7
@@ -178,6 +178,10 @@
 printf(Appending 'Align Right.\\n' [279]\n);
 ewl_text_text_append(EWL_TEXT(o), Align Right.\n);  /* 13 */
 
+ewl_text_bg_color_set(EWL_TEXT(o), 255, 255, 255, 255);
+ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_LEFT);
+ewl_text_text_append(EWL_TEXT(o), White Background\n);
+
 return 1;
 }
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text_context.c 


Log Message:
add note

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_context.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ewl_text_context.c  28 Jun 2008 10:02:31 -  1.12
+++ ewl_text_context.c  28 Jun 2008 10:11:27 -  1.13
@@ -513,6 +513,8 @@
 key ^= ecore_str_hash(tx-font_source);
 key ^= (tx-size  5);
 key ^= (tx-styles  7);
+/* FIXME: we need to add align and wrap, to prevent degenerate
+ * hash values */
 
 #define COLOR_HASH(c) (c.r  24 | c.g  16 | c.b  8 | c.a)
 key ^= COLOR_HASH(tx-color);



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin


Modified Files:
main.c 


Log Message:
use a dialog for the about and help window

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v
retrieving revision 1.105
retrieving revision 1.106
diff -u -3 -r1.105 -r1.106
--- main.c  28 Jun 2008 10:02:31 -  1.105
+++ main.c  28 Jun 2008 18:21:36 -  1.106
@@ -12,6 +12,7 @@
 #include ewl_text.h
 #include ewl_tree.h
 #include ewl_icon_theme.h
+#include ewl_dialog.h
 
 #include stdio.h
 #include string.h
@@ -324,10 +325,12 @@
 }
 
 static void
-ewl_test_cb_delete_window(Ewl_Widget *w, void *ev __UNUSED__,
-void *data __UNUSED__)
+ewl_test_cb_delete_window(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__,
+void *data)
 {
-ewl_widget_destroy(w);
+Ewl_Widget *win = data;
+
+ewl_widget_destroy(win);
 
 if ((--window_count)  1)
 ewl_main_quit();
@@ -364,7 +367,7 @@
 ewl_window_name_set(EWL_WINDOW(win), test-name);
 ewl_window_class_set(EWL_WINDOW(win), Ewl Test Window);
 ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW,
-ewl_test_cb_delete_window, NULL);
+ewl_test_cb_delete_window, win);
 if ((width  0)  (height  0))
 ewl_object_size_request(EWL_OBJECT(win), width, height);
 
@@ -1155,14 +1158,18 @@
 
 window_count++;
 
-win = ewl_window_new();
+win = ewl_dialog_new();
 ewl_window_title_set(EWL_WINDOW(win), title);
 ewl_window_class_set(EWL_WINDOW(win), ewl_test);
 ewl_window_name_set(EWL_WINDOW(win), ewl_test);
+ewl_window_dialog_set(EWL_WINDOW(win), TRUE);
 ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW,
-ewl_test_cb_delete_window, NULL);
-ewl_object_size_request(EWL_OBJECT(win), 400, 400);
+ewl_test_cb_delete_window, win);
+ewl_object_h_request(EWL_OBJECT(win), 400);
 ewl_widget_show(win);
+
+/* add the dialog content */
+ewl_dialog_active_area_set(EWL_DIALOG(win), EWL_POSITION_TOP);
 
 vbox = ewl_scrollpane_new();
 ewl_container_child_append(EWL_CONTAINER(win), vbox);
@@ -1186,6 +1193,16 @@
 ewl_text_font_set(EWL_TEXT(o), NULL);
 ewl_text_text_append(EWL_TEXT(o), text);
 ewl_container_child_append(EWL_CONTAINER(vbox), o);
+ewl_widget_show(o);
+
+/* add the ok button now */
+ewl_dialog_active_area_set(EWL_DIALOG(win), EWL_POSITION_BOTTOM);
+
+o = ewl_button_new();
+ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_OK);
+ewl_container_child_append(EWL_CONTAINER(win), o);
+ewl_callback_append(o, EWL_CALLBACK_CLICKED,
+ewl_test_cb_delete_window, win);
 ewl_widget_show(o);
 }
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-28 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin


Modified Files:
main.c 


Log Message:
no need for a scrollpane

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -3 -r1.106 -r1.107
--- main.c  28 Jun 2008 18:21:36 -  1.106
+++ main.c  28 Jun 2008 19:03:00 -  1.107
@@ -1154,7 +1154,7 @@
 static void
 ewl_test_create_info_window(const char *title, const char *text)
 {
-Ewl_Widget *win, *vbox, *o;
+Ewl_Widget *win, *o;
 
 window_count++;
 
@@ -1165,18 +1165,17 @@
 ewl_window_dialog_set(EWL_WINDOW(win), TRUE);
 ewl_callback_append(win, EWL_CALLBACK_DELETE_WINDOW,
 ewl_test_cb_delete_window, win);
-ewl_object_h_request(EWL_OBJECT(win), 400);
 ewl_widget_show(win);
 
 /* add the dialog content */
 ewl_dialog_active_area_set(EWL_DIALOG(win), EWL_POSITION_TOP);
 
-vbox = ewl_scrollpane_new();
-ewl_container_child_append(EWL_CONTAINER(win), vbox);
-ewl_widget_show(vbox);
-
 o = ewl_text_new();
 ewl_text_font_source_set(EWL_TEXT(o), ewl_theme_path_get(), 
ewl/default/bold);
+/* give it a size hint to calculate a good preferred size in the first 
+ * place */
+ewl_object_w_request(EWL_OBJECT(o), 300);
+ewl_object_padding_set(EWL_OBJECT(o), 10, 10, 20, 10);
 ewl_text_font_size_set(EWL_TEXT(o), 22);
 ewl_text_align_set(EWL_TEXT(o), EWL_FLAG_ALIGN_CENTER);
 ewl_text_styles_set(EWL_TEXT(o), EWL_TEXT_STYLE_FAR_SHADOW);
@@ -1192,7 +1191,7 @@
 ewl_text_font_size_set(EWL_TEXT(o), 12);
 ewl_text_font_set(EWL_TEXT(o), NULL);
 ewl_text_text_append(EWL_TEXT(o), text);
-ewl_container_child_append(EWL_CONTAINER(vbox), o);
+ewl_container_child_append(EWL_CONTAINER(win), o);
 ewl_widget_show(o);
 
 /* add the ok button now */



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-27 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_text_context.h 


Log Message:
formating

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text_context.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_text_context.h  7 May 2008 13:38:25 -   1.5
+++ ewl_text_context.h  27 Jun 2008 21:50:00 -  1.6
@@ -19,42 +19,43 @@
  */
 struct Ewl_Text_Context
 {
-const char *font;/** Font name */
-const char *font_source;/** The font source */
-unsigned int styles;/** Styles set in this 
node */
-unsigned int align;/** Text alignment */
-Ewl_Text_Wrap wrap;/** Text wrap setting */
-char size;/** Font size */
-Ewl_Color_Set color;/** Font colour */
+ 
+const char *font;/** Font name */
+const char *font_source; /** The font source */
+unsigned int styles; /** Styles set in this node */
+unsigned int align;  /** Text alignment */
+Ewl_Text_Wrap wrap;  /** Text wrap setting */
+char size;   /** Font size */
+Ewl_Color_Set color; /** Font colour */
 
 struct
 {
-Ewl_Color_Set bg;/** Background colour */
-Ewl_Color_Set glow;/** Glow colour */
-Ewl_Color_Set outline;/** Outline colour */
-Ewl_Color_Set shadow;/** Shadow colour */
-Ewl_Color_Set strikethrough;/** Strikethrough colour 
*/
+Ewl_Color_Set bg;   /** Background colour */
+Ewl_Color_Set glow; /** Glow colour */
+Ewl_Color_Set outline;  /** Outline colour */
+Ewl_Color_Set shadow;   /** Shadow colour */
+Ewl_Color_Set strikethrough;/** Strikethrough colour */
 Ewl_Color_Set underline;/** Underline colour */
-Ewl_Color_Set double_underline;/** Double underline 
colour */
-} style_colors;/** Colour information 
*/
+Ewl_Color_Set double_underline; /** Double underline colour */
+} style_colors;  /** Colour information */
 
-unsigned int ref_count;/** Number of references to this 
context */
-const char *format;/** This context's format string */
+unsigned int ref_count;  /** Number of references to this context */
+const char *format;  /** This context's format string */
 };
 
-int  ewl_text_context_init(void);
-void  ewl_text_context_shutdown(void);
+int   ewl_text_context_init(void);
+void  ewl_text_context_shutdown(void);
 
 Ewl_Text_Context *ewl_text_context_new(void);
 
 Ewl_Text_Context *ewl_text_context_find(Ewl_Text_Context *tx,
-   unsigned int context_mask, Ewl_Text_Context *tx_change);
+unsigned int context_mask, Ewl_Text_Context 
*tx_change);
 
-void  ewl_text_context_acquire(Ewl_Text_Context *tx);
-int  ewl_text_context_release(Ewl_Text_Context *tx);
+void  ewl_text_context_acquire(Ewl_Text_Context *tx);
+int   ewl_text_context_release(Ewl_Text_Context *tx);
 
-void  ewl_text_context_print(Ewl_Text_Context *tx, const char 
*indent);
-void  ewl_text_context_format_string_create(Ewl_Text_Context 
*ctx);
+void  ewl_text_context_print(Ewl_Text_Context *tx, const char 
*indent);
+void  ewl_text_context_format_string_create(Ewl_Text_Context *ctx);
 
 /**
  * @}



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-17 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_dnd.h 


Log Message:
formating

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_dnd.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -3 -r1.25 -r1.26
--- ewl_dnd.h   7 May 2008 13:38:23 -   1.25
+++ ewl_dnd.h   17 Jun 2008 21:27:52 -  1.26
@@ -15,26 +15,26 @@
 extern unsigned int EWL_CALLBACK_DND_DATA_RECEIVED;
 extern unsigned int EWL_CALLBACK_DND_DATA_REQUEST;
 
-int   ewl_dnd_init(void);
-void  ewl_dnd_shutdown(void);
+int  ewl_dnd_init(void);
+void ewl_dnd_shutdown(void);
 
-void   ewl_dnd_drag_start(Ewl_Widget *w);
-void   ewl_dnd_drag_drop(Ewl_Widget *w);
-void   ewl_dnd_drag_widget_clear(void);
-Ewl_Widget *ewl_dnd_drag_widget_get(void);
+void ewl_dnd_drag_start(Ewl_Widget *w);
+void ewl_dnd_drag_drop(Ewl_Widget *w);
+void ewl_dnd_drag_widget_clear(void);
+Ewl_Widget  *ewl_dnd_drag_widget_get(void);
 
-int   ewl_dnd_status_get(void);
+int  ewl_dnd_status_get(void);
 
-void  ewl_dnd_provided_types_set(Ewl_Widget *w, const char 
**types);
-int  ewl_dnd_provided_types_contains(Ewl_Widget *w, char 
*type);
-char **ewl_dnd_provided_types_get(Ewl_Widget *w);
+void ewl_dnd_provided_types_set(Ewl_Widget *w, const char **types);
+int  ewl_dnd_provided_types_contains(Ewl_Widget *w, char *type);
+char   **ewl_dnd_provided_types_get(Ewl_Widget *w);
 
-void  ewl_dnd_accepted_types_set(Ewl_Widget *w, const char 
**types);
-int  ewl_dnd_accepted_types_contains(Ewl_Widget *w, char 
*type);
-const char**ewl_dnd_accepted_types_get(Ewl_Widget *w);
+void ewl_dnd_accepted_types_set(Ewl_Widget *w, const char **types);
+int  ewl_dnd_accepted_types_contains(Ewl_Widget *w, char *type);
+const char **ewl_dnd_accepted_types_get(Ewl_Widget *w);
 
-void   ewl_dnd_disable(void);
-void   ewl_dnd_enable(void);
+void ewl_dnd_disable(void);
+void ewl_dnd_enable(void);
 
 /**
  * @}



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-17 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_attach.h ewl_border.h ewl_box.h ewl_button.h 
ewl_calendar.h ewl_callback.h ewl_cell.h ewl_check.h 
ewl_checkbutton.h ewl_colordialog.h ewl_combo.h 


Log Message:
formating

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_attach.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_attach.h7 May 2008 13:38:23 -   1.23
+++ ewl_attach.h17 Jun 2008 22:02:49 -  1.24
@@ -133,12 +133,12 @@
 #define ewl_attach_widget_association_get(w) \
 ewl_attach_get(EWL_WIDGET(w), EWL_ATTACH_TYPE_WIDGET_ASSOCIATION)
 
-void ewl_attach_text_set(Ewl_Widget *w, Ewl_Attach_Type t, const char *data);
-void ewl_attach_widget_set(Ewl_Widget *w, Ewl_Attach_Type t, Ewl_Widget *data);
-void ewl_attach_other_set(Ewl_Widget *w, Ewl_Attach_Type t, void *data);
+void  ewl_attach_text_set(Ewl_Widget *w, Ewl_Attach_Type t, const char *data);
+void  ewl_attach_widget_set(Ewl_Widget *w, Ewl_Attach_Type t, Ewl_Widget 
*data);
+void  ewl_attach_other_set(Ewl_Widget *w, Ewl_Attach_Type t, void *data);
 void *ewl_attach_get(Ewl_Widget *w, Ewl_Attach_Type t);
 
-void ewl_attach_list_del(Ewl_Attach_List *list, Ewl_Attach_Type type);
+void  ewl_attach_list_del(Ewl_Attach_List *list, Ewl_Attach_Type type);
 
 /**
  * @}
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_border.h,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_border.h7 May 2008 13:38:23 -   1.19
+++ ewl_border.h17 Jun 2008 22:02:49 -  1.20
@@ -57,18 +57,18 @@
 Ewl_Position label_position;/** Flags for placing the label */
 };
 
-Ewl_Widget *ewl_border_new(void);
-int  ewl_border_init(Ewl_Border * b);
+Ewl_Widget  *ewl_border_new(void);
+int  ewl_border_init(Ewl_Border * b);
 
-void  ewl_border_label_set(Ewl_Border *b, const char *t);
-const char *ewl_border_label_get(Ewl_Border *b);
+void ewl_border_label_set(Ewl_Border *b, const char *t);
+const char  *ewl_border_label_get(Ewl_Border *b);
 
-void  ewl_border_label_position_set(Ewl_Border *b, 
Ewl_Position pos);
-Ewl_Position  ewl_border_label_position_get(Ewl_Border *b);
+void ewl_border_label_position_set(Ewl_Border *b, Ewl_Position 
pos);
+Ewl_Position ewl_border_label_position_get(Ewl_Border *b);
 
-void  ewl_border_label_alignment_set(Ewl_Border *b,
+void ewl_border_label_alignment_set(Ewl_Border *b,
 unsigned int align);
-unsigned int  ewl_border_label_alignment_get(Ewl_Border *b);
+unsigned int ewl_border_label_alignment_get(Ewl_Border *b);
 
 /**
  * @}
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_box.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_box.h   7 May 2008 13:38:23 -   1.24
+++ ewl_box.h   17 Jun 2008 22:02:49 -  1.25
@@ -54,23 +54,23 @@
  */
 struct Ewl_Box
 {
-Ewl_Container container; /** Inherit from Ewl_Container */
+Ewl_Container container;/** Inherit from Ewl_Container */
 
-Ewl_Orientation orientation; /** Indicate the orientation of 
layout */
-int spacing; /** Space between each widget in 
the box */
+Ewl_Orientation orientation;/** Indicate the orientation of layout */
+int spacing;/** Space between each widget in the box 
*/
 
-unsigned int homogeneous; /** Flag indicating space 
assignemnt */
+unsigned int homogeneous;   /** Flag indicating space assignemnt */
 };
 
-Ewl_Widget *ewl_box_new(void);
-Ewl_Widget *ewl_hbox_new(void);
-Ewl_Widget *ewl_vbox_new(void);
-int   ewl_box_init(Ewl_Box *box);
-void  ewl_box_orientation_set(Ewl_Box *b, Ewl_Orientation o);
+Ewl_Widget  *ewl_box_new(void);
+Ewl_Widget  *ewl_hbox_new(void);
+Ewl_Widget  *ewl_vbox_new(void);
+int  ewl_box_init(Ewl_Box *box);
+void ewl_box_orientation_set(Ewl_Box *b, Ewl_Orientation o);
 Ewl_Orientation  ewl_box_orientation_get(Ewl_Box *b);
-void  ewl_box_spacing_set(Ewl_Box *b, int spacing);
-void   ewl_box_homogeneous_set(Ewl_Box *b, unsigned int h);
-unsigned int  ewl_box_homogeneous_get(Ewl_Box *b);
+void ewl_box_spacing_set(Ewl_Box *b, int spacing);
+void ewl_box_homogeneous_set(Ewl_Box *b, unsigned int h);
+unsigned int ewl_box_homogeneous_get(Ewl_Box *b);
 
 /*
  * Internally used callbacks, 

E CVS: libs/ewl pfritz

2008-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_enums.h 


Log Message:
formating

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_enums.h,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -3 -r1.90 -r1.91
--- ewl_enums.h 11 Jun 2008 23:04:45 -  1.90
+++ ewl_enums.h 13 Jun 2008 18:19:35 -  1.91
@@ -107,7 +107,7 @@
 EWL_FLAG_FILL_HSHRINKABLE = 0x10, /** Horizontally shrink bit */
 EWL_FLAG_FILL_VSHRINKABLE = 0x20, /** Vertical shrink bit */
 EWL_FLAG_FILL_SHRINKABLE =
-EWL_FLAG_FILL_HSHRINKABLE | EWL_FLAG_FILL_VSHRINKABLE, /** Shrink 
bit */
+EWL_FLAG_FILL_HSHRINKABLE | EWL_FLAG_FILL_VSHRINKABLE, /** 
Shrink bit */
 EWL_FLAG_FILL_HFILL = 0x40, /** Horizontal fill bit */
 EWL_FLAG_FILL_VFILL = 0x80, /** Vertical fill bit */
 EWL_FLAG_FILL_FILL = EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VFILL, /** 
Fill bit */



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17/groups


Modified Files:
text.edc 


Log Message:
use a better min size

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/text.edc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- text.edc9 Apr 2008 00:29:22 -   1.5
+++ text.edc13 Jun 2008 18:47:37 -  1.6
@@ -8,7 +8,7 @@
 group
 {
name: ewl/entry;
-   min: 18 18;
+   min: 18 20;
 
data
{



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/tools/ewl_config


Modified Files:
ewl_config.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/tools/ewl_config/ewl_config.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -3 -r1.56 -r1.57
--- ewl_config.c12 May 2008 12:58:04 -  1.56
+++ ewl_config.c11 Jun 2008 23:04:45 -  1.57
@@ -186,8 +186,6 @@
 o = ewl_hmenubar_new();
 ewl_container_child_append(EWL_CONTAINER(box), o);
 ec_menubar_setup(EWL_MENUBAR(o));
-ewl_object_fill_policy_set(EWL_OBJECT(o),
-EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
 ewl_widget_show(o);
 
 o = ewl_notebook_new();
@@ -293,7 +291,7 @@
 ewl_button_label_set(EWL_BUTTON(menu), menus[i].name);
 ewl_container_child_append(EWL_CONTAINER(m), menu);
 ewl_object_fill_policy_set(EWL_OBJECT(menu),
-EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
+EWL_FLAG_FILL_VFILL);
 ewl_menu_from_info(EWL_MENU(menu), menus[i].info);
 ewl_widget_show(menu);
 }
@@ -492,8 +490,7 @@
 o2 = ewl_grid_new();
 ewl_grid_vhomogeneous_set(EWL_GRID(o2), TRUE);
 ewl_container_child_append(EWL_CONTAINER(box), o2);
-ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_HSHRINK |
-EWL_FLAG_FILL_HFILL);
+ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_HFILL);
 ewl_widget_show(o2);
 
 for (i = 0; buttons[i].label != NULL; i++)
@@ -588,7 +585,7 @@
 o = ewl_button_new();
 ewl_container_child_append(EWL_CONTAINER(about), o);
 ewl_stock_type_set(EWL_STOCK(o), EWL_STOCK_OK);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED, ec_cb_win_hide, about);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER);
 ewl_widget_show(o);



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/freebox


Modified Files:
ewl_freebox_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/freebox/ewl_freebox_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_freebox_test.c  7 May 2008 13:38:16 -   1.3
+++ ewl_freebox_test.c  11 Jun 2008 23:04:42 -  1.4
@@ -102,7 +102,7 @@
 
 o = ewl_button_new();
 ewl_button_label_set(EWL_BUTTON(o), Add items);
-ewl_object_fill_policy_set(EWL_OBJECT(o), 
EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_TOP);
 ewl_container_child_append(EWL_CONTAINER(hbox), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
@@ -111,7 +111,7 @@
 
 o = ewl_button_new();
 ewl_button_label_set(EWL_BUTTON(o), Clear items);
-ewl_object_fill_policy_set(EWL_OBJECT(o), 
EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_TOP);
 ewl_container_child_append(EWL_CONTAINER(hbox), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/notebook


Modified Files:
ewl_notebook_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/notebook/ewl_notebook_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_notebook_test.c 7 May 2008 13:38:18 -   1.3
+++ ewl_notebook_test.c 11 Jun 2008 23:04:43 -  1.4
@@ -219,8 +219,6 @@
 /* title label */
 o = ewl_label_new();
 ewl_label_text_set(EWL_LABEL(o), Main);
-ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
 ewl_container_child_append(EWL_CONTAINER(body), o);
 ewl_widget_show(o);
 
@@ -286,7 +284,6 @@
 ewl_checkbutton_checked_set(EWL_CHECKBUTTON(o), TRUE);
 ewl_button_label_set(EWL_BUTTON(o), Show tabbar);
 ewl_container_child_append(EWL_CONTAINER(body), o);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_LEFT);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
 notebook_cb_toggle_clicked, NULL);
@@ -295,7 +292,6 @@
 o = ewl_checkbutton_new();
 ewl_button_label_set(EWL_BUTTON(o), Homogeneous tabbar);
 ewl_container_child_append(EWL_CONTAINER(body), o);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
 notebook_cb_homogeneous_toggle_clicked, NULL);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_LEFT);
@@ -316,7 +312,6 @@
 o = ewl_label_new();
 ewl_label_text_set(EWL_LABEL(o), name);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_CENTER);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
 ewl_container_child_append(EWL_CONTAINER(box), o);
 ewl_widget_show(o);
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/theme


Modified Files:
ewl_theme_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/theme/ewl_theme_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_theme_test.c7 May 2008 13:38:20 -   1.5
+++ ewl_theme_test.c11 Jun 2008 23:04:44 -  1.6
@@ -82,7 +82,7 @@
 w = ewl_button_new();
 ewl_button_label_set(EWL_BUTTON(w), name);
 ewl_object_fill_policy_set(EWL_OBJECT(w),
-EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+EWL_FLAG_FILL_HFILL);
 ewl_callback_append(w, EWL_CALLBACK_CLICKED,
 cb_select_theme, strdup(name));
 ewl_container_child_append(EWL_CONTAINER(list), w);



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/object


Modified Files:
ewl_object_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/object/ewl_object_test.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_object_test.c   7 May 2008 13:38:18 -   1.11
+++ ewl_object_test.c   11 Jun 2008 23:04:43 -  1.12
@@ -856,7 +856,8 @@
 ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_ALL);
 fill = ewl_object_fill_policy_get(EWL_OBJECT(w));
 
-if ((fill  EWL_FLAG_FILL_HSHRINK)  (fill  EWL_FLAG_FILL_VSHRINK) 
+if ((fill  EWL_FLAG_FILL_HSHRINKABLE) 
+ (fill  EWL_FLAG_FILL_VSHRINKABLE) 
 (fill  EWL_FLAG_FILL_HFILL)  (fill  EWL_FLAG_FILL_VFILL)) {
 ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_NONE);
 fill = ewl_object_fill_policy_get(EWL_OBJECT(w));



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/progressbar


Modified Files:
ewl_progressbar_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/progressbar/ewl_progressbar_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_progressbar_test.c  7 May 2008 13:38:19 -   1.3
+++ ewl_progressbar_test.c  11 Jun 2008 23:04:44 -  1.4
@@ -90,7 +90,10 @@
 progressbar_box = ewl_hbox_new();
 ewl_container_child_append(EWL_CONTAINER(progressbar_vbox),
 progressbar_box);
-ewl_box_spacing_set(EWL_BOX(progressbar_box), 0);
+ewl_object_fill_policy_set(EWL_OBJECT(progressbar_box), 
+EWL_FLAG_FILL_NONE);
+ewl_object_alignment_set(EWL_OBJECT(progressbar_box), 
+EWL_FLAG_ALIGN_CENTER);
 ewl_widget_show(progressbar_box);
 
 button = ewl_button_new();
@@ -98,8 +101,6 @@
 ewl_container_child_append(EWL_CONTAINER(progressbar_box), button);
 ewl_callback_prepend(button, EWL_CALLBACK_CLICKED,
 cb_rerun_progressbars, NULL);
-
-ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
 ewl_widget_show (button);
 
 button = ewl_button_new();
@@ -107,7 +108,6 @@
 ewl_container_child_append(EWL_CONTAINER(progressbar_box), button);
 ewl_callback_prepend(button, EWL_CALLBACK_CLICKED,
 cb_set_new_range, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
 ewl_widget_show (button);
 
 return 1;



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/io_manager


Modified Files:
ewl_io_manager_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/io_manager/ewl_io_manager_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_io_manager_test.c   7 May 2008 13:38:17 -   1.5
+++ ewl_io_manager_test.c   11 Jun 2008 23:04:43 -  1.6
@@ -35,7 +35,7 @@
 o2 = ewl_button_new();
 ewl_stock_type_set(EWL_STOCK(o2), EWL_STOCK_OPEN);
 ewl_callback_append(o2, EWL_CALLBACK_CLICKED, cb_clicked, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_NONE);
 ewl_container_child_append(box, o2);
 ewl_widget_show(o2);
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/paned


Modified Files:
ewl_paned_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/paned/ewl_paned_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_paned_test.c7 May 2008 13:38:18 -   1.7
+++ ewl_paned_test.c11 Jun 2008 23:04:44 -  1.8
@@ -63,29 +63,27 @@
 ewl_widget_show(o);
 
 o = ewl_button_new();
-ewl_button_label_set(EWL_BUTTON(o), HFill | VShrink);
-ewl_object_fill_policy_set(EWL_OBJECT(o),
-EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
+ewl_button_label_set(EWL_BUTTON(o), HFill);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
 ewl_container_child_append(EWL_CONTAINER(pane2), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-ewl_paned_test_cb_clicked, HFill | VShrink);
+ewl_paned_test_cb_clicked, HFill);
 ewl_widget_show(o);
 
 o = ewl_button_new();
-ewl_button_label_set(EWL_BUTTON(o), HShrink | VFill);
-ewl_object_fill_policy_set(EWL_OBJECT(o),
-EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
+ewl_button_label_set(EWL_BUTTON(o), VFill);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_VFILL);
 ewl_container_child_append(EWL_CONTAINER(pane2), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-ewl_paned_test_cb_clicked, HShrink | VFill);
+ewl_paned_test_cb_clicked, VFill);
 ewl_widget_show(o);
 
 o = ewl_button_new();
-ewl_button_label_set(EWL_BUTTON(o), shrink);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
+ewl_button_label_set(EWL_BUTTON(o), shrinkable);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINKABLE);
 ewl_container_child_append(EWL_CONTAINER(pane2), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
-ewl_paned_test_cb_clicked, Shrink);
+ewl_paned_test_cb_clicked, Shrinkable);
 ewl_widget_show(o);
 
 pane3 = ewl_hpaned_new();
@@ -169,7 +167,6 @@
 
 o = ewl_button_new();
 ewl_button_label_set(EWL_BUTTON(o), New Button);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
 ewl_container_child_append(EWL_CONTAINER(p), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
 ewl_paned_test_cb_clicked_destroy, New Button);



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17/groups


Modified Files:
scroll.edc 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/scroll.edc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- scroll.edc  11 Oct 2007 22:33:35 -  1.10
+++ scroll.edc  11 Jun 2008 23:04:42 -  1.11
@@ -80,6 +80,7 @@
 group
 {
name: ewl/seeker/vertical;
+   min: 2 20;
 
parts
{
@@ -102,6 +103,7 @@
 group
 {
name: ewl/seeker/horizontal;
+   min: 20 2;
 
parts
{



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/statusbar


Modified Files:
ewl_statusbar_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/statusbar/ewl_statusbar_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_statusbar_test.c7 May 2008 13:38:20 -   1.3
+++ ewl_statusbar_test.c11 Jun 2008 23:04:44 -  1.4
@@ -42,7 +42,7 @@
 ewl_button_label_set(EWL_BUTTON(button), push);
 ewl_callback_append(button, EWL_CALLBACK_CLICKED, button_push_cb,
 statusbar);
-ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_NONE);
 ewl_container_child_append(EWL_CONTAINER(hbox), button);
 ewl_widget_show(button);
 
@@ -50,7 +50,7 @@
 ewl_button_label_set(EWL_BUTTON(button), pop);
 ewl_callback_append(button, EWL_CALLBACK_CLICKED, button_pop_cb,
 statusbar);
-ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_NONE);
 ewl_container_child_append(EWL_CONTAINER(hbox), button);
 ewl_widget_show(button);
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/toolbar


Modified Files:
ewl_toolbar_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/toolbar/ewl_toolbar_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_toolbar_test.c  7 May 2008 13:38:20 -   1.3
+++ ewl_toolbar_test.c  11 Jun 2008 23:04:44 -  1.4
@@ -33,8 +33,6 @@
 o2 = ewl_toolbar_new();
 ewl_container_child_append(EWL_CONTAINER(body), o2);
 ewl_object_alignment_set(EWL_OBJECT(o2), EWL_FLAG_ALIGN_CENTER);
-ewl_object_fill_policy_set(EWL_OBJECT(o2),
-EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
 ewl_toolbar_icon_part_hide(EWL_TOOLBAR(o2), EWL_ICON_PART_LABEL);
 ewl_widget_show(o2);
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/grid


Modified Files:
ewl_grid_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/grid/ewl_grid_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_grid_test.c 7 May 2008 13:38:16 -   1.4
+++ ewl_grid_test.c 11 Jun 2008 23:04:43 -  1.5
@@ -91,8 +91,7 @@
 /* the hbox */
 hbox = ewl_hbox_new();
 ewl_container_child_append(EWL_CONTAINER(vbox), hbox);
-ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_HFILL
-| EWL_FLAG_FILL_VSHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(hbox), EWL_FLAG_FILL_HFILL);
 ewl_box_homogeneous_set(EWL_BOX(hbox), TRUE);
 ewl_widget_show(hbox);
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/dnd_snoop


Modified Files:
ewl_dnd_snoop_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/dnd_snoop/ewl_dnd_snoop_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_dnd_snoop_test.c7 May 2008 13:38:15 -   1.4
+++ ewl_dnd_snoop_test.c11 Jun 2008 23:04:42 -  1.5
@@ -120,9 +120,6 @@
 ewl_text_outline_color_set(EWL_TEXT(o), 200, 200, 200, 200);
 ewl_text_strikethrough_color_set(EWL_TEXT(o), 0, 0, 0, 255);
 ewl_text_glow_color_set(EWL_TEXT(o), 0, 255, 0, 128);
-
-ewl_object_fill_policy_set(EWL_OBJECT(o),
-EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
 ewl_widget_show(o);
 
 scroll = ewl_scrollpane_new();
@@ -145,7 +142,7 @@
 ewl_container_child_append(EWL_CONTAINER(box), o);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED,
 ewl_dnd_snoop_cb_clear, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_NONE);
 ewl_widget_show(o);
 
 o = ewl_button_new();



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/image


Modified Files:
ewl_image_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/image/ewl_image_test.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_image_test.c7 May 2008 13:38:17 -   1.9
+++ ewl_image_test.c11 Jun 2008 23:04:43 -  1.10
@@ -170,15 +170,12 @@
 
 box = ewl_hbox_new();
 ewl_box_spacing_set(EWL_BOX(box), 5);
-ewl_object_fill_policy_set(EWL_OBJECT(box),
-   EWL_FLAG_FILL_HFILL | 
EWL_FLAG_FILL_HSHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(box), EWL_FLAG_FILL_HFILL);
 ewl_container_child_append(image_box, box);
 ewl_widget_show(box);
 
 entry_path = ewl_entry_new();
 ewl_text_text_set(EWL_TEXT(entry_path), image_file);
-ewl_object_fill_policy_set(EWL_OBJECT(entry_path),
-   EWL_FLAG_FILL_HFILL | 
EWL_FLAG_FILL_HSHRINK);
 ewl_object_alignment_set(EWL_OBJECT(entry_path), 
EWL_FLAG_ALIGN_CENTER);
 ewl_container_child_append(EWL_CONTAINER(box), entry_path);
 ewl_callback_append(entry_path, EWL_CALLBACK_VALUE_CHANGED,



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/menu


Modified Files:
ewl_menu_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/menu/ewl_menu_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_menu_test.c 7 May 2008 13:38:18 -   1.3
+++ ewl_menu_test.c 11 Jun 2008 23:04:43 -  1.4
@@ -38,7 +38,7 @@
 PACKAGE_DATA_DIR /ewl/images/Draw.png, NULL);
 ewl_button_label_set(EWL_BUTTON(menu1), Test Menu);
 ewl_container_child_append(EWL_CONTAINER(box), menu1);
-ewl_object_fill_policy_set(EWL_OBJECT(menu1), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(menu1), EWL_FLAG_FILL_NONE);
 ewl_widget_show(menu1);
 
 item = ewl_menu_item_new();



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/text_editor


Modified Files:
ewl_text_editor_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/text_editor/ewl_text_editor_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_text_editor_test.c  7 May 2008 13:38:20 -   1.5
+++ ewl_text_editor_test.c  11 Jun 2008 23:04:44 -  1.6
@@ -163,8 +163,7 @@
 ewl_container_child_append(EWL_CONTAINER(hbox), o);
 ewl_callback_append(o, EWL_CALLBACK_VALUE_CHANGED,
 ete_cb_styles_changed, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(o),
-EWL_FLAG_FILL_HFILL | EWL_FLAG_FILL_VSHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
 ewl_widget_show(o);
 
 o = ewl_label_new();
@@ -231,7 +230,7 @@
 ewl_button_label_set(EWL_BUTTON(o), btns[i].name);
 ewl_container_child_append(EWL_CONTAINER(hbox), o);
 ewl_object_fill_policy_set(EWL_OBJECT(o),
-
EWL_FLAG_FILL_HSHRINK|EWL_FLAG_FILL_VSHRINK);
+EWL_FLAG_FILL_NONE);
 ewl_callback_append(o, EWL_CALLBACK_CLICKED, 
btns[i].cb, NULL);
 ewl_widget_show(o);
 }



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/media


Modified Files:
ewl_media_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/media/ewl_media_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_media_test.c23 May 2008 02:12:04 -  1.6
+++ ewl_media_test.c11 Jun 2008 23:04:43 -  1.7
@@ -270,8 +270,7 @@
 
 /* box to contain contols and scrollers */
 controls = ewl_vbox_new();
-ewl_object_fill_policy_set(EWL_OBJECT(controls),
-EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+ewl_object_fill_policy_set(EWL_OBJECT(controls), EWL_FLAG_FILL_HFILL);
 ewl_container_child_append(EWL_CONTAINER(b), controls);
 ewl_widget_show(controls);
 
@@ -309,7 +308,7 @@
 seeker = ewl_hseeker_new();
 ewl_container_child_append(EWL_CONTAINER(b), seeker);
 ewl_object_fill_policy_set(EWL_OBJECT(seeker),
-EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_HFILL);
 ewl_range_value_set(EWL_RANGE(seeker), 0.0);
 ewl_range_maximum_value_set(EWL_RANGE(seeker), 0.0);
 ewl_range_step_set(EWL_RANGE(seeker), 1.0);
@@ -319,7 +318,7 @@
 /* the time text spot */
 ewl_container_child_append(EWL_CONTAINER(b), time);
 ewl_object_insets_set(EWL_OBJECT(time), 0, 3, 0, 0);
-ewl_object_fill_policy_set(EWL_OBJECT(time), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(time), EWL_FLAG_FILL_NONE);
 ewl_widget_show(time);
 }
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/tree


Modified Files:
ewl_tree_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/tree/ewl_tree_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_tree_test.c 7 May 2008 13:38:21 -   1.7
+++ ewl_tree_test.c 11 Jun 2008 23:04:44 -  1.8
@@ -77,8 +77,7 @@
 
 o2 = ewl_hbox_new();
 ewl_container_child_append(box, o2);
-ewl_object_fill_policy_set(EWL_OBJECT(o2),
-EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_HFILL);
 ewl_widget_show(o2);
 
 /* create our data */



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_box.c ewl_calendar.c ewl_cell.c ewl_colorpicker.c 
ewl_combo.c ewl_dialog.c ewl_enums.h ewl_filepicker.c 
ewl_menubar.c ewl_object.c ewl_object.h ewl_progressbar.c 
ewl_scrollbar.c ewl_scrollpane.c ewl_scrollpane.h ewl_seeker.c 
ewl_separator.c ewl_shadow.c ewl_spinner.c ewl_statusbar.c 
ewl_table.c ewl_toolbar.c ewl_tree.c ewl_widget.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_box.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -3 -r1.57 -r1.58
--- ewl_box.c   7 May 2008 13:38:23 -   1.57
+++ ewl_box.c   11 Jun 2008 23:04:45 -  1.58
@@ -1079,7 +1079,7 @@
  * These are the valid fill policies for this widget.
  */
 ewl_box_vertical-f_policy =
-EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_VFILL;
+EWL_FLAG_FILL_VSHRINKABLE | EWL_FLAG_FILL_VFILL;
 
 /*
  * This sets the aligments for the non-filling direction.
@@ -1120,7 +1120,7 @@
  * These are the valid fill policies for this widget.
  */
 ewl_box_horizontal-f_policy =
-EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_HFILL;
+EWL_FLAG_FILL_HSHRINKABLE | EWL_FLAG_FILL_HFILL;
 
 /*
  * This sets the aligments for the non-filling direction.
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_calendar.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- ewl_calendar.c  7 May 2008 13:38:23 -   1.37
+++ ewl_calendar.c  11 Jun 2008 23:04:45 -  1.38
@@ -92,7 +92,7 @@
 
 o = ewl_icon_new();
 ewl_container_child_append(EWL_CONTAINER(top_hbox), o);
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINKABLE);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_LEFT);
 icon = ewl_icon_theme_icon_path_get(EWL_ICON_GO_PREVIOUS,
 EWL_ICON_SIZE_SMALL);
@@ -106,14 +106,14 @@
 ib-month_label = ewl_label_new();
 ewl_object_fill_policy_set(EWL_OBJECT(ib-month_label),
 EWL_FLAG_FILL_HFILL |
-EWL_FLAG_FILL_VSHRINK);
+EWL_FLAG_FILL_VSHRINKABLE);
 ewl_object_alignment_set(EWL_OBJECT(ib-month_label),
 EWL_FLAG_ALIGN_CENTER);
 ewl_container_child_append(EWL_CONTAINER(top_hbox), ib-month_label);
 ewl_widget_show(ib-month_label);
 
 o = ewl_icon_new();
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_SHRINKABLE);
 ewl_object_alignment_set(EWL_OBJECT(o), EWL_FLAG_ALIGN_RIGHT);
 ewl_container_child_append(EWL_CONTAINER(top_hbox), o);
 icon = ewl_icon_theme_icon_path_get(EWL_ICON_GO_NEXT,
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_cell.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_cell.c  7 May 2008 13:38:23 -   1.23
+++ ewl_cell.c  11 Jun 2008 23:04:45 -  1.24
@@ -47,7 +47,7 @@
 DRETURN_INT(FALSE, DLEVEL_STABLE);
 
 ewl_object_fill_policy_set(EWL_OBJECT(cell), EWL_FLAG_FILL_FILL |
-   EWL_FLAG_FILL_HSHRINK);
+   EWL_FLAG_FILL_HSHRINKABLE);
 ewl_widget_appearance_set(EWL_WIDGET(cell), EWL_CELL_TYPE);
 ewl_widget_inherit(EWL_WIDGET(cell), EWL_CELL_TYPE);
 
===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_colorpicker.c,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -3 -r1.48 -r1.49
--- ewl_colorpicker.c   7 May 2008 13:38:23 -   1.48
+++ ewl_colorpicker.c   11 Jun 2008 23:04:45 -  1.49
@@ -201,7 +201,7 @@
 ewl_object_padding_set(EWL_OBJECT(o), 2, 2, 

E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/tooltip


Modified Files:
ewl_tooltip_test.c 


Log Message:
add shrinkable fill flag (bug 178) and fix bug 20

This will slightly change the meaning of the shrink flag:
   'shrink': the widget wishes to be smaller then its preferred size
   'shrinkable': the widget can be smaller then its preferred size

For more information see the discussion in bug 178.

If you are using the (old) shrink fill policy in your application, you may want
to check if it still does what you want it to. Or if 'shrinkable' isn't better 
for the job.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/tooltip/ewl_tooltip_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_tooltip_test.c  7 May 2008 13:38:21 -   1.3
+++ ewl_tooltip_test.c  11 Jun 2008 23:04:44 -  1.4
@@ -26,14 +26,14 @@
 button = ewl_button_new();
 ewl_button_label_set(EWL_BUTTON(button), Hover on this button);
 ewl_container_child_append(EWL_CONTAINER(box), button);
-ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_NONE);
 ewl_attach_tooltip_text_set(button, and see.);
 ewl_widget_show(button);
 
 button = ewl_button_new();
 ewl_button_label_set(EWL_BUTTON(button), Hover on this button);
 ewl_container_child_append(EWL_CONTAINER(box), button);
-ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_SHRINK);
+ewl_object_fill_policy_set(EWL_OBJECT(button), EWL_FLAG_FILL_NONE);
 ewl_attach_tooltip_text_set(button, and see more.);
 ewl_widget_show(button);
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-11 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/tools/ewl_config


Modified Files:
ewl_config.c 


Log Message:
use shrink fill policy here

===
RCS file: /cvs/e/e17/libs/ewl/tools/ewl_config/ewl_config.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -3 -r1.57 -r1.58
--- ewl_config.c11 Jun 2008 23:04:45 -  1.57
+++ ewl_config.c11 Jun 2008 23:17:33 -  1.58
@@ -315,16 +315,19 @@
 
 o2 = ewl_border_new();
 ewl_border_label_set(EWL_BORDER(o2), EWL Theme);
+ewl_object_fill_policy_set(EWL_OBJECT(o2), EWL_FLAG_FILL_VFILL);
 ewl_container_child_append(EWL_CONTAINER(box), o2);
 ewl_widget_show(o2);
 
 o3 = ewl_scrollpane_new();
+ewl_object_fill_policy_set(EWL_OBJECT(o3), EWL_FLAG_FILL_VFILL
+| EWL_FLAG_FILL_VSHRINK);
 ewl_container_child_append(EWL_CONTAINER(o2), o3);
 ewl_widget_show(o3);
 
 o = ewl_list_new();
-ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
 list = ecore_list_new();
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
 ewl_widget_name_set(o, EC_EWL_THEME);
 ewl_container_child_append(EWL_CONTAINER(o3), o);
 ewl_mvc_model_set(EWL_MVC(o), ewl_model_ecore_list_instance());



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-07 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/password


Modified Files:
ewl_password_test.c 


Log Message:
use default fill policy

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/password/ewl_password_test.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ewl_password_test.c 7 May 2008 13:38:19 -   1.7
+++ ewl_password_test.c 7 Jun 2008 09:56:03 -   1.8
@@ -35,8 +35,6 @@
 ewl_container_child_append(box, password[0]);
 ewl_callback_append(password[0], EWL_CALLBACK_VALUE_CHANGED,
 cb_fetch_password_text, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(password[0]),
-   EWL_FLAG_FILL_HFILL | 
EWL_FLAG_FILL_HSHRINK);
 ewl_widget_show(password[0]);
 
 password[1] = ewl_password_new();
@@ -47,8 +45,6 @@
 ewl_container_child_append(box, password[1]);
 ewl_callback_append(password[1], EWL_CALLBACK_VALUE_CHANGED,
 cb_fetch_password_text, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(password[1]),
-   EWL_FLAG_FILL_HFILL | 
EWL_FLAG_FILL_HSHRINK);
 ewl_widget_show(password[1]);
 
 password[2] = ewl_password_new();
@@ -58,8 +54,6 @@
 ewl_container_child_append(box, password[2]);
 ewl_callback_append(password[2], EWL_CALLBACK_VALUE_CHANGED,
 cb_fetch_password_text, NULL);
-ewl_object_fill_policy_set(EWL_OBJECT(password[2]),
-   EWL_FLAG_FILL_HFILL | 
EWL_FLAG_FILL_HSHRINK);
 ewl_widget_show(password[2]);
 
 button_hbox = ewl_hbox_new();



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-04 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/layer


Modified Files:
ewl_layer_test.c 


Log Message:
split the Ewl_Flags into a object and a widget part, although it is an api 
break it shouldn't affect an app, but it is an ABI break. So please go and 
recompile the apps based on ewl, too.

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/layer/ewl_layer_test.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ewl_layer_test.c7 May 2008 13:38:17 -   1.4
+++ ewl_layer_test.c4 Jun 2008 20:18:26 -   1.5
@@ -102,7 +102,7 @@
 ewl_widget_layer_priority_set(w, 2);
 ewl_container_child_append(EWL_CONTAINER(c), w);
 ewl_object_fill_policy_set(EWL_OBJECT(w), EWL_FLAG_FILL_NONE);
-ewl_object_state_add(EWL_OBJECT(w), EWL_FLAG_STATE_DISABLED);
+ewl_widget_disable(w);
 ewl_widget_show(w);
 dbutton[1] = w;
 



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-06-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_object.h 


Log Message:
formating

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_object.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- ewl_object.h7 May 2008 13:38:25 -   1.31
+++ ewl_object.h3 Jun 2008 22:13:02 -   1.32
@@ -93,88 +93,88 @@
 unsigned int flags; /** Bitmask indicating fill policy and alignment 
*/
 };
 
-int ewl_object_init(Ewl_Object *o);
-void ewl_object_current_geometry_get(Ewl_Object *o, int *x, 
int *y,
+int  ewl_object_init(Ewl_Object *o);
+void ewl_object_current_geometry_get(Ewl_Object *o, int *x, int *y,
 int *w, int *h);
 
-void ewl_object_current_size_get(Ewl_Object *o, int *w, int 
*h);
-int ewl_object_current_x_get(Ewl_Object *o);
-int ewl_object_current_y_get(Ewl_Object *o);
-int ewl_object_current_w_get(Ewl_Object *o);
-int ewl_object_current_h_get(Ewl_Object *o);
-
-void ewl_object_preferred_inner_size_set(Ewl_Object *o, int w, 
int h);
-void ewl_object_preferred_inner_size_get(Ewl_Object *o, int 
*w, int *h);
-void ewl_object_preferred_size_get(Ewl_Object *o, int *w, int 
*h);
-
-void ewl_object_preferred_inner_w_set(Ewl_Object *o, int w);
-int ewl_object_preferred_w_get(Ewl_Object *o);
-int ewl_object_preferred_inner_w_get(Ewl_Object *o);
-
-void ewl_object_preferred_inner_h_set(Ewl_Object *o, int h);
-int ewl_object_preferred_inner_h_get(Ewl_Object *o);
-int ewl_object_preferred_h_get(Ewl_Object *o);
-
-void ewl_object_geometry_request(Ewl_Object *o, int x, int y,
-int w, int h);
-void ewl_object_size_request(Ewl_Object *o, int w, int h);
-void ewl_object_position_request(Ewl_Object *o, int x, int y);
-voidewl_object_x_request(Ewl_Object *o, int x);
-voidewl_object_y_request(Ewl_Object *o, int y);
-void ewl_object_w_request(Ewl_Object *o, int w);
-void ewl_object_h_request(Ewl_Object *o, int h);
-
-void ewl_object_minimum_size_set(Ewl_Object *o, int w, int h);
-voidewl_object_minimum_w_set(Ewl_Object *o, int w);
-voidewl_object_minimum_h_set(Ewl_Object *o, int h);
-
-void  ewl_object_minimum_size_get(Ewl_Object *o, int *w, int 
*h);
-intewl_object_minimum_w_get(Ewl_Object *o);
-intewl_object_minimum_h_get(Ewl_Object *o);
-
-void  ewl_object_maximum_size_set(Ewl_Object *o, int w, int h);
-voidewl_object_maximum_w_set(Ewl_Object *o, int w);
-voidewl_object_maximum_h_set(Ewl_Object *o, int h);
-
-void  ewl_object_maximum_size_get(Ewl_Object *o, int *w, int 
*h);
-intewl_object_maximum_w_get(Ewl_Object *o);
-intewl_object_maximum_h_get(Ewl_Object *o);
-
-unsigned intewl_object_alignment_get(Ewl_Object *o);
-voidewl_object_alignment_set(Ewl_Object *o, unsigned int 
align);
-void ewl_object_place(Ewl_Object *o, int x, int y, int w, int 
h);
+void ewl_object_current_size_get(Ewl_Object *o, int *w, int *h);
+int  ewl_object_current_x_get(Ewl_Object *o);
+int  ewl_object_current_y_get(Ewl_Object *o);
+int  ewl_object_current_w_get(Ewl_Object *o);
+int  ewl_object_current_h_get(Ewl_Object *o);
+
+void ewl_object_preferred_inner_size_set(Ewl_Object *o, int w, int 
h);
+void ewl_object_preferred_inner_size_get(Ewl_Object *o, int *w, 
int *h);
+void ewl_object_preferred_size_get(Ewl_Object *o, int *w, int *h);
+
+void ewl_object_preferred_inner_w_set(Ewl_Object *o, int w);
+int  ewl_object_preferred_w_get(Ewl_Object *o);
+int  ewl_object_preferred_inner_w_get(Ewl_Object *o);
+
+void ewl_object_preferred_inner_h_set(Ewl_Object *o, int h);
+int  ewl_object_preferred_inner_h_get(Ewl_Object *o);
+int  ewl_object_preferred_h_get(Ewl_Object *o);
+
+void ewl_object_geometry_request(Ewl_Object *o, int x, int y,
+ int w, int h);
+void ewl_object_size_request(Ewl_Object *o, int w, int h);
+void ewl_object_position_request(Ewl_Object *o, int x, int y);
+void ewl_object_x_request(Ewl_Object *o, int x);
+void ewl_object_y_request(Ewl_Object *o, 

E CVS: libs/ewl pfritz

2008-06-03 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_widget.h 


Log Message:
formating

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.h,v
retrieving revision 1.72
retrieving revision 1.73
diff -u -3 -r1.72 -r1.73
--- ewl_widget.h7 May 2008 13:38:25 -   1.72
+++ ewl_widget.h3 Jun 2008 22:36:22 -   1.73
@@ -42,7 +42,7 @@
 struct Ewl_Attach_List
 {
 void **list;/** The attachment list */
-unsigned int direct:1;/** Is this a direct pointer to an 
attached item */
+unsigned int direct:1;  /** Is this a direct pointer to an 
attached item */
 unsigned int len:31;/** Number of things in the attachment 
list */
 };
 
@@ -62,8 +62,8 @@
  */
 struct Ewl_Pair
 {
-const char *key; /** The key */
-char *value;/** The value */
+const char *key;/** The key */
+char *value;/** The value */
 };
 
 /**
@@ -77,8 +77,8 @@
 struct Ewl_Pair_List
 {
 Ewl_Pair **list;/** The key/value list */
-unsigned int direct:1;/** Does this list point directly to a 
pair */
-unsigned int len:31;/** Length of the list */
+unsigned int direct:1;  /** Does this list point directly to a pair */
+unsigned int len:31;/** Length of the list */
 };
 
 /**
@@ -91,10 +91,10 @@
  */
 struct Ewl_Callback_Chain
 {
-void **list;/** The callback list */
-unsigned char mask;/** The callback mask */
-unsigned char len;/** Length of the list */
-unsigned char index;/** Current list index */
+void **list;/** The callback list */
+unsigned char mask; /** The callback mask */
+unsigned char len;  /** Length of the list */
+unsigned char index;/** Current list index */
 };
 
 /**
@@ -107,9 +107,9 @@
  */
 struct Ewl_Color_Set
 {
-unsigned char r, /** The red value */
-  g, /** The green value */
-  b, /** The blue value */
+unsigned char r,/** The red value */
+  g,/** The green value */
+  b,/** The blue value */
   a;/** The alpha value */
 };
 
@@ -163,94 +163,95 @@
 
 };
 
-Ewl_Widget *ewl_widget_new(void);
-int  ewl_widget_init(Ewl_Widget *w);
-void ewl_widget_free(Ewl_Widget *w);
-
-void  ewl_widget_name_set(Ewl_Widget *w, const char *name);
-const char *ewl_widget_name_get(Ewl_Widget *w);
-Ewl_Widget *ewl_widget_name_find(const char *name);
-
-void  ewl_widget_reparent(Ewl_Widget *widget);
-void  ewl_widget_realize(Ewl_Widget *widget);
-void  ewl_widget_unrealize(Ewl_Widget *w);
-void  ewl_widget_reveal(Ewl_Widget *w);
-void  ewl_widget_obscure(Ewl_Widget *w);
-void  ewl_widget_show(Ewl_Widget *widget);
-void  ewl_widget_hide(Ewl_Widget *widget);
-void   ewl_widget_destroy(Ewl_Widget *widget);
-void  ewl_widget_configure(Ewl_Widget *widget);
-
-void  ewl_widget_data_set(Ewl_Widget *w, void *k, void *v);
-void *ewl_widget_data_del(Ewl_Widget *w, void *k);
-void *ewl_widget_data_get(Ewl_Widget *w, void *k);
+Ewl_Widget  *ewl_widget_new(void);
+int  ewl_widget_init(Ewl_Widget *w);
+void ewl_widget_free(Ewl_Widget *w);
+
+void ewl_widget_name_set(Ewl_Widget *w, const char *name);
+const char  *ewl_widget_name_get(Ewl_Widget *w);
+Ewl_Widget  *ewl_widget_name_find(const char *name);
+
+void ewl_widget_reparent(Ewl_Widget *widget);
+void ewl_widget_realize(Ewl_Widget *widget);
+void ewl_widget_unrealize(Ewl_Widget *w);
+void ewl_widget_reveal(Ewl_Widget *w);
+void ewl_widget_obscure(Ewl_Widget *w);
+void ewl_widget_show(Ewl_Widget *widget);
+void ewl_widget_hide(Ewl_Widget *widget);
+void ewl_widget_destroy(Ewl_Widget *widget);
+void ewl_widget_configure(Ewl_Widget *widget);
+
+void ewl_widget_data_set(Ewl_Widget *w, void *k, void *v);
+void*ewl_widget_data_del(Ewl_Widget *w, void *k);
+void*ewl_widget_data_get(Ewl_Widget *w, void *k);
 
-void  ewl_widget_state_set(Ewl_Widget *w, const char *state,
+void ewl_widget_state_set(Ewl_Widget *w, const char *state,
 Ewl_State_Type flag);
 
-void  ewl_widget_appearance_set(Ewl_Widget *w, const char 

E CVS: libs/ewl pfritz

2008-05-29 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
ewl_misc.c 


Log Message:
move the right size, thanks to Sachiel

===
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_misc.c,v
retrieving revision 1.110
retrieving revision 1.111
diff -u -3 -r1.110 -r1.111
--- ewl_misc.c  7 May 2008 13:38:25 -   1.110
+++ ewl_misc.c  29 May 2008 13:38:11 -  1.111
@@ -932,7 +932,9 @@
 if (i  queue_buffer-end - 1)
 memmove(queue_buffer-buffer + i,
 queue_buffer-buffer + i + 1,
-queue_buffer-end - i - 1);
+(queue_buffer-end - i - 1)
+* sizeof(void *));
+
 queue_buffer-end--;
 }
 }



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-22 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/media


Modified Files:
ewl_media_test.c 


Log Message:
open videos again

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/media/ewl_media_test.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_media_test.c7 May 2008 13:38:17 -   1.5
+++ ewl_media_test.c23 May 2008 02:12:04 -  1.6
@@ -192,7 +192,7 @@
 ewl_widget_hide(fd_win);
 
 e = event;
-if (e-response == EWL_STOCK_OK)
+if (e-response == EWL_STOCK_OPEN)
 {
 int len;
 char *file = NULL;



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-19 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/data/themes/e17/groups


Modified Files:
tree.edc 


Log Message:
don't do a transition, that looks odd when a cell is revealed

===
RCS file: /cvs/e/e17/libs/ewl/data/themes/e17/groups/tree.edc,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- tree.edc26 Apr 2008 21:07:35 -  1.21
+++ tree.edc19 May 2008 19:26:24 -  1.22
@@ -457,7 +457,6 @@
signal: selected;
source: *;
action: STATE_SET selected 0.0;
-   transition: DECELERATE 0.25;
target: selected;
}
program
@@ -466,7 +465,6 @@
signal: deselect;
source: *;
action: STATE_SET default 0.0;
-   transition: ACCELERATE 0.01;
target: selected;
}
}



-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-15 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin


Modified Files:
main.c 


Log Message:
leaks--, thanks to caro

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/main.c,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -3 -r1.101 -r1.102
--- main.c  7 May 2008 13:38:14 -   1.101
+++ main.c  15 May 2008 13:59:11 -  1.102
@@ -784,6 +784,7 @@
 
 snprintf(filename, sizeof(filename),
 PACKAGE_DATA_DIR /ewl/tutorials/%s.dox, file);
+free(file);
 
 txt = read_file(filename);
 tutorial_parse(txt);



-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-14 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl


Modified Files:
configure.in 


Log Message:
i forgot that

===
RCS file: /cvs/e/e17/libs/ewl/configure.in,v
retrieving revision 1.136
retrieving revision 1.137
diff -u -3 -r1.136 -r1.137
--- configure.in27 Apr 2008 04:50:26 -  1.136
+++ configure.in14 May 2008 17:38:45 -  1.137
@@ -306,6 +306,7 @@
 src/bin/tests/notebook/Makefile
 src/bin/tests/object/Makefile
 src/bin/tests/range/Makefile
+src/bin/tests/reparent/Makefile
 src/bin/tests/paned/Makefile
 src/bin/tests/password/Makefile
 src/bin/tests/pointer/Makefile



-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/reparent




Log Message:
Directory /cvs/e/e17/libs/ewl/src/bin/tests/reparent added to the repository




-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/reparent


Added Files:
.cvsignore Makefile.am ewl_reparent_test.c 


Log Message:
add reparent test




-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-13 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests


Modified Files:
Makefile.am 


Log Message:
add reparent test

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/Makefile.am,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -3 -r1.60 -r1.61
--- Makefile.am 20 Jan 2008 05:06:12 -  1.60
+++ Makefile.am 13 May 2008 21:51:43 -  1.61
@@ -46,6 +46,7 @@
progressbar \
puzzle \
range \
+   reparent \
scrollbar \
scrollpane \
seeker \



-
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-05-12 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/tools/ewl_config


Modified Files:
ewl_config.c 


Log Message:
use HFILL

===
RCS file: /cvs/e/e17/libs/ewl/tools/ewl_config/ewl_config.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- ewl_config.c7 May 2008 13:38:26 -   1.55
+++ ewl_config.c12 May 2008 12:58:04 -  1.56
@@ -325,6 +325,7 @@
 ewl_widget_show(o3);
 
 o = ewl_list_new();
+ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
 list = ecore_list_new();
 ewl_widget_name_set(o, EC_EWL_THEME);
 ewl_container_child_append(EWL_CONTAINER(o3), o);



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl pfritz

2008-04-29 Thread Enlightenment CVS
Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin/tests/list


Modified Files:
Makefile.am ewl_list_test.c 


Log Message:
use the correct paths

===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/list/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- Makefile.am 1 Mar 2008 08:16:51 -   1.5
+++ Makefile.am 29 Apr 2008 23:10:19 -  1.6
@@ -6,6 +6,7 @@
 -I$(top_builddir)/src/lib \
 -I$(top_srcdir)/src/bin \
 -I$(top_builddir)/src/bin \
+-DPACKAGE_DATA_DIR=\$(datadir)\ \
 @EDJE_CFLAGS@ \
 @ECORE_CFLAGS@ \
 @EVAS_CFLAGS@ \
===
RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/list/ewl_list_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_list_test.c 26 Apr 2008 21:07:35 -  1.3
+++ ewl_list_test.c 29 Apr 2008 23:10:19 -  1.4
@@ -60,6 +60,7 @@
/* create a list using an ecore_list of strings of labels */
o = ewl_border_new();
ewl_border_label_set(EWL_BORDER(o), Label List (single select));
+   ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
ewl_container_child_append(EWL_CONTAINER(box), o);
ewl_widget_show(o);
 
@@ -85,6 +86,7 @@
/* create a list using an ecore_list of strings of labels */
o = ewl_border_new();
ewl_border_label_set(EWL_BORDER(o), Label List (multi select));
+   ewl_object_fill_policy_set(EWL_OBJECT(o), EWL_FLAG_FILL_HFILL);
ewl_container_child_append(EWL_CONTAINER(box), o);
ewl_widget_show(o);
 
@@ -139,15 +141,15 @@
data-rows = calloc(3, sizeof(List_Test_Row_Data *));
 
data-rows[0] = calloc(1, sizeof(List_Test_Row_Data));
-   data-rows[0]-image = strdup(/usr/local/share/ewl/e-logo.png);
+   data-rows[0]-image = strdup(PACKAGE_DATA_DIR/ewl/images/e-logo.png);
data-rows[0]-text = strdup(The E logo);
 
data-rows[1] = calloc(1, sizeof(List_Test_Row_Data));
-   data-rows[1]-image = strdup(/usr/local/share/ewl/entice.png);
+   data-rows[1]-image = strdup(PACKAGE_DATA_DIR/ewl/images/entice.png);
data-rows[1]-text = strdup(The Entice image);
 
data-rows[2] = calloc(1, sizeof(List_Test_Row_Data));
-   data-rows[2]-image = strdup(/usr/local/share/entrance.png);
+   data-rows[2]-image = 
strdup(PACKAGE_DATA_DIR/ewl/images/entrance.png);
data-rows[2]-text = strdup(The Entrance image);
 
data-count = 3;
@@ -167,6 +169,7 @@
w = ewl_button_new();
ewl_button_label_set(EWL_BUTTON(w), d-text);
ewl_button_image_set(EWL_BUTTON(w), d-image, NULL);
+   ewl_button_image_size_set(EWL_BUTTON(w), 24, 24);
ewl_widget_show(w);
 
return w;



-
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


  1   2   3   4   5   >