Enlightenment CVS committal
Author : urandom
Project : e17
Module : proto
Dir : e17/proto/edje_viewer/src/bin
Modified Files:
edje_etk.c
Log Message:
use 0, 0, 0, 0 instead of 255, 255, 255, 0 for colors (per suggestion)
===================================================================
RCS file: /cvs/e/e17/proto/edje_viewer/src/bin/edje_etk.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- edje_etk.c 21 Jan 2007 00:28:15 -0000 1.13
+++ edje_etk.c 21 Jan 2007 16:16:37 -0000 1.14
@@ -29,6 +29,7 @@
Evas_List *visible_elements_get() {
return visible_elements;
}
+
void bg_setup(Etk_Canvas *canvas)
{
Evas_Object *o;
@@ -74,10 +75,8 @@
void canvas_resize_cb(Etk_Object *canvas, const char *property_name, void
*data)
{
Evas *evas;
- Evas_List *l;
Evas_Coord x, y, w, h;
Evas_Coord xx, yy, ww, hh;
- Evas_Coord dx, dy, dw, dh;
evas = etk_widget_toplevel_evas_get(ETK_WIDGET(canvas));
if (!evas) return;
@@ -93,28 +92,6 @@
evas_object_resize(o_shadow, w, h);
evas_object_move(o_shadow, x, y);
evas_object_image_fill_set(o_shadow, 0, 0, w, h);
-
- for (l = visible_elements; l; l = l->next)
- {
- Demo_Edje *de;
- Evas_Coord nx, ny, nw, nh;
-
- de = l->data;
-
- evas_object_geometry_get(de->image, &dx, &dy, &dw, &dh);
-
- nx = de->cx - dx;
- ny = de->cy - dy;
- nw = de->cw - dw;
- nh = de->ch - dh;
-
- dx = x + nx;
- dy = y + ny;
- dw = w + nw;
- dh = h + nh;
-
-/* edje_move_resize(de, dx, dy, dw, dh);*/
- }
}
void list_entries(const char *file, Etk_Tree *tree,
@@ -191,7 +168,7 @@
o = evas_object_rectangle_add(evas);
etk_canvas_object_add(canvas, o);
- evas_object_color_set(o, 255, 255, 255, 0);
+ evas_object_color_set(o, 0, 0, 0, 0);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, top_down_cb,
de);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_UP, top_up_cb, de);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_MOVE, top_move_cb,
de);
@@ -200,7 +177,7 @@
o = evas_object_rectangle_add(evas);
etk_canvas_object_add(canvas, o);
- evas_object_color_set(o, 255, 255, 255, 0);
+ evas_object_color_set(o, 0, 0, 0, 0);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
bottom_down_cb, de);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_UP,
@@ -211,7 +188,7 @@
o = evas_object_rectangle_add(evas);
etk_canvas_object_add(canvas, o);
- evas_object_color_set(o, 255, 255, 255, 0);
+ evas_object_color_set(o, 0, 0, 0, 0);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
bottom_down_cb, de);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_UP,
@@ -222,7 +199,7 @@
o = evas_object_rectangle_add(evas);
etk_canvas_object_add(canvas, o);
- evas_object_color_set(o, 255, 255, 255, 0);
+ evas_object_color_set(o, 0, 0, 0, 0);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN,
bottom_down_cb, de);
evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_UP,
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs