E CVS: apps/entrance raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/entrance

Dir : e17/apps/entrance/src/daemon


Modified Files:
auth.c 


Log Message:


nicks' patch seems innocuous enough :)

===
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/auth.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- auth.c  17 May 2004 05:31:49 -  1.15
+++ auth.c  7 Jul 2005 04:15:16 -   1.16
@@ -424,6 +424,7 @@
  d->client.authfile = strdup(buf);
   }
 
+  seteuid(d->client.uid);
   /* Make sure the file can be written to */
   if((auth_file = fopen(d->client.authfile, "a+")))
  fclose(auth_file);
@@ -432,6 +433,7 @@
  entranced_debug("entranced_auth_user_add: Unable to write auth file 
%s\n", d->client.authfile);
  free(d->client.authfile);
  d->client.authfile = NULL;
+ seteuid(0);
  return FALSE;
   }
   /* TODO: May need a permissions/paranoia check */
@@ -446,6 +448,7 @@
  free(d->client.authfile);
  d->client.authfile = NULL;
 
+ seteuid(0);
  umask (022);
   }
   else
@@ -453,6 +456,7 @@
}
 
/* Open file and write auth entries */
+   seteuid(d->client.uid);
if(!(auth_file = fopen(d->client.authfile, "r+")))
{
   syslog(LOG_CRIT, "entranced_auth_user_add: Open auth file %s failed 
after lock", d->client.authfile);
@@ -460,6 +464,7 @@
   free(d->client.authfile);
   d->client.authfile = NULL;
 
+  seteuid(0);
   umask (022);
 
   return FALSE;
@@ -483,10 +488,11 @@
fclose(auth_file);
XauUnlockAuth(d->client.authfile);

-   chown(d->client.authfile, d->client.uid, d->client.gid);
-
+   /*chown(d->client.authfile, d->client.uid, d->client.gid);*/
+   
entranced_debug("entranced_auth_user_add: Finished writing auth entries to 
%s\n", d->client.authfile);
-
+   seteuid(0);
+   
return ret;
   
 }




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/e raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir : e17/apps/e/src/bin


Modified Files:
e_actions.c 


Log Message:


martin geisler's patch :)

===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_actions.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_actions.c 4 Jul 2005 10:24:22 -   1.17
+++ e_actions.c 7 Jul 2005 03:55:29 -   1.18
@@ -288,6 +288,112 @@
 }
 
 /***/
+ACT_FN_GO(move_relative)
+{
+   if (!obj) obj = E_OBJECT(e_border_focused_get());
+   if (!obj) return;
+   if (obj->type != E_BORDER_TYPE)
+ {
+   obj = E_OBJECT(e_border_focused_get());
+   if (!obj) return;
+ }
+   if (params)
+ {
+   int dx, dy;
+
+   if (sscanf(params, "%i %i", &dx, &dy) == 2) {
+ E_Border *bd;
+ 
+ bd = (E_Border *)obj;
+
+ e_border_move(bd, bd->x + dx, bd->y + dy);
+ 
+ if (e_config->focus_policy != E_FOCUS_CLICK)
+   ecore_x_pointer_warp(bd->zone->container->win,
+bd->x + (bd->w / 2),
+bd->y + (bd->h / 2));
+   }
+ }
+}
+
+/***/
+ACT_FN_GO(move_absolute)
+{
+   if (!obj) obj = E_OBJECT(e_border_focused_get());
+   if (!obj) return;
+   if (obj->type != E_BORDER_TYPE)
+ {
+   obj = E_OBJECT(e_border_focused_get());
+   if (!obj) return;
+ }
+   if (params)
+ {
+   E_Border *bd;
+   int x, y;
+   char cx, cy;
+ 
+   bd = (E_Border *)obj;
+
+   if (sscanf(params, "%c%i %c%i", &cx, &x, &cy, &y) == 4)
+ {
+   // Nothing, both x and y is updated.
+ }
+   else if (sscanf(params, "* %c%i", &cy, &y) == 2)
+ {
+   // Updated y, reset x.
+   x = bd->x;
+ }
+   else if (sscanf(params, "%c%i *", &cx, &x) == 2)
+ {
+   // Updated x, reset y.
+   y = bd->y;
+ }
+
+   if (cx == '-') x = bd->zone->w - bd->w - x;
+   if (cy == '-') y = bd->zone->h - bd->h - y;
+
+   if (x != bd->x || y != bd->y)
+ {
+   e_border_move(bd, x, y);
+
+   if (e_config->focus_policy != E_FOCUS_CLICK)
+ ecore_x_pointer_warp(bd->zone->container->win,
+  bd->x + (bd->w / 2),
+  bd->y + (bd->h / 2));
+ }
+ }
+}
+
+/***/
+ACT_FN_GO(resize)
+{
+   if (!obj) obj = E_OBJECT(e_border_focused_get());
+   if (!obj) return;
+   if (obj->type != E_BORDER_TYPE)
+ {
+   obj = E_OBJECT(e_border_focused_get());
+   if (!obj) return;
+ }
+
+   if (params)
+ {
+   int dw, dh;
+
+   if (sscanf(params, "%i %i", &dw, &dh) == 2) {
+ E_Border *bd;
+ bd = (E_Border *)obj;
+
+ e_border_resize(bd, bd->w + dw, bd->h + dh);
+ 
+ if (e_config->focus_policy != E_FOCUS_CLICK)
+   ecore_x_pointer_warp(bd->zone->container->win,
+bd->x + (bd->w / 2),
+bd->y + (bd->h / 2));
+   }
+ }
+}
+
+/***/
 ACT_FN_GO(desk_flip_by)
 {
E_Zone *zone;
@@ -788,6 +894,12 @@

ACT_GO(desk_linear_flip_to);
 
+   ACT_GO(move_absolute);
+
+   ACT_GO(move_relative);
+
+   ACT_GO(resize);
+
ACT_GO(menu_show);
ACT_GO_MOUSE(menu_show);
ACT_GO_KEY(menu_show);




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/eclair raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/eclair

Dir : e17/apps/eclair/src


Modified Files:
eclair_window.c 


Log Message:


eclair displays a bit mroe smoothly now :)

===
RCS file: /cvsroot/enlightenment/e17/apps/eclair/src/eclair_window.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- eclair_window.c 5 Jul 2005 21:14:22 -   1.4
+++ eclair_window.c 7 Jul 2005 03:49:09 -   1.5
@@ -35,14 +35,15 @@
{
   new_window->ecore_window = ecore_evas_software_x11_new(NULL, 0, 0, 0, 0, 
0);
   new_window->x_window = 
ecore_evas_software_x11_window_get(new_window->ecore_window);
+  ecore_evas_avoid_damage_set(new_window->ecore_window, 1);
}
if (title)
   ecore_evas_title_set(new_window->ecore_window, title);
-   ecore_evas_name_class_set(new_window->ecore_window, "eclair", "eclair");
+   ecore_evas_name_class_set(new_window->ecore_window, "eclair", "Eclair");
ecore_evas_borderless_set(new_window->ecore_window, 1);
 
-   ecore_x_dnd_aware_set(new_window->x_window, 1);
-   ecore_x_dnd_type_set(new_window->x_window, "*", 1);
+   ecore_x_dnd_aware_set(new_window->x_window, 1);
+   ecore_x_dnd_type_set(new_window->x_window, "*", 1);
 
new_window->evas = ecore_evas_get(new_window->ecore_window);
new_window->edje_object = edje_object_add(new_window->evas);




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/e raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir : e17/apps/e/src/bin


Modified Files:
e_border.c 


Log Message:


fix shadow/shape bug :)

