forked from enlightenment/enlightenment
e: Show icon of music-control module
Patch by: José Roberto de Souza <zehortigoza@profusion.mobi> SVN revision: 82215
This commit is contained in:
parent
3c4ec8960d
commit
b0dd0b750a
|
@ -1,5 +1,6 @@
|
||||||
music_controldir = $(MDIR)/music-control
|
music_controldir = $(MDIR)/music-control
|
||||||
music_control_DATA = music-control/module.desktop
|
music_control_DATA = music-control/module.desktop \
|
||||||
|
music-control/e-module-music-control.edj
|
||||||
|
|
||||||
EXTRA_DIST += $(music_control_DATA)
|
EXTRA_DIST += $(music_control_DATA)
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -136,17 +136,20 @@ _gc_label(const E_Gadcon_Client_Class *client_class)
|
||||||
return _e_music_control_Name;
|
return _e_music_control_Name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char tmpbuf[1024]; /* general purpose buffer, just use immediately */
|
||||||
|
|
||||||
static Evas_Object *
|
static Evas_Object *
|
||||||
_gc_icon(const E_Gadcon_Client_Class *client_class, Evas *evas)
|
_gc_icon(const E_Gadcon_Client_Class *client_class, Evas *evas)
|
||||||
{
|
{
|
||||||
Evas_Object *o = edje_object_add(evas);
|
Evas_Object *o;
|
||||||
e_theme_edje_object_set(o, "base/theme/modules/music-control",
|
EINA_SAFETY_ON_NULL_RETURN_VAL(music_control_mod, NULL);
|
||||||
"modules/music-control/icon");
|
snprintf(tmpbuf, sizeof(tmpbuf), "%s/e-module-music-control.edj",
|
||||||
|
e_module_dir_get(music_control_mod));
|
||||||
|
o = edje_object_add(evas);
|
||||||
|
edje_object_file_set(o, tmpbuf, "icon");
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char tmpbuf[32]; /* general purpose buffer, just use immediately */
|
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
_gc_id_new(const E_Gadcon_Client_Class *client_class)
|
_gc_id_new(const E_Gadcon_Client_Class *client_class)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue