entrance_x_session.c File Reference


Functions

void session_item_selected_cb (void *data, Evas_Object *o, const char *emission, const char *source)
 Executed when a Session is selected.
void session_item_unselected_cb (void *data, Evas_Object *o, const char *emission, const char *source)
Entrance_X_Sessionentrance_x_session_new (char *name, char *icon, char *session)
void entrance_x_session_free (Entrance_X_Session *e)
static Evas_Object * entrance_x_session_icon_load (Evas_Object *o, const char *file)
 given the filename, create a new evas object(edje or image) with the contents of file.
Evas_Object * entrance_x_session_button_new (Entrance_X_Session *exs, Evas_Object *edje)
Evas_Object * entrance_x_session_edje_get (Entrance_X_Session *e, Evas_Object *o, const char *themefile)

Function Documentation

Evas_Object* entrance_x_session_button_new ( Entrance_X_Session exs,
Evas_Object *  edje 
)

Evas_Object* entrance_x_session_edje_get ( Entrance_X_Session e,
Evas_Object *  o,
const char *  themefile 
)

void entrance_x_session_free ( Entrance_X_Session e  ) 

static Evas_Object* entrance_x_session_icon_load ( Evas_Object *  o,
const char *  file 
) [static]

given the filename, create a new evas object(edje or image) with the contents of file.

file can either be a valid edje or anything your evas has images loaders for. FIXME: Should this be its own smart object, user images are done similar FIXME: Should it support a "key" paramater as well

Parameters:
o - the entrance session you're working with
file - the file in $pkgdatadir/images/sessions/ we want to load

Entrance_X_Session* entrance_x_session_new ( char *  name,
char *  icon,
char *  session 
)

void session_item_selected_cb ( void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source 
)

Executed when a Session is selected.

Parameters:
data - the data passed when the callback was added
o - the evas object(Edje) that created the signal
emission - the signal "type" that was emitted
source - the signal originated from this "part" Attempt to set the Part named "entrance.time" to the results of localtime. This way the interval is configurable via a program in the theme and not statically bound to a value.

void session_item_unselected_cb ( void *  data,
Evas_Object *  o,
const char *  emission,
const char *  source 
)