===
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_border.c,v
retrieving revision 1.312
retrieving revision 1.313
diff -u -3 -r1.312 -r1.313
--- e_border.c  4 Jul 2005 11:34:57 -   1.312
+++ e_border.c  7 Jul 2005 03:49:35 -   1.313
@@ -3952,8 +3952,9 @@
   }
 free(rects);
  }
+   else
+ bd->client.shaped = 0;
bd->need_shape_merge = 1;
-   /* is the client shaped? */
bd->changes.shape = 0;
  }
 
@@ -4317,7 +4318,7 @@
if ((bd->changes.pos) && (bd->changes.size))
  {
 // printf("##- BORDER NEEDS POS/SIZE CHANGE 0x%x\n", bd->client.win);
-   if (bd->shaded && !bd->shading)
+   if ((bd->shaded) && (!bd->shading))
  {
 evas_obscured_clear(bd->bg_evas);
 ecore_x_window_move_resize(bd->win, bd->x, bd->y, bd->w, bd->h);
@@ -4463,9 +4464,6 @@
  rects[3].height = bd->client_inset.b;
  ecore_x_window_shape_rectangles_set(twin, rects, 4);
   }
-/* FIXME: need to clip client shape to client container
- * with offset for shading, if shading/shaded
- */
 twin2 = ecore_x_window_override_new(bd->win, 0, 0, 
 bd->w - bd->client_inset.l - 
bd->client_inset.r,
 bd->h - bd->client_inset.t - 
bd->client_inset.b);
@@ -4494,6 +4492,7 @@
  {
 ecore_x_window_shape_mask_set(bd->win, 0);
  }
+// bd->need_shape_export = 1;
bd->need_shape_merge = 0;
  }

@@ -4513,6 +4512,7 @@
  int i;
  
  orects = bd->shape_rects;
+ changed = 0;
  for (i = 0; i < num; i++)
{
   if ((orects[i].x != rects[i].x) ||
@@ -4524,7 +4524,6 @@
break;
 }
}
- changed = 0;
   }
 if (changed)
   {




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ecore raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/lib/ecore_evas


Modified Files:
ecore_evas_x.c 


Log Message:


actually - if avoid damage is set render anyway :)

===
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -3 -r1.46 -r1.47
--- ecore_evas_x.c  7 Jul 2005 03:31:34 -   1.46
+++ ecore_evas_x.c  7 Jul 2005 03:37:57 -   1.47
@@ -1074,7 +1074,7 @@
 _ecore_evas_x_show(Ecore_Evas *ee)
 {
ee->should_be_visible = 1;
-   if ((ee->shaped) && (ee->prop.avoid_damage))
+   if (ee->prop.avoid_damage)
  _ecore_evas_x_render(ee);
if (!ee->prop.fullscreen)
  ecore_x_window_show(ee->engine.x.win_container);




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ecore raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/lib/ecore


Modified Files:
ecore_exe.c 


Log Message:


if an ecore evas is shaped and avoid damage - render it just before a show :)

===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_exe.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ecore_exe.c 27 Apr 2005 14:30:36 -  1.7
+++ ecore_exe.c 7 Jul 2005 03:31:34 -   1.8
@@ -52,7 +52,7 @@
  }
setsid();
execl("/bin/sh", "/bin/sh", "-c", exe_cmd, (char *)NULL);
-   exit(0);
+   exit(127);
return NULL;
 }
 




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ecore raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/bin


Modified Files:
ecore_evas_test_bg.c 


Log Message:


if an ecore evas is shaped and avoid damage - render it just before a show :)

===
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/bin/ecore_evas_test_bg.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- ecore_evas_test_bg.c13 Apr 2005 15:47:34 -  1.4
+++ ecore_evas_test_bg.c7 Jul 2005 03:31:34 -   1.5
@@ -334,13 +334,13 @@
if (!ecore_evas_shaped_get(ee))
  {
 evas_object_hide(o_bg_rect);
-evas_object_hide(o_bg);
+//  evas_object_hide(o_bg);
 ecore_evas_shaped_set(ee, 1);
  }
else
  {
 evas_object_show(o_bg_rect);
-evas_object_show(o_bg);
+//  evas_object_show(o_bg);
 ecore_evas_shaped_set(ee, 0);
  }
  }




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ecore raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/lib/ecore_evas


Modified Files:
Ecore_Evas.h 


Log Message:


oops - remove that

===
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Ecore_Evas.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- Ecore_Evas.h7 Jul 2005 03:31:34 -   1.10
+++ Ecore_Evas.h7 Jul 2005 03:33:17 -   1.11
@@ -92,7 +92,6 @@
 EAPI const int  *ecore_evas_buffer_pixels_get(Ecore_Evas *ee);

 EAPI Evas_Object*ecore_evas_object_image_new(Ecore_Evas *ee_target);
-EAPI voidecore_evas_render_force(Ecore_Evas *ee);
 
 /* generic manipulation calls */
 EAPI voidecore_evas_free(Ecore_Evas *ee);




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ecore raster

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir : e17/libs/ecore/src/lib/ecore_evas


Modified Files:
Ecore_Evas.h ecore_evas_x.c 


Log Message:


if an ecore evas is shaped and avoid damage - render it just before a show :)

