# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
-e-module-$(MODULE).edj module.desktop
+e-module-$(MODULE).edj \
+e-module-$(MODULE)-start.edj \
+module.desktop
EXTRA_DIST = $(files_DATA) everything.pc.in module.desktop.in
Evry_API *evry = NULL;
Evry_Config *evry_conf = NULL;
int _evry_events[NUM_EVRY_EVENTS];
+E_Module *_mod_evry = NULL;
/* module setup */
EAPI E_Module_Api e_modapi =
return NULL;
}
+ _mod_evry = m;
+
/* add module supplied action */
act = e_action_add("everything");
if (act)
printf("%d %s\n", it->ref, it->label);
#endif
+ _mod_evry = NULL;
+
return 1;
}
extern Evry_History *evry_hist;
extern Evry_Config *evry_conf;
extern int _evry_events[NUM_EVRY_EVENTS];
+extern E_Module *_mod_evry;
/*** E Module ***/
EAPI void *e_modapi_init (E_Module *m);
};
static Eina_Bool
-_illume_running()
+_illume_running(void)
{
/* hack to find out out if illume is running, dont grab if
this is the case... */
static Evas_Object *
_gc_icon(E_Gadcon_Client_Class *client_class __UNUSED__, Evas *evas __UNUSED__)
{
- /* Evas_Object *o; */
- /* char buf[4096];
- *
- * o = edje_object_add(evas);
- * snprintf(buf, sizeof(buf), "%s/e-module-start.edj",
- * e_module_dir_get(start_module));
- * edje_object_file_set(o, buf, "icon"); */
- return NULL;
+ Evas_Object *o;
+ char buf[PATH_MAX];
+
+ o = edje_object_add(evas);
+ snprintf(buf, sizeof(buf), "%s/e-module-everything-start.edj",
+ e_module_dir_get(_mod_evry));
+ edje_object_file_set(o, buf, "icon");
+ return o;
}
static Gadget_Config *
static const char *
_gc_id_new(E_Gadcon_Client_Class *client_class __UNUSED__)
{
- Gadget_Config *gc = NULL;
-
- gc = _conf_item_get(NULL);
-
+ Gadget_Config *gc = _conf_item_get(NULL);
return gc->id;
}
Evas_Object *o = NULL;
if (it->icon_get)
- o = it->icon_get(it, e);
- if (o) return o;
+ {
+ o = it->icon_get(it, e);
+ if (o) return o;
+ }
if ((it->icon) && (it->icon[0] == '/'))
- o = evry_icon_theme_get(it->icon, e);
- if (o) return o;
-
+ {
+ o = evry_icon_theme_get(it->icon, e);
+ if (o) return o;
+ }
+
if (CHECK_TYPE(it, EVRY_TYPE_FILE))
{
const char *icon;
GET_FILE(file, it);
if (it->browseable)
- o = evry_icon_theme_get("folder", e);
- if (o) return o;
+ {
+ o = evry_icon_theme_get("folder", e);
+ if (o) return o;
+ }
if ((!it->icon) && (file->mime) &&
(/*(!strncmp(file->mime, "image/", 6)) || */
}
if (it->icon)
- o = evry_icon_theme_get(it->icon, e);
- if (o) return o;
-
+ {
+ o = evry_icon_theme_get(it->icon, e);
+ if (o) return o;
+ }
+
if (it->browseable)
- o = evry_icon_theme_get("folder", e);
- if (o) return o;
+ {
+ o = evry_icon_theme_get("folder", e);
+ if (o) return o;
+ }
o = evry_icon_theme_get("unknown", e);
-
return o;
}