forked from enlightenment/enlightenment
e: Show icon of appmenu module
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 82216
This commit is contained in:
parent
b0dd0b750a
commit
2abcd89a91
|
@ -1,5 +1,6 @@
|
||||||
appmenudir = $(MDIR)/appmenu
|
appmenudir = $(MDIR)/appmenu
|
||||||
appmenu_DATA = appmenu/module.desktop
|
appmenu_DATA = appmenu/module.desktop \
|
||||||
|
appmenu/e-module-appmenu.edj
|
||||||
|
|
||||||
EXTRA_DIST += $(appmenu2_DATA)
|
EXTRA_DIST += $(appmenu2_DATA)
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -82,13 +82,19 @@ _gc_label(const E_Gadcon_Client_Class *client_class EINA_UNUSED)
|
||||||
return "Application Menu";
|
return "Application Menu";
|
||||||
}
|
}
|
||||||
|
|
||||||
static Evas_Object *
|
static char tmpbuf[1024]; /* general purpose buffer, just use immediately */
|
||||||
_gc_icon(const E_Gadcon_Client_Class *client_class EINA_UNUSED, Evas *evas EINA_UNUSED)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static char tmpbuf[64]; /* general purpose buffer, just use immediately */
|
static Evas_Object *
|
||||||
|
_gc_icon(const E_Gadcon_Client_Class *client_class, Evas *evas)
|
||||||
|
{
|
||||||
|
Evas_Object *o;
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(appmenu_module, NULL);
|
||||||
|
snprintf(tmpbuf, sizeof(tmpbuf), "%s/e-module-appmenu.edj",
|
||||||
|
e_module_dir_get(appmenu_module));
|
||||||
|
o = edje_object_add(evas);
|
||||||
|
edje_object_file_set(o, tmpbuf, "icon");
|
||||||
|
return o;
|
||||||
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
_gc_id_new(const E_Gadcon_Client_Class *client_class EINA_UNUSED)
|
_gc_id_new(const E_Gadcon_Client_Class *client_class EINA_UNUSED)
|
||||||
|
|
Loading…
Reference in New Issue