Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_fileman_smart.c
Log Message:
actually clip files.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -3 -r1.70 -r1.71
--- e_fileman_smart.c 2 Nov 2005 04:05:13 -0000 1.70
+++ e_fileman_smart.c 2 Nov 2005 06:07:33 -0000 1.71
@@ -181,10 +181,13 @@
static void _e_fm_smart_add(Evas_Object *object);
static void _e_fm_smart_del(Evas_Object *object);
-static void _e_fm_smart_show(Evas_Object *object);
-static void _e_fm_smart_hide(Evas_Object *object);
static void _e_fm_smart_move(Evas_Object *object, Evas_Coord x,
Evas_Coord y);
static void _e_fm_smart_resize(Evas_Object *object, Evas_Coord
w, Evas_Coord h);
+static void _e_fm_smart_show(Evas_Object *object);
+static void _e_fm_smart_hide(Evas_Object *object);
+static void _e_fm_smart_color_set(Evas_Object *obj, int r, int
g, int b, int a);
+static void _e_fm_smart_clip_set(Evas_Object *obj, Evas_Object
* clip);
+static void _e_fm_smart_clip_unset(Evas_Object *obj);
static void _e_fm_redraw(E_Fm_Smart_Data *sd);
@@ -256,9 +259,9 @@
_e_fm_smart_resize, /* resize */
_e_fm_smart_show,/* show */
_e_fm_smart_hide,/* hide */
- NULL, /* color_set */
- NULL, /* clip_set */
- NULL, /* clip_unset */
+ _e_fm_smart_color_set, /* color_set */
+ _e_fm_smart_clip_set, /* clip_set */
+ _e_fm_smart_clip_unset, /* clip_unset */
NULL); /* data*/
E_EVENT_FM_RECONFIGURE = ecore_event_type_new();
@@ -476,31 +479,6 @@
}
/* local subsystem functions */
-
-static void
-_e_fm_smart_show(Evas_Object *object)
-{
- E_Fm_Smart_Data *sd;
-
- if ((!object) || !(sd = evas_object_smart_data_get(object)))
- return;
-
- evas_object_show(sd->bg);
- evas_object_show(sd->layout);
- evas_object_show(sd->clip);
-}
-
-static void
-_e_fm_smart_hide(Evas_Object *object)
-{
- E_Fm_Smart_Data *sd;
-
- if ((!object) || !(sd = evas_object_smart_data_get(object)))
- return;
-
- evas_object_hide(sd->clip);
-}
-
static void
_e_fm_smart_add(Evas_Object *object)
{
@@ -702,6 +680,63 @@
}
static void
+_e_fm_smart_show(Evas_Object *object)
+{
+ E_Fm_Smart_Data *sd;
+
+ if ((!object) || !(sd = evas_object_smart_data_get(object)))
+ return;
+
+ evas_object_show(sd->bg);
+ evas_object_show(sd->layout);
+ evas_object_show(sd->clip);
+}
+
+static void
+_e_fm_smart_hide(Evas_Object *object)
+{
+ E_Fm_Smart_Data *sd;
+
+ if ((!object) || !(sd = evas_object_smart_data_get(object)))
+ return;
+
+ evas_object_hide(sd->clip);
+}
+
+static void
+_e_fm_smart_color_set(Evas_Object *object, int r, int g, int b, int a)
+{
+ E_Fm_Smart_Data *sd;
+
+ if ((!object) || !(sd = evas_object_smart_data_get(object)))
+ return;
+
+ evas_object_color_set(sd->clip, r, g, b, a);
+}
+
+static void
+_e_fm_smart_clip_set(Evas_Object *object, Evas_Object *clip)
+{
+ E_Fm_Smart_Data *sd;
+
+ if ((!object) || !(sd = evas_object_smart_data_get(object)))
+ return;
+
+ evas_object_clip_set(sd->clip, clip);
+}
+
+static void
+_e_fm_smart_clip_unset(Evas_Object *object)
+{
+ E_Fm_Smart_Data *sd;
+
+ if ((!object) || !(sd = evas_object_smart_data_get(object)))
+ return;
+
+ evas_object_clip_unset(sd->clip);
+}
+
+static void
_e_fm_redraw(E_Fm_Smart_Data *sd)
{
E_Event_Fm_Reconfigure *ev;
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs