forked from enlightenment/enlightenment
parent
6375b62f0f
commit
ad4feaa85e
|
@ -80,9 +80,9 @@ e_modapi_init(E_Module *m)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Battery<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Battery Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -136,21 +136,21 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Battery Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A basic battery meter that uses either"
|
||||
"<hilight>ACPI</hilight> or <hilight>APM</hilight><br>"
|
||||
"on Linux to monitor your battery and AC power adaptor<br>"
|
||||
"status. This will work under Linux and FreeBSD and is only<br>"
|
||||
"as accurate as your BIOS or kernel drivers."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Battery Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A basic battery meter that uses either"
|
||||
"<hilight>ACPI</hilight> or <hilight>APM</hilight><br>"
|
||||
"on Linux to monitor your battery and AC power adaptor<br>"
|
||||
"status. This will work under Linux and FreeBSD and is only<br>"
|
||||
"as accurate as your BIOS or kernel drivers."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
@ -775,17 +775,18 @@ _battery_cb_check(void *data)
|
|||
{
|
||||
if (!ef->alarm_triggered)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Battery Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("Battery Running Low<br>Your battery is running low.<br>"
|
||||
"You may wish to switch to an AC source."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Battery Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("Battery Running Low<br>"
|
||||
"Your battery is running low.<br>"
|
||||
"You may wish to switch to an AC source."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
}
|
||||
edje_object_signal_emit(face->bat_object, "pulse", "");
|
||||
}
|
||||
|
|
|
@ -53,9 +53,9 @@ e_modapi_init(E_Module *module)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Clock<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, module->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, module->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Clock Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -111,17 +111,17 @@ e_modapi_info(E_Module *module)
|
|||
int
|
||||
e_modapi_about(E_Module *module)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Clock Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A simple module to give E17 a clock."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Clock Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A simple module to give E17 a clock."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
|
|
@ -71,9 +71,9 @@ e_modapi_init(E_Module *module)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Cpufreq<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, module->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, module->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Cpufreq Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -128,18 +128,18 @@ e_modapi_info(E_Module *module)
|
|||
int
|
||||
e_modapi_about(E_Module *module)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "CPU Frequency Controller Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A simple module to control the frequency of the system CPU.<br>"
|
||||
"This is especially useful to save power on laptops."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "CPU Frequency Controller Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A simple module to control the frequency of the system CPU.<br>"
|
||||
"This is especially useful to save power on laptops."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static Cpufreq *
|
||||
|
@ -326,7 +326,7 @@ _cpufreq_set_governor(Cpufreq *e, const char *governor)
|
|||
e_dialog_title_set(dia, "Enlightenment Cpufreq Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("There was an error trying to set the cpu frequency<br>"
|
||||
"governor via the module's setfreq utility."));
|
||||
"governor via the module's setfreq utility."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
|
@ -354,7 +354,7 @@ _cpufreq_set_frequency(Cpufreq *e, int frequency)
|
|||
e_dialog_title_set(dia, "Enlightenment Cpufreq Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("There was an error trying to set the cpu frequency<br>"
|
||||
"setting via the module's setfreq utility."));
|
||||
"setting via the module's setfreq utility."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
|
|
|
@ -104,9 +104,9 @@ e_modapi_init(E_Module *m)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Dropshadow<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Dropshadow Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -200,19 +200,19 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Dropshadow Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This is the dropshadow module that allows dropshadows to be cast<br>"
|
||||
"on the desktop background - without special X-Server extensions<br>"
|
||||
"or hardware acceleration."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Dropshadow Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This is the dropshadow module that allows dropshadows to be cast<br>"
|
||||
"on the desktop background - without special X-Server extensions<br>"
|
||||
"or hardware acceleration."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
|
|
@ -125,9 +125,9 @@ e_modapi_init(E_Module *m)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: IBar<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment IBar Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -181,20 +181,20 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment IBar Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This is the IBar Application Launcher bar module for Enlightenment.<br>"
|
||||
"It is a first example module and is being used to flesh out several<br>"
|
||||
"interfaces in Enlightenment 0.17.0. It is under heavy development,<br>"
|
||||
"so expect it to <hilight>break often</hilight> and change as it improves."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment IBar Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This is the IBar Application Launcher bar module for Enlightenment.<br>"
|
||||
"It is a first example module and is being used to flesh out several<br>"
|
||||
"interfaces in Enlightenment 0.17.0. It is under heavy development,<br>"
|
||||
"so expect it to <hilight>break often</hilight> and change as it improves."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
|
|
@ -107,9 +107,9 @@ e_modapi_init(E_Module *m)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: IBox<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment IBox Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -163,18 +163,18 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment IBox Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This is the IBox Iconified Application module for Enlightenment.<br>"
|
||||
"It will hold minimized applications"));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment IBox Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This is the IBox Iconified Application module for Enlightenment.<br>"
|
||||
"It will hold minimized applications"));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
|
|
@ -119,9 +119,9 @@ e_modapi_init(E_Module *module)
|
|||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Pager<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, module->api->version);
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, module->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Pager Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
|
@ -178,17 +178,17 @@ e_modapi_info(E_Module *module)
|
|||
int
|
||||
e_modapi_about(E_Module *module)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Pager Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A pager module to navigate virtual desktops."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Pager Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A pager module to navigate virtual desktops."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
|
|
@ -32,25 +32,26 @@ e_modapi_init(E_Module *m)
|
|||
{
|
||||
Randr *e;
|
||||
|
||||
if (m->api->version < E_MODULE_API_VERSION) {
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Randr<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Randr<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Randr Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
e_dialog_title_set(dia, "Enlightenment Randr Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Create the button */
|
||||
|
@ -100,17 +101,17 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Randr Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("Module to change screen resolution for E17"));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Randr Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("Module to change screen resolution for E17"));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static Randr *
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||
*/
|
||||
#include "e.h"
|
||||
#include "e_mod_main.h"
|
||||
#include "e_int_menus.h"
|
||||
|
@ -24,26 +27,27 @@ e_modapi_init(E_Module *m)
|
|||
{
|
||||
Start *e;
|
||||
|
||||
if (m->api->version < E_MODULE_API_VERSION) {
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Start<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Start<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Start Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
}
|
||||
e_dialog_title_set(dia, "Enlightenment Start Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Create the button */
|
||||
e = _start_new();
|
||||
|
@ -88,17 +92,17 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Start Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("Experimental Button module for E17"));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Start Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("Experimental Button module for E17"));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static Start *
|
||||
|
|
|
@ -46,24 +46,24 @@ e_modapi_init(E_Module *m)
|
|||
/* check module api version */
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Temperature<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Temperature<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Temperature Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
e_dialog_title_set(dia, "Enlightenment Temperature Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
}
|
||||
/* actually init temperature */
|
||||
e = _temperature_new(m);
|
||||
|
@ -109,19 +109,19 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Temperature Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A module to measure the <hilight>ACPI Thermal sensor</hilight> on Linux.<br>"
|
||||
"It is especially useful for modern Laptops with high speed<br>"
|
||||
"CPUs that generate a lot of heat."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Temperature Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("A module to measure the <hilight>ACPI Thermal sensor</hilight> on Linux.<br>"
|
||||
"It is especially useful for modern Laptops with high speed<br>"
|
||||
"CPUs that generate a lot of heat."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* module private routines */
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||
*/
|
||||
#include "e.h"
|
||||
#include "e_mod_main.h"
|
||||
|
||||
|
@ -6,24 +9,24 @@ e_modapi_init(E_Module *m)
|
|||
{
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
E_Dialog *dia;
|
||||
char buf[4096];
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return NULL;
|
||||
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Test<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Test<br>"
|
||||
"It requires a minimum module API version of: %i.<br>"
|
||||
"The module API advertized by Enlightenment is: %i.<br>"),
|
||||
E_MODULE_API_VERSION, m->api->version);
|
||||
|
||||
e_dialog_title_set(dia, "Enlightenment Test Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
e_dialog_title_set(dia, "Enlightenment Test Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, buf);
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return NULL;
|
||||
}
|
||||
{
|
||||
E_Menu *mn;
|
||||
|
@ -73,17 +76,17 @@ e_modapi_info(E_Module *m)
|
|||
int
|
||||
e_modapi_about(E_Module *m)
|
||||
{
|
||||
E_Dialog *dia;
|
||||
E_Dialog *dia;
|
||||
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Test Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This module is VERY simple and is only used to test the basic<br>"
|
||||
"interface of the Enlightenment 0.17.0 module system. Please<br>"
|
||||
"ignore this module unless you are working on the module system."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
|
||||
if (!dia) return 0;
|
||||
e_dialog_title_set(dia, "Enlightenment Test Module");
|
||||
e_dialog_icon_set(dia, "enlightenment/e", 64);
|
||||
e_dialog_text_set(dia, _("This module is VERY simple and is only used to test the basic<br>"
|
||||
"interface of the Enlightenment 0.17.0 module system. Please<br>"
|
||||
"ignore this module unless you are working on the module system."));
|
||||
e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
|
||||
e_win_centered_set(dia->win, 1);
|
||||
e_dialog_show(dia);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue