forked from enlightenment/enlightenment
ibox isnt used/etc. so for now lets remove it.
SVN revision: 14145
This commit is contained in:
parent
272ecdcb9d
commit
712d33389f
|
@ -2,7 +2,6 @@ MAINTAINERCLEANFILES = Makefile.in
|
|||
SUBDIRS = \
|
||||
test \
|
||||
ibar \
|
||||
ibox \
|
||||
dropshadow \
|
||||
clock \
|
||||
pager \
|
||||
|
|
|
@ -42,11 +42,11 @@ init(E_Module *m)
|
|||
/* check module api version */
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: Battery\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: Battery\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
m->api->version);
|
||||
return NULL;
|
||||
|
@ -86,7 +86,7 @@ info(E_Module *m)
|
|||
{
|
||||
char buf[4096];
|
||||
|
||||
m->label = strdup("Battery");
|
||||
m->label = strdup(_("Battery"));
|
||||
snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(m));
|
||||
m->icon_file = strdup(buf);
|
||||
return 1;
|
||||
|
@ -95,11 +95,11 @@ info(E_Module *m)
|
|||
int
|
||||
about(E_Module *m)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment Battery Module",
|
||||
"A basic battery meter that uses either ACPI or APM\n"
|
||||
e_error_dialog_show(_("Enlightenment Battery Module"),
|
||||
_("A basic battery meter that uses either ACPI or APM\n"
|
||||
"on Linux to monitor your battery and AC power adaptor\n"
|
||||
"status. This will only work under Linux and is only\n"
|
||||
"as accurate as your BIOS or kernel drivers.");
|
||||
"as accurate as your BIOS or kernel drivers."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -187,11 +187,11 @@ _battery_new()
|
|||
|
||||
/* Add main menu to face menu */
|
||||
mi = e_menu_item_new(ef->menu);
|
||||
e_menu_item_label_set(mi, "Set Poll Time");
|
||||
e_menu_item_label_set(mi, _("Set Poll Time"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_poll);
|
||||
|
||||
mi = e_menu_item_new(ef->menu);
|
||||
e_menu_item_label_set(mi, "Set Alarm");
|
||||
e_menu_item_label_set(mi, _("Set Alarm"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_alarm);
|
||||
|
||||
mi = e_menu_item_new(e->config_menu);
|
||||
|
@ -415,7 +415,7 @@ _battery_config_menu_new(Battery *e)
|
|||
e_menu_item_callback_set(mi, _battery_menu_alarm_50, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "1 hour");
|
||||
e_menu_item_label_set(mi, _("1 hour"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->alarm == 60) e_menu_item_toggle_set(mi, 1);
|
||||
|
@ -427,35 +427,35 @@ _battery_config_menu_new(Battery *e)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Check Fast (1 sec)");
|
||||
e_menu_item_label_set(mi, _("Check Fast (1 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 1.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _battery_menu_fast, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Check Medium (5 sec)");
|
||||
e_menu_item_label_set(mi, _("Check Medium (5 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 5.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _battery_menu_medium, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Check Normal (10 sec)");
|
||||
e_menu_item_label_set(mi, _("Check Normal (10 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 10.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _battery_menu_normal, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Check Slow (30 sec)");
|
||||
e_menu_item_label_set(mi, _("Check Slow (30 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 30.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _battery_menu_slow, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Check Very Slow (60 sec)");
|
||||
e_menu_item_label_set(mi, _("Check Very Slow (60 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 60.0) e_menu_item_toggle_set(mi, 1);
|
||||
|
@ -466,11 +466,11 @@ _battery_config_menu_new(Battery *e)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Set Poll Time");
|
||||
e_menu_item_label_set(mi, _("Set Poll Time"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_poll);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Set Alarm");
|
||||
e_menu_item_label_set(mi, _("Set Alarm"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_alarm);
|
||||
|
||||
e->config_menu = mn;
|
||||
|
@ -552,7 +552,7 @@ _battery_face_menu_new(Battery_Face *face)
|
|||
/* Enabled */
|
||||
/*
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Enabled");
|
||||
e_menu_item_label_set(mi, _("Enabled"));
|
||||
e_menu_item_check_set(mi, 1);
|
||||
if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _battery_face_cb_menu_enabled, face);
|
||||
|
@ -560,7 +560,7 @@ _battery_face_menu_new(Battery_Face *face)
|
|||
|
||||
/* Edit */
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Edit Mode");
|
||||
e_menu_item_label_set(mi, _("Edit Mode"));
|
||||
e_menu_item_callback_set(mi, _battery_face_cb_menu_edit, face);
|
||||
}
|
||||
|
||||
|
@ -685,9 +685,9 @@ _battery_cb_check(void *data)
|
|||
{
|
||||
if (!ef->alarm_triggered)
|
||||
{
|
||||
e_error_dialog_show("Battery Running Low",
|
||||
"Your battery is running low.\n"
|
||||
"You may wish to switch to an AC source.");
|
||||
e_error_dialog_show(_("Battery Running Low"),
|
||||
_("Your battery is running low.\n"
|
||||
"You may wish to switch to an AC source."));
|
||||
}
|
||||
edje_object_signal_emit(face->bat_object, "pulse", "");
|
||||
}
|
||||
|
@ -747,7 +747,7 @@ _battery_cb_check(void *data)
|
|||
|
||||
if (ef->battery_prev_battery != -2)
|
||||
edje_object_signal_emit(face->bat_object, "unknown", "");
|
||||
edje_object_part_text_set(face->bat_object, "reading", "NO INFO");
|
||||
edje_object_part_text_set(face->bat_object, "reading", _("NO INFO"));
|
||||
edje_object_part_text_set(face->bat_object, "time", "--:--");
|
||||
_battery_face_level_set(face, (double)(rand() & 0xff) / 255.0);
|
||||
}
|
||||
|
@ -879,7 +879,7 @@ _battery_linux_acpi_check(Battery *ef)
|
|||
{
|
||||
stat->has_battery = 0;
|
||||
stat->state = BATTERY_STATE_NONE;
|
||||
stat->reading = strdup("NO BAT");
|
||||
stat->reading = strdup(_("NO BAT"));
|
||||
stat->time = strdup("--:--");
|
||||
stat->level = 1.0;
|
||||
}
|
||||
|
@ -903,7 +903,7 @@ _battery_linux_acpi_check(Battery *ef)
|
|||
}
|
||||
if (level_unknown)
|
||||
{
|
||||
stat->reading = strdup("BAD DRIVER");
|
||||
stat->reading = strdup(_("BAD DRIVER"));
|
||||
stat->time = strdup("--:--");
|
||||
stat->level = 0.0;
|
||||
}
|
||||
|
@ -927,7 +927,7 @@ _battery_linux_acpi_check(Battery *ef)
|
|||
{
|
||||
stat->has_battery = 1;
|
||||
stat->state = BATTERY_STATE_NONE;
|
||||
stat->reading = strdup("FULL");
|
||||
stat->reading = strdup(_("FULL"));
|
||||
stat->time = strdup("--:--");
|
||||
stat->level = 1.0;
|
||||
}
|
||||
|
@ -987,19 +987,19 @@ _battery_linux_apm_check(Battery *ef)
|
|||
switch (bat_stat)
|
||||
{
|
||||
case 0:
|
||||
stat->reading = strdup("High");
|
||||
stat->reading = strdup(_("High"));
|
||||
stat->level = 1.0;
|
||||
break;
|
||||
case 1:
|
||||
stat->reading = strdup("Low");
|
||||
stat->reading = strdup(_("Low"));
|
||||
stat->level = 0.5;
|
||||
break;
|
||||
case 2:
|
||||
stat->reading = strdup("Danger");
|
||||
stat->reading = strdup(_("Danger"));
|
||||
stat->level = 0.25;
|
||||
break;
|
||||
case 3:
|
||||
stat->reading = strdup("Charging");
|
||||
stat->reading = strdup(_("Charging"));
|
||||
stat->level = 1.0;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -37,11 +37,11 @@ init(E_Module *module)
|
|||
/* check module api version */
|
||||
if (module->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: Clock\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: Clock\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
module->api->version);
|
||||
return NULL;
|
||||
|
@ -83,7 +83,7 @@ info(E_Module *module)
|
|||
{
|
||||
char buf[4096];
|
||||
|
||||
module->label = strdup("Clock");
|
||||
module->label = strdup(_("Clock"));
|
||||
snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(module));
|
||||
module->icon_file = strdup(buf);
|
||||
return 1;
|
||||
|
@ -92,8 +92,8 @@ info(E_Module *module)
|
|||
int
|
||||
about(E_Module *module)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment Clock Module",
|
||||
"A simple module to give E17 a clock.");
|
||||
e_error_dialog_show(_("Enlightenment Clock Module"),
|
||||
_("A simple module to give E17 a clock."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -300,7 +300,7 @@ _clock_face_menu_new(Clock_Face *face)
|
|||
/* Enabled */
|
||||
/*
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Enabled");
|
||||
e_menu_item_label_set(mi, _("Enabled"));
|
||||
e_menu_item_check_set(mi, 1);
|
||||
if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _clock_face_cb_menu_enabled, face);
|
||||
|
@ -308,7 +308,7 @@ _clock_face_menu_new(Clock_Face *face)
|
|||
|
||||
/* Edit */
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Edit Mode");
|
||||
e_menu_item_label_set(mi, _("Edit Mode"));
|
||||
e_menu_item_callback_set(mi, _clock_face_cb_menu_edit, face);
|
||||
}
|
||||
|
||||
|
@ -384,3 +384,4 @@ _clock_face_cb_menu_edit(void *data, E_Menu *m, E_Menu_Item *mi)
|
|||
face = data;
|
||||
e_gadman_mode_set(face->gmc->gadman, E_GADMAN_MODE_EDIT);
|
||||
}
|
||||
|
||||
|
|
|
@ -74,11 +74,11 @@ init(E_Module *m)
|
|||
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: Dropshadow\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: Dropshadow\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
m->api->version);
|
||||
return NULL;
|
||||
|
@ -122,7 +122,7 @@ info(E_Module *m)
|
|||
{
|
||||
char buf[4096];
|
||||
|
||||
m->label = strdup("Dropshadow");
|
||||
m->label = strdup(_("Dropshadow"));
|
||||
snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(m));
|
||||
m->icon_file = strdup(buf);
|
||||
return 1;
|
||||
|
@ -131,10 +131,10 @@ info(E_Module *m)
|
|||
int
|
||||
about(E_Module *m)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment Dropshadow Module",
|
||||
"This is the dropshadow module that allows dropshadows to be cast\n"
|
||||
e_error_dialog_show(_("Enlightenment Dropshadow Module"),
|
||||
_("This is the dropshadow module that allows dropshadows to be cast\n"
|
||||
"on the desktop background - without special X-Server extensions\n"
|
||||
"or hardware acceleration.");
|
||||
"or hardware acceleration."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Fuzzy");
|
||||
e_menu_item_label_set(mi, _("Very Fuzzy"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_very_fuzzy.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -245,7 +245,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_very_fuzzy, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Fuzzy");
|
||||
e_menu_item_label_set(mi, _("Fuzzy"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_fuzzy.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -254,7 +254,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_fuzzy, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Medium");
|
||||
e_menu_item_label_set(mi, _("Medium"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_medium.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -263,7 +263,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_medium, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Sharp");
|
||||
e_menu_item_label_set(mi, _("Sharp"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_sharp.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -272,7 +272,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_sharp, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Sharp");
|
||||
e_menu_item_label_set(mi, _("Very Sharp"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_very_sharp.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -284,7 +284,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_separator_set(mi, 1);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Dark");
|
||||
e_menu_item_label_set(mi, _("Very Dark"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_very_dark.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -293,7 +293,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_very_dark, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Dark");
|
||||
e_menu_item_label_set(mi, _("Dark"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_dark.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -302,7 +302,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_dark, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Light");
|
||||
e_menu_item_label_set(mi, _("Light"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_light.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -311,7 +311,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_light, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Light");
|
||||
e_menu_item_label_set(mi, _("Very Light"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_very_light.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -323,7 +323,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_separator_set(mi, 1);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Far");
|
||||
e_menu_item_label_set(mi, _("Very Far"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_very_far.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -332,7 +332,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_very_far, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Far");
|
||||
e_menu_item_label_set(mi, _("Far"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_very_far.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -341,7 +341,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_far, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Close");
|
||||
e_menu_item_label_set(mi, _("Close"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_far.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -350,7 +350,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_close, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Close");
|
||||
e_menu_item_label_set(mi, _("Very Close"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_close.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -359,7 +359,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_very_close, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Extremely Close");
|
||||
e_menu_item_label_set(mi, _("Extremely Close"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_underneath.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
@ -368,7 +368,7 @@ _ds_config_menu_new(Dropshadow *ds)
|
|||
e_menu_item_callback_set(mi, _ds_menu_extremely_close, ds);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Immediately Underneath");
|
||||
e_menu_item_label_set(mi, _("Immediately Underneath"));
|
||||
snprintf(buf, sizeof(buf), "%s/menu_icon_underneath.png", e_module_dir_get(ds->module));
|
||||
e_menu_item_icon_file_set(mi, buf);
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
|
|
|
@ -102,11 +102,11 @@ init(E_Module *m)
|
|||
/* check module api version */
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: IBar\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: IBar\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
m->api->version);
|
||||
return NULL;
|
||||
|
@ -146,7 +146,7 @@ info(E_Module *m)
|
|||
{
|
||||
char buf[4096];
|
||||
|
||||
m->label = strdup("IBar");
|
||||
m->label = strdup(_("IBar"));
|
||||
snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(m));
|
||||
m->icon_file = strdup(buf);
|
||||
return 1;
|
||||
|
@ -155,11 +155,11 @@ info(E_Module *m)
|
|||
int
|
||||
about(E_Module *m)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment IBar Module",
|
||||
"This is the IBar Application Launcher bar module for Enlightenment.\n"
|
||||
e_error_dialog_show(_("Enlightenment IBar Module"),
|
||||
_("This is the IBar Application Launcher bar module for Enlightenment.\n"
|
||||
"It is a first example module and is being used to flesh out several\n"
|
||||
"Interfaces in Enlightenment 0.17.0. It is under heavy development,\n"
|
||||
"so expect it to break often and change as it improves.");
|
||||
"so expect it to break often and change as it improves."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -714,7 +714,7 @@ _ibar_config_menu_new(IBar *ib)
|
|||
ib->config_menu_options = mn;
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Auto fit icons");
|
||||
e_menu_item_label_set(mi, _("Auto fit icons"));
|
||||
e_menu_item_check_set(mi, 1);
|
||||
if (ib->conf->width == IBAR_WIDTH_AUTO) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_width_auto, ib);
|
||||
|
@ -723,77 +723,77 @@ _ibar_config_menu_new(IBar *ib)
|
|||
ib->config_menu_size = mn;
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Microscopic");
|
||||
e_menu_item_label_set(mi, _("Microscopic"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 8) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_microscopic, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Tiny");
|
||||
e_menu_item_label_set(mi, _("Tiny"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 12) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_tiny, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Small");
|
||||
e_menu_item_label_set(mi, _("Very Small"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 16) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_very_small, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Small");
|
||||
e_menu_item_label_set(mi, _("Small"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 24) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_small, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Medium");
|
||||
e_menu_item_label_set(mi, _("Medium"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 32) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_medium, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Large");
|
||||
e_menu_item_label_set(mi, _("Large"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 40) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_large, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Large");
|
||||
e_menu_item_label_set(mi, _("Very Large"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 48) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_very_large, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Exteremely Large");
|
||||
e_menu_item_label_set(mi, _("Exteremely Large"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 56) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_extremely_large, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Huge");
|
||||
e_menu_item_label_set(mi, _("Huge"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 64) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_huge, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Enormous");
|
||||
e_menu_item_label_set(mi, _("Enormous"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 96) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _ibar_bar_cb_iconsize_enormous, ib);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Gigantic");
|
||||
e_menu_item_label_set(mi, _("Gigantic"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 2);
|
||||
if (ib->conf->iconsize == 128) e_menu_item_toggle_set(mi, 1);
|
||||
|
@ -801,11 +801,11 @@ _ibar_config_menu_new(IBar *ib)
|
|||
|
||||
/* Submenus */
|
||||
mi = e_menu_item_new(ib->config_menu);
|
||||
e_menu_item_label_set(mi, "Options");
|
||||
e_menu_item_label_set(mi, _("Options"));
|
||||
e_menu_item_submenu_set(mi, ib->config_menu_options);
|
||||
|
||||
mi = e_menu_item_new(ib->config_menu);
|
||||
e_menu_item_label_set(mi, "Size");
|
||||
e_menu_item_label_set(mi, _("Size"));
|
||||
e_menu_item_submenu_set(mi, ib->config_menu_size);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
.deps
|
||||
.libs
|
||||
Makefile
|
||||
Makefile.in
|
||||
*.lo
|
||||
module.la
|
|
@ -1,26 +0,0 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
MODULE = ibox
|
||||
|
||||
# data files for the module
|
||||
filesdir = $(libdir)/enlightenment/modules/$(MODULE)
|
||||
files_DATA = \
|
||||
module_icon.png
|
||||
|
||||
EXTRA_DIST = $(files_DATA)
|
||||
|
||||
# the module .so file
|
||||
INCLUDES = -I. \
|
||||
-I$(top_srcdir) \
|
||||
-I$(includedir) \
|
||||
-I$(top_srcdir)$(MODULE) \
|
||||
-I$(top_srcdir)/src/bin \
|
||||
-I$(top_srcdir)/src/lib \
|
||||
-I$(top_srcdir)/src/modules \
|
||||
@e_cflags@
|
||||
pkgdir = $(libdir)/enlightenment/modules/$(MODULE)/$(MODULE_ARCH)
|
||||
pkg_LTLIBRARIES = module.la
|
||||
module_la_SOURCES = e_mod_main.c \
|
||||
e_mod_main.h
|
||||
module_la_LIBADD = @e_libs@ @dlopen_libs@
|
||||
module_la_LDFLAGS = -module -avoid-version
|
||||
module_la_DEPENDENCIES = $(top_builddir)/config.h
|
File diff suppressed because it is too large
Load Diff
|
@ -1,86 +0,0 @@
|
|||
#ifndef E_MOD_MAIN_H
|
||||
#define E_MOD_MAIN_H
|
||||
|
||||
typedef struct _Config Config;
|
||||
typedef struct _IBox IBox;
|
||||
typedef struct _IBox_Box IBox_Box;
|
||||
typedef struct _IBox_Icon IBox_Icon;
|
||||
|
||||
struct _Config
|
||||
{
|
||||
double follow_speed;
|
||||
double autoscroll_speed;
|
||||
int width;
|
||||
int iconsize;
|
||||
int edge;
|
||||
double anchor;
|
||||
double handle;
|
||||
char autohide;
|
||||
};
|
||||
|
||||
struct _IBox
|
||||
{
|
||||
Evas_List *boxs;
|
||||
E_Menu *config_menu;
|
||||
|
||||
E_Config_DD *conf_edd;
|
||||
Config *conf;
|
||||
};
|
||||
|
||||
struct _IBox_Box
|
||||
{
|
||||
IBox *ibox;
|
||||
E_Container *con;
|
||||
Evas *evas;
|
||||
|
||||
Evas_Object *box_object;
|
||||
Evas_Object *overlay_object;
|
||||
Evas_Object *base_object;
|
||||
Evas_Object *event_object;
|
||||
|
||||
Evas_List *icons;
|
||||
|
||||
Evas_Coord minsize, maxsize;
|
||||
|
||||
double align, align_req;
|
||||
double follow, follow_req;
|
||||
Ecore_Timer *timer;
|
||||
Ecore_Animator *animator;
|
||||
|
||||
Evas_Coord x, y, w, h;
|
||||
|
||||
unsigned char move : 1;
|
||||
unsigned char resize1 : 1;
|
||||
unsigned char resize2 : 1;
|
||||
Evas_Coord start_x, start_y;
|
||||
Evas_Coord start_bx, start_by, start_bw, start_bh;
|
||||
|
||||
Ecore_Event_Handler *ev_handler_container_resize;
|
||||
};
|
||||
|
||||
struct _IBox_Icon
|
||||
{
|
||||
IBox_Box *ibb;
|
||||
E_App *app;
|
||||
Evas_Object *bg_object;
|
||||
Evas_Object *overlay_object;
|
||||
Evas_Object *icon_object;
|
||||
Evas_Object *event_object;
|
||||
Evas_List *extra_icons;
|
||||
E_Border *border;
|
||||
|
||||
unsigned char raise_on_hilight : 1;
|
||||
};
|
||||
|
||||
#define EDGE_BOTTOM 0
|
||||
#define EDGE_TOP 1
|
||||
#define EDGE_LEFT 2
|
||||
#define EDGE_RIGHT 3
|
||||
|
||||
EAPI void *init (E_Module *m);
|
||||
EAPI int shutdown (E_Module *m);
|
||||
EAPI int save (E_Module *m);
|
||||
EAPI int info (E_Module *m);
|
||||
EAPI int about (E_Module *m);
|
||||
|
||||
#endif
|
Binary file not shown.
|
@ -76,11 +76,11 @@ init(E_Module *module)
|
|||
/* check module api version */
|
||||
if (module->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: Pager\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: Pager\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
module->api->version);
|
||||
return NULL;
|
||||
|
@ -123,7 +123,7 @@ info(E_Module *module)
|
|||
{
|
||||
char buf[4096];
|
||||
|
||||
module->label = strdup("Pager");
|
||||
module->label = strdup(_("Pager"));
|
||||
snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(module));
|
||||
module->icon_file = strdup(buf);
|
||||
return 1;
|
||||
|
@ -132,8 +132,8 @@ info(E_Module *module)
|
|||
int
|
||||
about(E_Module *module)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment Pager Module",
|
||||
"A pager module to navigate virtual desktops.");
|
||||
e_error_dialog_show(_("Enlightenment Pager Module"),
|
||||
_("A pager module to navigate virtual desktops."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -40,11 +40,11 @@ init(E_Module *m)
|
|||
/* check module api version */
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: Temperature\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: Temperature\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
m->api->version);
|
||||
return NULL;
|
||||
|
@ -84,7 +84,7 @@ info(E_Module *m)
|
|||
{
|
||||
char buf[4096];
|
||||
|
||||
m->label = strdup("Temperature");
|
||||
m->label = strdup(_("Temperature"));
|
||||
snprintf(buf, sizeof(buf), "%s/module_icon.png", e_module_dir_get(m));
|
||||
m->icon_file = strdup(buf);
|
||||
return 1;
|
||||
|
@ -93,10 +93,10 @@ info(E_Module *m)
|
|||
int
|
||||
about(E_Module *m)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment Temperature Module",
|
||||
"A module to measure the ACPI Thermal sensor on Linux.\n"
|
||||
e_error_dialog_show(_("Enlightenment Temperature Module"),
|
||||
_("A module to measure the ACPI Thermal sensor on Linux.\n"
|
||||
"It is especially useful for modern Laptops with high speed\n"
|
||||
"CPUs that generate a lot of heat.");
|
||||
"CPUs that generate a lot of heat."));
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -181,15 +181,15 @@ _temperature_new()
|
|||
|
||||
/* Add main menu to face menu */
|
||||
mi = e_menu_item_new(ef->menu);
|
||||
e_menu_item_label_set(mi, "Check Interval");
|
||||
e_menu_item_label_set(mi, _("Check Interval"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_poll);
|
||||
|
||||
mi = e_menu_item_new(ef->menu);
|
||||
e_menu_item_label_set(mi, "Low Temperature");
|
||||
e_menu_item_label_set(mi, _("Low Temperature"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_low);
|
||||
|
||||
mi = e_menu_item_new(ef->menu);
|
||||
e_menu_item_label_set(mi, "High Temperature");
|
||||
e_menu_item_label_set(mi, _("High Temperature"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_high);
|
||||
|
||||
mi = e_menu_item_new(e->config_menu);
|
||||
|
@ -457,35 +457,35 @@ _temperature_config_menu_new(Temperature *e)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Fast (1 sec)");
|
||||
e_menu_item_label_set(mi, _("Fast (1 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 1.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_fast, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Medium (5 sec)");
|
||||
e_menu_item_label_set(mi, _("Medium (5 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 5.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_medium, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Normal (10 sec)");
|
||||
e_menu_item_label_set(mi, _("Normal (10 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 10.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_normal, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Slow (30 sec)");
|
||||
e_menu_item_label_set(mi, _("Slow (30 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 30.0) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_slow, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Very Slow (60 sec)");
|
||||
e_menu_item_label_set(mi, _("Very Slow (60 sec)"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->poll_time == 60.0) e_menu_item_toggle_set(mi, 1);
|
||||
|
@ -497,35 +497,35 @@ _temperature_config_menu_new(Temperature *e)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "10°C");
|
||||
e_menu_item_label_set(mi, _("10°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->low == 10) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_low_10, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "20°C");
|
||||
e_menu_item_label_set(mi, _("20°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->low == 20) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_low_20, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "30°C");
|
||||
e_menu_item_label_set(mi, _("30°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->low == 30) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_low_30, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "40°C");
|
||||
e_menu_item_label_set(mi, _("40°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->low == 40) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_low_40, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "50°C");
|
||||
e_menu_item_label_set(mi, _("50°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->low == 50) e_menu_item_toggle_set(mi, 1);
|
||||
|
@ -537,63 +537,63 @@ _temperature_config_menu_new(Temperature *e)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "20°C");
|
||||
e_menu_item_label_set(mi, _("20°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 20) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_20, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "30°C");
|
||||
e_menu_item_label_set(mi, _("30°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 30) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_30, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "40°C");
|
||||
e_menu_item_label_set(mi, _("40°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 40) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_40, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "50°C");
|
||||
e_menu_item_label_set(mi, _("50°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 50) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_50, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "60°C");
|
||||
e_menu_item_label_set(mi, _("60°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 60) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_60, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "70°C");
|
||||
e_menu_item_label_set(mi, _("70°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 70) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_70, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "80°C");
|
||||
e_menu_item_label_set(mi, _("80°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 80) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_80, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "90°C");
|
||||
e_menu_item_label_set(mi, _("90°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 90) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_menu_high_90, e);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "100°C");
|
||||
e_menu_item_label_set(mi, _("100°C"));
|
||||
e_menu_item_radio_set(mi, 1);
|
||||
e_menu_item_radio_group_set(mi, 1);
|
||||
if (e->conf->high == 100) e_menu_item_toggle_set(mi, 1);
|
||||
|
@ -605,15 +605,15 @@ _temperature_config_menu_new(Temperature *e)
|
|||
mn = e_menu_new();
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Check Interval");
|
||||
e_menu_item_label_set(mi, _("Check Interval"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_poll);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Low Temperature");
|
||||
e_menu_item_label_set(mi, _("Low Temperature"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_low);
|
||||
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "High Temperature");
|
||||
e_menu_item_label_set(mi, _("High Temperature"));
|
||||
e_menu_item_submenu_set(mi, e->config_menu_high);
|
||||
|
||||
e->config_menu = mn;
|
||||
|
@ -713,14 +713,14 @@ _temperature_face_menu_new(Temperature_Face *face)
|
|||
/* Enabled */
|
||||
/*
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Enabled");
|
||||
e_menu_item_label_set(mi, _("Enabled"));
|
||||
e_menu_item_check_set(mi, 1);
|
||||
if (face->conf->enabled) e_menu_item_toggle_set(mi, 1);
|
||||
e_menu_item_callback_set(mi, _temperature_face_cb_menu_enabled, face);
|
||||
*/
|
||||
/* Edit */
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Edit Mode");
|
||||
e_menu_item_label_set(mi, _("Edit Mode"));
|
||||
e_menu_item_callback_set(mi, _temperature_face_cb_menu_edit, face);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ init(E_Module *m)
|
|||
{
|
||||
if (m->api->version < E_MODULE_API_VERSION)
|
||||
{
|
||||
e_error_dialog_show("Module API Error",
|
||||
"Error initializing Module: test\n"
|
||||
e_error_dialog_show(_("Module API Error"),
|
||||
_("Error initializing Module: test\n"
|
||||
"It requires a minimum module API version of: %i.\n"
|
||||
"The module API advertized by Enlightenment is: %i.\n"
|
||||
"Aborting module.",
|
||||
"Aborting module."),
|
||||
E_MODULE_API_VERSION,
|
||||
m->api->version);
|
||||
return NULL;
|
||||
|
@ -21,15 +21,15 @@ init(E_Module *m)
|
|||
|
||||
mn = e_menu_new();
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Module Config Menu Item 1");
|
||||
e_menu_item_label_set(mi, _("Module Config Menu Item 1"));
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Module Config Menu Item 2");
|
||||
e_menu_item_label_set(mi, _("Module Config Menu Item 2"));
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Module Config Menu Item 3");
|
||||
e_menu_item_label_set(mi, _("Module Config Menu Item 3"));
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_separator_set(mi, 1);
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_label_set(mi, "Something Else");
|
||||
e_menu_item_label_set(mi, _("Something Else"));
|
||||
m->config_menu = mn;
|
||||
}
|
||||
return init; /* bogus pointer - just to say we worked */
|
||||
|
@ -56,16 +56,16 @@ save(E_Module *m)
|
|||
int
|
||||
info(E_Module *m)
|
||||
{
|
||||
m->label = strdup("Test!!!");
|
||||
m->label = strdup(_("Test!!!"));
|
||||
return 1;
|
||||
}
|
||||
|
||||
int
|
||||
about(E_Module *m)
|
||||
{
|
||||
e_error_dialog_show("Enlightenment Test Module",
|
||||
"This module is VERY simple and is only used to test the basic\n"
|
||||
e_error_dialog_show(_("Enlightenment Test Module"),
|
||||
_("This module is VERY simple and is only used to test the basic\n"
|
||||
"interface of the Enlightenment 0.17.0 module system. Please\n"
|
||||
"Ignore this module unless you are working on the module system.");
|
||||
"Ignore this module unless you are working on the module system."));
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue