[E-devel] [PATCH] Exquisite clear text fix

2008-10-03 Thread Lars Munch
Hi

In exquisite: if the textblock has not been used and the CLEAR command
is called, it will enable the textblock and then clear it. This causes
the textblock to appear and then quickly disappear again. Attached patch
makes sure that the CLEAR command does not enable the text block before
clearing it.

Please apply

Regards
Lars Munch
Index: src/bin/theme.c
===
--- src/bin/theme.c	(revision 36407)
+++ src/bin/theme.c	(working copy)
@@ -58,8 +58,6 @@
   edje_object_signal_emit(o_bg, exquisite, text_set);  
 else if(signal == 2)
   edje_object_signal_emit(o_bg, exquisite, status_set);
-else if(signal == 3) 
-  edje_object_signal_emit(o_bg, exquisite, text_clear);
 
 edje_object_part_text_set(o_bg, textarea, buf);
 edje_object_part_text_set(o_bg, statusarea, buf2);
@@ -242,9 +240,14 @@
   evas_list_free(messages);
   messages = NULL;
 }  
-  
-  /*A 3 means a text clear signal will be sent*/
-  theme_update_text(3);
+
+   if (edje_object_part_exists(o_bg, textarea) 
+   edje_object_part_exists(o_bg, statusarea))
+ {
+	edje_object_signal_emit(o_bg, exquisite, text_clear);
+	edje_object_part_text_set(o_bg, textarea, );
+	edje_object_part_text_set(o_bg, statusarea, );
+ }
 }
 
 static void
-
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-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] compiling evil on eee 1000h

2008-10-03 Thread Samuel Nicholas


 Hi Samuel,
 You should try this :

 ./autogen.sh --enable-ecore-sdl --enable-ecore-win32 --disable-ecore-con
 --with-iconv-link=-liconv
 (see E wiki : http://wiki.enlightenment.org/index.php/EFL_Windows_XP)

 This line should work, but you *MUST* have glew and directX installed 
 and
 configured. See wiki for help.

 why *MUST* ? It's strange, i don't remember that one or the other was 
 needed. I'll look at it.
It works fine without both win32 and OpenGL,
my error is with ecore_file_download which dependl on ecore_con 
considering i have --disabled that code it shouldnt want to build it 
needs some #ifdef love methinks

i just hacked up the code removing any reference to 
ecore_file_download(please don't hurt me  :)

i'm prolly going to be installing the directx SDK tho so i will be 
trying that laters
 Ths third patch is for edje, and just comment call to  mkstemp in
 edje_edit.c. This patch is not a solution, and we should implement this
 function in evil i guess ?

 that function is already in Evil.
it complains to me too..

 But you should be able to compile edje with it, if you run :
 ./autogen.sh --disable-edje-cc
 This is very annoying, as you can't generate edj file !
thanks again, not so annoying to me :) but to others i'm sure

now its off to make some tests etc :)

thanks so much for help and replies.
Samuel Nicholas

-
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-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Additions of subicons to ilist and revamp of transitions settings

2008-10-03 Thread Chidambar 'ilLogict' Zinnoury
 Hello all!

 Here are some patches:
- e-ilist-subicons.patch adds subicons support to ilist: subicons are
icons that you can show on top of icons to add some hint for the user:
e.g. that an element changed. Position and size is determined by theme
(on bling-bling and b and w, I put them on top right).
- e-preview-maximum_size_removal.patch removes maximum size settings so
that previews are expanded on select configuration settings :)
- e-modules-transitions.patch is a revamp of transition settings
window:
  - adds support to tell if configuration has been changed or is the
same as previous settings
  - layout has been modified so that preview is under ilists
  - icons have to been added to tell if a transition for an event has
been set or none
  - if a particular event transition has been modified, its icon will
get a subicon (none for bling-bling, exclamation mark for b and w, fell
free to modify) to show that there are unsaved modifications

 Comments welcome.

 Cheers!

 Chidambar 'ilLogict' Zinnoury
Index: trunk/e/src/bin/e_ilist.c
===
--- trunk/e/src/bin/e_ilist.c	(revision 36392)
+++ trunk/e/src/bin/e_ilist.c	(working copy)
@@ -335,6 +335,7 @@
 	if (!(si = sd-items-data)) continue;
 	sd-items = evas_list_remove_list(sd-items, sd-items);
 	if (si-o_icon) evas_object_del(si-o_icon);
+	if (si-o_subicon) evas_object_del(si-o_subicon);
 	evas_object_del(si-o_base);
 	E_FREE(si);
  }
@@ -556,6 +557,20 @@
return NULL;
 }
 
