use xdg icons

SVN revision: 48468
This commit is contained in:
Hannes Janetzek 2010-04-30 12:55:01 +00:00
parent 586b7d6f64
commit 1904bd4097
23 changed files with 28 additions and 34 deletions

View File

@ -4,7 +4,7 @@ MODULE = everything-aspell
# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module.edj module.desktop
module.desktop
EXTRA_DIST = $(files_DATA)

View File

@ -15,6 +15,8 @@ typedef struct _Module_Config Module_Config;
static Module_Config *_conf;
static char _config_path[] = "extensions/everthing-aspell";
static char _config_domain[] = "module.everyhing-aspell";
static char _module_icon[] = "accessories-dictionary";
static E_Config_DD *_conf_edd = NULL;
struct _Plugin
@ -385,7 +387,7 @@ _plugins_init(void)
return EINA_FALSE;
p = EVRY_PLUGIN_NEW(Plugin, N_("Spell Checker"),
"accessories-dictionary",
_module_icon,
EVRY_TYPE_TEXT,
NULL, _cleanup, _fetch, NULL);
p->config_path = _config_path;
@ -426,7 +428,6 @@ _conf_dialog(E_Container *con, const char *params)
{
E_Config_Dialog *cfd = NULL;
E_Config_Dialog_View *v = NULL;
char buf[4096];
if (e_config_dialog_find(_config_path, _config_path))
return NULL;
@ -439,10 +440,8 @@ _conf_dialog(E_Container *con, const char *params)
v->basic.create_widgets = _basic_create;
v->basic.apply_cfdata = _basic_apply;
snprintf(buf, sizeof(buf), "%s/e-module.edj", _conf->module->dir);
cfd = e_config_dialog_new(con, _("Everything Aspell"),
_config_path, _config_path, buf, 0, v, NULL);
_config_path, _config_path, _module_icon, 0, v, NULL);
_conf->cfd = cfd;
return cfd;
@ -575,11 +574,8 @@ _conf_free(void)
static void
_conf_init(E_Module *m)
{
char buf[4096];
snprintf(buf, sizeof(buf), "%s/e-module.edj", m->dir);
e_configure_registry_item_add(_config_path, 110, _("Everything Aspell"),
NULL, buf, _conf_dialog);
NULL, _module_icon, _conf_dialog);
_conf_edd = E_CONFIG_DD_NEW("Module_Config", Module_Config);

View File

@ -3,7 +3,7 @@ Type=Link
Name=Everything Aspell
Name[it]=Pannello di esecuzione - Aspell
Name[fr]=Omni - Aspell
Icon=e-module
Icon=accessories-dictionary
X-Enlightenment-ModuleType=everything
Comment=Aspell Frontend, use 'aspell ' as trigger.
Comment[it]=Frontend, usa 'aspell' come richiamo.

View File

@ -4,7 +4,7 @@ MODULE = everything-calc
# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module.edj module.desktop
module.desktop
EXTRA_DIST = $(files_DATA)

View File

@ -17,6 +17,7 @@ static Eina_List *handlers = NULL;
static int error = 0;
static char _module_icon[] = "accessories-calculator";
static Evry_Plugin *
@ -233,7 +234,7 @@ _plugins_init(void)
return EINA_FALSE;
p1 = EVRY_PLUGIN_NEW(Evry_Plugin, N_("Calculator"),
"accessories-calculator",
_module_icon,
EVRY_TYPE_TEXT,
_begin, _cleanup, _fetch, NULL);

View File

@ -3,7 +3,7 @@ Type=Link
Name=Everything Calculator
Name[it]=Pannello di esecuzione - Calcolatrice
Name[fr]=Omni - Calculatrice
Icon=e-module
Icon=accessories-calculator
X-Enlightenment-ModuleType=everything
Comment=Frontend for bc. Use '=' as trigger.
Comment[it]=Frontend per bc, usa '=' come richiamo.

View File

@ -4,7 +4,7 @@ MODULE = everything-files
# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module.edj module.desktop
module.desktop
EXTRA_DIST = $(files_DATA)

View File

@ -76,14 +76,14 @@ struct _Module_Config
};
static Module_Config *_conf;
static char _module_icon[] = "system-file-manager";
static Evry_Plugin *p1 = NULL;
static Evry_Plugin *p2 = NULL;
static Eina_List *_actions = NULL;
static const char *_mime_dir;
static void _cleanup(Evry_Plugin *plugin);
static const char *_mime_dir;
static void
_item_fill(Evry_Item_File *file)
@ -1137,7 +1137,6 @@ _conf_dialog(E_Container *con, const char *params)
{
E_Config_Dialog *cfd = NULL;
E_Config_Dialog_View *v = NULL;
char buf[4096];
if (e_config_dialog_find("everything-files", "extensions/everything-files")) return NULL;
@ -1149,10 +1148,8 @@ _conf_dialog(E_Container *con, const char *params)
v->basic.create_widgets = _basic_create;
v->basic.apply_cfdata = _basic_apply;
snprintf(buf, sizeof(buf), "%s/e-module.edj", _conf->module->dir);
cfd = e_config_dialog_new(con, _("Everything Files"), "everything-files",
"extensions/everything-files", buf, 0, v, NULL);
"extensions/everything-files", _module_icon, 0, v, NULL);
_conf->cfd = cfd;
return cfd;
@ -1256,15 +1253,11 @@ _conf_free(void)
static void
_conf_init(E_Module *m)
{
char buf[4096];
snprintf(buf, sizeof(buf), "%s/e-module.edj", m->dir);
e_configure_registry_category_add("extensions", 80, _("Extensions"),
NULL, "preferences-extensions");
e_configure_registry_item_add("extensions/everything-files", 110, _("Everything Files"),
NULL, buf, _conf_dialog);
NULL, _module_icon, _conf_dialog);
conf_edd = E_CONFIG_DD_NEW("Module_Config", Module_Config);

View File

@ -3,7 +3,7 @@ Type=Link
Name=Everything Files
Name[it]=Pannello di esecuzione - File
Name[fr]=Omni - Fichiers
Icon=e-module
Icon=system-file-manager
X-Enlightenment-ModuleType=everything
Comment[it]=Azioni sui file.
Comment[fr]=Actions sur les fichiers.

View File

@ -4,7 +4,7 @@ MODULE = everything-settings
# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module.edj module.desktop
module.desktop
EXTRA_DIST = $(files_DATA)

View File

@ -3,7 +3,7 @@ Type=Link
Name=Everything Settings
Name[it]=Pannello di esecuzione - Impostazioni
Name[fr]=Omni - Configuration
Icon=e-module
Icon=preferences-desktop
X-Enlightenment-ModuleType=everything
Comment=Quickly open e17 settings dialogs.
Comment[it]=Apre rapidamente il pannello impostazioni di e17.

View File

@ -4,7 +4,7 @@ MODULE = everything-wallpaper
# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module.edj module.desktop
module.desktop
EXTRA_DIST = $(files_DATA)

View File

@ -33,6 +33,8 @@ static Import *import = NULL;
static Evry_Action *_act;
static char _module_icon[] = "preferences-desktop-wallpaper";
static int
_action(Evry_Action *act)
{
@ -106,7 +108,7 @@ _plugins_init(void)
_act = EVRY_ACTION_NEW(_("Set as Wallpaper"),
EVRY_TYPE_FILE, 0,
"preferences-desktop-wallpaper",
_module_icon,
NULL, _check);
_act->fetch = _fetch;
EVRY_ITEM(_act)->browseable = EINA_TRUE;

View File

@ -3,7 +3,7 @@ Type=Link
Name=Everything Wallpaper
Name[it]=Pannello di esecuzione - Sfondo
Name[fr]=Omni - Fond d'écran
Icon=e-module
Icon=preferences-desktop-wallpaper
X-Enlightenment-ModuleType=everything
Comment=Provides action to set image as wallpaper.
Comment[it]=Fornisce un'azione per impostare un'immagine come sfondo.

View File

@ -4,7 +4,7 @@ MODULE = everything-windows
# data files for the module
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
files_DATA = \
e-module.edj module.desktop
module.desktop
EXTRA_DIST = $(files_DATA)

View File

@ -16,6 +16,8 @@ static Eina_List *handlers = NULL;
static Eina_Hash *border_hash = NULL;
static Eina_List *_actions = NULL;
/* static char _module_icon[] = "preferences-winlist"; */
static int
_cb_border_remove(void *data, int type, void *event)
{

View File

@ -3,7 +3,7 @@ Type=Link
Name=Everything Windows
Name[it]=Pannello di esecuzione - Finestre
Name[fr]=Omni - Fenêtres
Icon=e-module
Icon=preferences-system-windows
X-Enlightenment-ModuleType=everything
Comment=Window actions
Comment[it]=Azioni sulle finestre.