===
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/Ecore_Evas.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Ecore_Evas.h19 Jan 2005 21:37:56 -  1.9
+++ Ecore_Evas.h7 Jul 2005 03:31:34 -   1.10
@@ -92,6 +92,7 @@
 EAPI const int  *ecore_evas_buffer_pixels_get(Ecore_Evas *ee);

 EAPI Evas_Object*ecore_evas_object_image_new(Ecore_Evas *ee_target);
+EAPI voidecore_evas_render_force(Ecore_Evas *ee);
 
 /* generic manipulation calls */
 EAPI voidecore_evas_free(Ecore_Evas *ee);
===
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_evas/ecore_evas_x.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- ecore_evas_x.c  30 Jun 2005 06:32:30 -  1.45
+++ ecore_evas_x.c  7 Jul 2005 03:31:34 -   1.46
@@ -21,6 +21,178 @@
 static Ecore_Idle_Enterer *ecore_evas_idle_enterer = NULL;
 
 static void
+_ecore_evas_x_render(Ecore_Evas *ee)
+{
+#ifdef BUILD_ECORE_EVAS_BUFFER
+   Evas_List *ll;
+#endif
+   
+   if (ee->func.fn_pre_render) ee->func.fn_pre_render(ee);
+#ifdef BUILD_ECORE_EVAS_BUFFER
+   for (ll = ee->sub_ecore_evas; ll; ll = ll->next)
+ {
+   Ecore_Evas *ee2;
+   
+   ee2 = ll->data;
+   if (ee2->func.fn_pre_render) ee2->func.fn_pre_render(ee2);
+   _ecore_evas_buffer_render(ee2);
+   if (ee2->func.fn_post_render) ee2->func.fn_post_render(ee2);
+ }
+#endif 
+   if (ee->prop.avoid_damage)
+ {
+   Evas_List *updates, *l;
+   
+   updates = evas_render_updates(ee->evas);
+#if 0
+   for (l = updates; l; l = l->next)
+ {
+Evas_Rectangle *r;
+
+r = l->data;
+printf("DMG render [%i %i %ix%i]\n",
+   r->x, r->y, r->w, r->h);
+ }
+#endif
+   if (ee->engine.x.using_bg_pixmap)
+ {
+if (updates)
+  {
+ for (l = updates; l; l = l->next)
+   {
+  Evas_Rectangle *r;
+  
+  r = l->data;
+  ecore_x_window_area_clear(ee->engine.x.win, r->x, r->y, 
r->w, r->h);
+   }
+ if ((ee->shaped) && (updates))
+   {
+  if (ee->prop.fullscreen)
+ecore_x_window_shape_mask_set(ee->engine.x.win, 
ee->engine.x.mask);
+  else
+
ecore_x_window_shape_mask_set(ee->engine.x.win_container, ee->engine.x.mask);
+   }
+  }
+if (updates) evas_render_updates_free(updates);
+ }
+   else
+ {
+for (l = updates; l; l = l->next)
+  {
+ Evas_Rectangle *r;
+ XRectangle xr;
+ Region tmpr;
+ 
+ if (!ee->engine.x.damages)
+   ee->engine.x.damages = XCreateRegion();
+ r = l->data;
+ tmpr = XCreateRegion();
+ if (ee->rotation == 0)
+   {
+  xr.x = r->x;
+  xr.y = r->y;
+  xr.width = r->w;
+  xr.height = r->h;
+   }
+ else if (ee->rotation == 90)
+   {
+  xr.x = r->y;
+  xr.y = ee->h - r->x - r->w;
+  xr.width = r->h;
+  xr.height = r->w;
+   }
+ else if (ee->rotation == 180)
+   {
+  xr.x = ee->w - r->x - r->w;
+  xr.y = ee->h - r->y - r->h;
+  xr.width = r->w;
+  xr.height = r->h;
+   }
+ else if (ee->rotation == 270)
+   {
+  xr.x = ee->w - r->y - r->h;
+  xr.y = r->x;
+  xr.width = r->h;
+  xr.height = r->w;
+   }
+ XUnionRectWithRegion(&xr, ee->engine.x.damages, tmpr);
+ XDestroyRegion(ee->engine.x.damages);
+ ee->engine.x.damages = tmpr;
+  }
+if (ee->engine.x.damages)
+  {
+ if ((ee->shaped) && (updates))
+   {
+  if (ee->prop.fullscreen)
+ecore_x_window_shape_mask_set(ee->engine.x.win, 
ee->e

E CVS: libs/ewl rbdpngn

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/lib


Modified Files:
Ewl.h.in 


Log Message:
Documentation fix from Marcus.

===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/Ewl.h.in,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- Ewl.h.in6 Jul 2005 13:44:39 -   1.9
+++ Ewl.h.in6 Jul 2005 23:59:20 -   1.10
@@ -155,10 +155,10 @@
  *
  * @code
  * main_win = ewl_window_new();
- * ewl_window_set_title(EWL_WINDOW(main_win), "EWL Simple Image Viewer");
+ * ewl_window_title_set(EWL_WINDOW(main_win), "EWL Simple Image Viewer");
  * ewl_callback_append(main_win, EWL_CALLBACK_DELETE_WINDOW,
  * __destroy_main_window, NULL);
- * ewl_object_set_minimum_size(EWL_OBJECT(main_win), 100, 100);
+ * ewl_object_minimum_size_set(EWL_OBJECT(main_win), 100, 100);
  * ewl_widget_show(main_win);
  * @endcode
  *
@@ -168,17 +168,18 @@
  *
  * @code
  * main_box = ewl_vbox_new();
- * ewl_container_append_child(EWL_CONTAINER(main_win), main_box);
+ * ewl_container_child_append(EWL_CONTAINER(main_win), main_box);
  * ewl_widget_show(main_box);
  * @endcode
  *
  * Next, create the image widget, we just attempt to load the image
  * file that was specified on the command line, and add it to the
- * box in the window.
+ * box in the window. The second argument is NULL for normal images, but can
+ * be set to the name of the group to load for an edje.
  *
  * @code
- * image = ewl_image_new(argv[1]);
- * ewl_container_append_child(EWL_CONTAINER(main_box), image);
+ * image = ewl_image_new(argv[1], NULL);
+ * ewl_container_child_append(EWL_CONTAINER(main_box), image);
  * ewl_widget_show(image);
  * @endcode
  *




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/e_utils rbdpngn

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : apps/e_utils

Dir : e17/apps/e_utils/src/bin/eapp_edit


Modified Files:
eapp_edit_main.c 


Log Message:
Patch from shorne to update to new EWL API.

===
RCS file: 
/cvsroot/enlightenment/e17/apps/e_utils/src/bin/eapp_edit/eapp_edit_main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- eapp_edit_main.c28 Jun 2005 13:27:42 -  1.17
+++ eapp_edit_main.c6 Jul 2005 23:27:39 -   1.18
@@ -153,7 +153,7 @@
 ret_char = ewl_checkbutton_is_checked(EWL_CHECKBUTTON(source));
 size_ret = 1;
   } else {
-ret = ewl_entry_text_get(EWL_ENTRY(source));
+ret = ewl_text_text_get(EWL_TEXT(source));
 if (ret)
   size_ret = strlen(ret);
 else
@@ -304,7 +304,7 @@
   wname = _eapp_edit_read(ef, "app/window/name", NULL, "Window name", grid, 7, 
0);
   wclass = _eapp_edit_read(ef, "app/window/class", NULL, "Window class", grid, 
8, 0);
   if (new_win_class)
-ewl_entry_text_set(EWL_ENTRY(wclass), new_win_class);
+ewl_text_text_set(EWL_TEXT(wclass), new_win_class);
   start = _eapp_edit_read(ef, "app/info/startup_notify", NULL, "Startup 
notify", grid, 9, 1);
   wait = _eapp_edit_read(ef, "app/info/wait_exit", NULL, "Wait exit", grid, 
10, 1);





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: apps/e pithlit

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : pithlit
Project : e17
Module  : apps/e

Dir : e17/apps/e/po


Modified Files:
sl.po 


Log Message:

===
RCS file: /cvsroot/enlightenment/e17/apps/e/po/sl.po,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- sl.po   22 Jun 2005 02:56:58 -  1.5
+++ sl.po   6 Jul 2005 23:03:07 -   1.6
@@ -7,7 +7,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: [EMAIL PROTECTED]"
-"POT-Creation-Date: 2005-06-22 03:23+0200\n"
+"POT-Creation-Date: 2005-07-06 19:15+0200\n"
 "PO-Revision-Date: 2005-05-11 00:22+0100\n"
 "Last-Translator: Perat Tomaž <[EMAIL PROTECTED]>\n"
 "Language-Team: LANGUAGE <[EMAIL PROTECTED]>\n"
@@ -25,19 +25,19 @@
 msgid "%i.%i Ghz"
 msgstr ""
 
-#: src/bin/e_int_menus.c:728
+#: src/bin/e_int_menus.c:759
 msgid "(Empty)"
 msgstr "(Prazno)"
 
-#: src/bin/e_int_menus.c:367
+#: src/bin/e_int_menus.c:375
 msgid "(No Applications)"
 msgstr "(Ni aplikacij)"
 
-#: src/bin/e_int_menus.c:541 src/bin/e_int_menus.c:783
+#: src/bin/e_int_menus.c:549 src/bin/e_int_menus.c:814
 msgid "(No Windows)"
 msgstr "(Ni oken)"
 
-#: src/bin/e_int_menus.c:638
+#: src/bin/e_int_menus.c:669
 msgid "(Unused)"
 msgstr "(Neuporabljeno)"
 
@@ -45,47 +45,67 @@
 msgid "1 hour"
 msgstr "1 ura"
 
-#: src/modules/temperature/e_mod_main.c:598
+#: src/modules/battery/e_mod_main.c:383
+msgid "10 mins"
+msgstr "10 minut"
+
+#: src/modules/temperature/e_mod_main.c:603
 msgid "100C"
 msgstr "100°C"
 
-#: src/modules/temperature/e_mod_main.c:502
+#: src/modules/temperature/e_mod_main.c:507
 msgid "10C"
 msgstr "10°C"
 
-#: src/modules/temperature/e_mod_main.c:509
-#: src/modules/temperature/e_mod_main.c:542
+#: src/modules/battery/e_mod_main.c:390
+msgid "20 mins"
+msgstr "20 minut"
+
+#: src/modules/temperature/e_mod_main.c:514
+#: src/modules/temperature/e_mod_main.c:547
 msgid "20C"
 msgstr "20°C"
 
-#: src/modules/temperature/e_mod_main.c:516
-#: src/modules/temperature/e_mod_main.c:549
+#: src/modules/battery/e_mod_main.c:397
+msgid "30 mins"
+msgstr "30 minut"
+
+#: src/modules/temperature/e_mod_main.c:521
+#: src/modules/temperature/e_mod_main.c:554
 msgid "30C"
 msgstr "30°C"
 
-#: src/modules/temperature/e_mod_main.c:523
-#: src/modules/temperature/e_mod_main.c:556
+#: src/modules/battery/e_mod_main.c:404
+msgid "40 mins"
+msgstr "40 minut"
+
+#: src/modules/temperature/e_mod_main.c:528
+#: src/modules/temperature/e_mod_main.c:561
 msgid "40C"
 msgstr "40°C"
 
-#: src/modules/temperature/e_mod_main.c:530
-#: src/modules/temperature/e_mod_main.c:563
+#: src/modules/battery/e_mod_main.c:411
+msgid "50 mins"
+msgstr "50 minut"
+
+#: src/modules/temperature/e_mod_main.c:535
+#: src/modules/temperature/e_mod_main.c:568
 msgid "50C"
 msgstr "50°C"
 
-#: src/modules/temperature/e_mod_main.c:570
+#: src/modules/temperature/e_mod_main.c:575
 msgid "60C"
 msgstr "60°C"
 
-#: src/modules/temperature/e_mod_main.c:577
+#: src/modules/temperature/e_mod_main.c:582
 msgid "70C"
 msgstr "70°C"
 
-#: src/modules/temperature/e_mod_main.c:584
+#: src/modules/temperature/e_mod_main.c:589
 msgid "80C"
 msgstr "80°C"
 
-#: src/modules/temperature/e_mod_main.c:591
+#: src/modules/temperature/e_mod_main.c:596
 msgid "90C"
 msgstr "90°C"
 
@@ -101,7 +121,7 @@
 "mrežni priključek. Deluje le na Linux-u in je le tako\n"
 "natančen kot vaš BIOS oziroma jederni gonilniki."
 
-#: src/modules/temperature/e_mod_main.c:97
+#: src/modules/temperature/e_mod_main.c:102
 msgid ""
 "A module to measure the ACPI Thermal sensor on Linux.\n"
 "It is especially useful for modern Laptops with high speed\n"
@@ -127,7 +147,7 @@
 msgid "A simple module to give E17 a clock."
 msgstr "Modul, ki na vaše E17 namizje pričara uro."
 
-#: src/bin/e_int_menus.c:135 src/bin/e_int_menus.c:297
+#: src/bin/e_int_menus.c:135 src/bin/e_int_menus.c:305
 msgid "About Enlightenment"
 msgstr "O Enlightenment (Razsvetljenje)"
 
@@ -135,14 +155,10 @@
 msgid "About..."
 msgstr "O..."
 
-#: src/bin/e_border.c:4641
+#: src/bin/e_border.c:5061
 msgid "Always On Top"
 msgstr "Vedno na Vrhu"
 
-#: src/bin/e_main.c:477
-msgid "Artificially slowing startup so you can see it all."
-msgstr "Umetno upočasnjen zagon... da si lahko vse v miru ogledate."
-
 #: src/modules/ibar/e_mod_main.c:796 src/modules/ibox/e_mod_main.c:603
 msgid "Auto fit icons"
 msgstr "Prilagodi velikost ikonam"
@@ -171,7 +187,12 @@
 msgid "Battery Running Low"
 msgstr "Baterija bo kmalu prazna"
 
-#: src/bin/e_border.c:4651
+#: src/bin/e_border.c:4970
+#, fuzzy
+msgid "Border"
+msgstr "Okvir"
+
+#: src/bin/e_border.c:5074
 msgid "Borderless"
 msgstr "Brez okvirja"
 
@@ -203,8 +224,8 @@
 msgid "Check Fast (1 sec)"
 msgstr "Hitro preverjanje (1 sek)"
 
-#: src/modules/temperature/e_mod_main.c:184
-#: src/modules/temperature/e_mod_main.c:610
+#: src/modules/temperature/e_mod_main.c:189
+#: src/modules/temperature/e_mod_main.c:615
 msg

E CVS: libs/ewl dj2

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/tools/ewl_edb_ed


Modified Files:
ewl_edb_ed.c 


Log Message:
- fix ewl_edb_ed

===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/tools/ewl_edb_ed/ewl_edb_ed.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_edb_ed.c29 Aug 2004 02:47:39 -  1.9
+++ ewl_edb_ed.c6 Jul 2005 16:40:32 -   1.10
@@ -323,8 +323,8 @@
 }
 
 void add_cb(Ewl_Widget *w, void *event, void *data) {
-   char *key = ewl_entry_text_get(EWL_ENTRY(key_name_box));
-   char *val = ewl_entry_text_get(EWL_ENTRY(val_box));
+   char *key = ewl_text_text_get(EWL_TEXT(key_name_box));
+   char *val = ewl_text_text_get(EWL_TEXT(val_box));
Ewl_Widget *widgets[3];
 
if ((key == NULL)  || (val == NULL))




---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs


E CVS: libs/ewl dj2

2005-07-06 Thread enlightenment-cvs
Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir : e17/libs/ewl/src/bin


Modified Files:
ewl_embed_test.c ewl_entry_test.c ewl_image_test.c 


Log Message:
- re-wrote the ewl_entry to work off of the new ewl_text. seems to work
  pretty well for the single line, may still be bugs tho. multiline needs
  some work, but part of that work will be in the textblock.

===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_embed_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_embed_test.c28 May 2005 20:32:49 -  1.2
+++ ewl_embed_test.c6 Jul 2005 13:44:38 -   1.3
@@ -20,10 +20,10 @@
char *txt;

entry = user_data;
-   txt = ewl_entry_text_get(EWL_ENTRY(entry));
+   txt = ewl_text_text_get(EWL_TEXT(entry));
printf("%s\n", txt);
 
-   ewl_entry_text_set(EWL_ENTRY(entry), "do it");
+   ewl_text_text_set(EWL_TEXT(entry), "do it");
ewl_text_text_set(EWL_TEXT(text), txt);
free(txt);
 }
===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_entry_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_entry_test.c28 May 2005 20:32:49 -  1.2
+++ ewl_entry_test.c6 Jul 2005 13:44:38 -   1.3
@@ -18,11 +18,11 @@
 {
char *s;
 
-   s = ewl_entry_text_get(EWL_ENTRY(entry[0]));
+   s = ewl_text_text_get(EWL_TEXT(entry[0]));
printf("First entry covers: %s\n", s);
FREE(s);
 
-   s = ewl_entry_text_get(EWL_ENTRY(entry[1]));
+   s = ewl_text_text_get(EWL_TEXT(entry[1]));
printf("Second entry covers: %s\n", s);
FREE(s);
 }
@@ -31,12 +31,12 @@
 __set_entry_text(Ewl_Widget *w __UNUSED__, void *ev_data __UNUSED__, 
void *user_data __UNUSED__)
 {
-   ewl_entry_color_set(EWL_ENTRY(entry[0]), 0, 0, 0, 255);
-   ewl_entry_color_set(EWL_ENTRY(entry[1]), 0, 0, 0, 255);
-   ewl_entry_text_set(EWL_ENTRY(entry[0]), "Play with me ?");
-   ewl_entry_text_set(EWL_ENTRY(entry[1]), "E W L ! ! !");
-   ewl_entry_color_set(EWL_ENTRY(entry[0]), 255, 0, 0, 255);
-   ewl_entry_color_set(EWL_ENTRY(entry[1]), 255, 0, 0, 255);
+   ewl_text_color_set(EWL_TEXT(entry[0]), 0, 0, 0, 255);
+   ewl_text_color_set(EWL_TEXT(entry[1]), 0, 0, 0, 255);
+   ewl_text_text_set(EWL_TEXT(entry[0]), "Play with me ?");
+   ewl_text_text_set(EWL_TEXT(entry[1]), "E W L ! ! !");
+   ewl_text_color_set(EWL_TEXT(entry[0]), 255, 0, 0, 255);
+   ewl_text_color_set(EWL_TEXT(entry[1]), 255, 0, 0, 255);
 }
 
 void
@@ -73,8 +73,9 @@
ewl_box_spacing_set(EWL_BOX(entry_box), 10);
ewl_widget_show(entry_box);
 
-   entry[0] = ewl_entry_multiline_new("Play with me ?");
-   ewl_entry_color_set(EWL_ENTRY(entry[0]), 255, 0, 0, 255);
+   entry[0] = ewl_entry_new("Play with me ?");
+   ewl_entry_multiline_set(EWL_ENTRY(entry[0]), 1);
+   ewl_text_color_set(EWL_TEXT(entry[0]), 255, 0, 0, 255);
ewl_object_padding_set(EWL_OBJECT(entry[0]), 5, 5, 5, 0);
ewl_container_child_append(EWL_CONTAINER(entry_box), entry[0]);
ewl_callback_append(entry[0], EWL_CALLBACK_VALUE_CHANGED,
@@ -82,7 +83,7 @@
ewl_widget_show(entry[0]);
 
entry[1] = ewl_entry_new("E W L ! ! !");
-   ewl_entry_color_set(EWL_ENTRY(entry[1]), 255, 0, 0, 255);
+   ewl_text_color_set(EWL_TEXT(entry[1]), 255, 0, 0, 255);
ewl_object_padding_set(EWL_OBJECT(entry[1]), 5, 5, 0, 0);
ewl_container_child_append(EWL_CONTAINER(entry_box), entry[1]);
ewl_callback_append(entry[1], EWL_CALLBACK_VALUE_CHANGED,
===
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_image_test.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- ewl_image_test.c28 May 2005 20:32:49 -  1.2
+++ ewl_image_test.c6 Jul 2005 13:44:38 -   1.3
@@ -51,7 +51,7 @@
 
if (!img) img = ecore_dlist_goto_last(images);
 
-   ewl_entry_text_set(EWL_ENTRY(entry_path), img);
+   ewl_text_text_set(EWL_TEXT(entry_path), img);
ewl_image_file_set(EWL_IMAGE(image), img, NULL);
 
ewl_widget_configure(image_win);
@@ -63,7 +63,7 @@
 {
char *img = NULL;
 
-   img = ewl_entry_text_get(EWL_ENTRY(entry_path));
+   img = ewl_text_text_get(EWL_TEXT(entry_path));
 
if (img && __image_exists(img)) {
ecore_dlist_append(images, img);
@@ -87,7 +87,7 @@
if (!img)
img = ecore_dlist_goto_first(images);
 
-   ewl_entry_text_set(EWL_ENTRY(entry_path), img);
+   ewl_text_text_set(EWL_TEXT(entry_path), img);
ewl_image_file_set(EWL_IMAGE(image), img, NULL);
 
ewl_widget_configur