+EAPI Evas_Object *
+e_ilist_selected_subicon_get(Evas_Object *obj) 
+{
+   E_Ilist_Item *si = NULL;
+
+   API_ENTRY return NULL;
+   if (!sd-items) return NULL;
+   if (sd-multi_select) return NULL;
+   if (sd-selected  0) return NULL;
+   si = evas_list_nth(sd-items, sd-selected);
+   if (si) return si-o_subicon;
+   return NULL;
+}
+
 EAPI void 
 e_ilist_selected_geometry_get(Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h) 
 {
@@ -599,6 +614,7 @@
sd-items = evas_list_remove(sd-items, si);
if (sd-selected == n) sd-selected = -1;
if (si-o_icon) evas_object_del(si-o_icon);
+   if (si-o_subicon) evas_object_del(si-o_subicon);
evas_object_del(si-o_base);
E_FREE(si);
 }
@@ -663,6 +679,40 @@
  }
 }
 
+EAPI Evas_Object *
+e_ilist_nth_subicon_get(Evas_Object *obj, int n)
+{
+   E_Ilist_Item *si = NULL;
+
+   API_ENTRY return NULL;
+   if (!sd-items) return NULL;
+   si = evas_list_nth(sd-items, n);
+   if (si) return si-o_subicon;
+   return NULL;
+}
+
+EAPI void 
+e_ilist_nth_subicon_set(Evas_Object *obj, int n, Evas_Object *subicon)
+{
+   E_Ilist_Item *si = NULL;
+
+   API_ENTRY return;
+   if (!sd-items) return;
+   if (!(si = evas_list_nth(sd-items, n))) return;
+   if (si-o_subicon)
+ {
+	edje_object_part_unswallow(si-o_base, si-o_subicon);
+	evas_object_del(si-o_subicon);
+ }
+   si-o_subicon = subicon;
+   if (si-o_subicon) 
+ {
+	//edje_extern_object_min_size_set(si-o_subicon, sd-iw/4, sd-ih/4);
+	edje_object_part_swallow(si-o_base, e.swallow.subicon, si-o_subicon);
+	evas_object_show(si-o_subicon);
+ }
+}
+
 EAPI int 
 e_ilist_nth_is_header(Evas_Object *obj, int n) 
 {
Index: trunk/e/src/bin/e_ilist.h
===
--- trunk/e/src/bin/e_ilist.h	(revision 36392)
+++ trunk/e/src/bin/e_ilist.h	(working copy)
@@ -11,6 +11,7 @@
void *sd;
Evas_Object *o_base;
Evas_Object *o_icon;
+   Evas_Object *o_subicon;
unsigned char header : 1;
unsigned char selected : 1;
 
@@ -40,6 +41,7 @@
 EAPI void*e_ilist_selected_data_get (Evas_Object *obj);
 EAPI void*e_ilist_selected_data2_get(Evas_Object *obj);
 EAPI Evas_Object *e_ilist_selected_icon_get (Evas_Object *obj);
+EAPI Evas_Object *e_ilist_selected_subicon_get  (Evas_Object *obj);
 EAPI void e_ilist_selected_geometry_get (Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
 EAPI int  e_ilist_selected_count_get(Evas_Object *obj);
 EAPI void e_ilist_remove_num(Evas_Object *obj, int n);
@@ -47,6 +49,8 @@
 EAPI void e_ilist_nth_label_set (Evas_Object *obj, int n, const char *label);
 EAPI Evas_Object *e_ilist_nth_icon_get  (Evas_Object *obj, int n);
 EAPI void e_ilist_nth_icon_set  (Evas_Object *obj, int n, Evas_Object *icon);
+EAPI Evas_Object *e_ilist_nth_subicon_get   (Evas_Object *obj, int n);
+EAPI void e_ilist_nth_subicon_set   (Evas_Object *obj, int n, Evas_Object *subicon);
 EAPI int  e_ilist_nth_is_header (Evas_Object *obj, int n);
 EAPI void e_ilist_nth_geometry_get  (Evas_Object *obj, int n, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
 EAPI void e_ilist_icon_size_set (Evas_Object *obj, Evas_Coord w, Evas_Coord h);
Index: trunk/e/src/bin/e_widget_ilist.c
===

[E-devel] [E-deve] patch: bug: wrong popup dimension computation

2008-10-03 Thread Chidambar 'ilLogict' Zinnoury
 Hello!

 Here is a patch that corrects popup width computations (best seen
when we have as many columns as rows): as all elements are integer, and
intermediate values are also integer, so we want to multiply all values
before division.

 Cheers!

 Chidambar
Index: trunk/e/src/modules/pager/e_mod_main.c
===
--- trunk/e/src/modules/pager/e_mod_main.c	(revision 36392)
+++ trunk/e/src/modules/pager/e_mod_main.c	(working copy)
@@ -711,7 +711,7 @@
else
  height = pager_config-popup_height * y;
 
-   width = ((zone-w * x)/(zone-h * y)) * height;
+   width = height * (zone-w * x)/(zone-h * y);
 
evas_object_move(pp-pager-o_table, 0, 0);
evas_object_resize(pp-pager-o_table, width, height);


signature.asc
Description: PGP signature
-
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-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel