Revert back to using sizeof(buf). I was not aware that sizeof is a compiler
directive and doesn't encur a hit. Thanks Raster !!! :) SVN revision: 43442
This commit is contained in:
parent
b073c30f2e
commit
7f533b1be3
|
@ -33,7 +33,8 @@ _config_tclock_module(Config_Item *ci)
|
||||||
v->basic.apply_cfdata = _basic_apply;
|
v->basic.apply_cfdata = _basic_apply;
|
||||||
v->basic.create_widgets = _basic_create;
|
v->basic.create_widgets = _basic_create;
|
||||||
|
|
||||||
snprintf(buf, PATH_MAX, "%s/e-module-tclock.edj", tclock_config->mod_dir);
|
snprintf(buf, sizeof(buf), "%s/e-module-tclock.edj",
|
||||||
|
tclock_config->mod_dir);
|
||||||
con = e_container_current_get(e_manager_current_get());
|
con = e_container_current_get(e_manager_current_get());
|
||||||
cfd = e_config_dialog_new(con, D_("Tclock Settings"), "TClock",
|
cfd = e_config_dialog_new(con, D_("Tclock Settings"), "TClock",
|
||||||
"_e_modules_tclock_config_dialog", buf, 0, v, ci);
|
"_e_modules_tclock_config_dialog", buf, 0, v, ci);
|
||||||
|
|
|
@ -69,7 +69,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
|
||||||
if (!inst->ci->id) inst->ci->id = eina_stringshare_add(id);
|
if (!inst->ci->id) inst->ci->id = eina_stringshare_add(id);
|
||||||
|
|
||||||
o = edje_object_add(gc->evas);
|
o = edje_object_add(gc->evas);
|
||||||
snprintf(buf, PATH_MAX, "%s/tclock.edj", tclock_config->mod_dir);
|
snprintf(buf, sizeof(buf), "%s/tclock.edj", tclock_config->mod_dir);
|
||||||
if (!e_theme_edje_object_set(o, "base/theme/modules/tclock",
|
if (!e_theme_edje_object_set(o, "base/theme/modules/tclock",
|
||||||
"modules/tclock/main"))
|
"modules/tclock/main"))
|
||||||
edje_object_file_set(o, buf, "modules/tclock/main");
|
edje_object_file_set(o, buf, "modules/tclock/main");
|
||||||
|
@ -148,7 +148,7 @@ _gc_icon(E_Gadcon_Client_Class *client_class, Evas *evas)
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
|
||||||
o = edje_object_add (evas);
|
o = edje_object_add (evas);
|
||||||
snprintf(buf, PATH_MAX, "%s/e-module-tclock.edj", tclock_config->mod_dir);
|
snprintf(buf, sizeof(buf), "%s/e-module-tclock.edj", tclock_config->mod_dir);
|
||||||
edje_object_file_set(o, buf, "icon");
|
edje_object_file_set(o, buf, "icon");
|
||||||
return o;
|
return o;
|
||||||
}
|
}
|
||||||
|
@ -211,7 +211,7 @@ _tclock_cb_mouse_in(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||||
if (!(inst = data)) return;
|
if (!(inst = data)) return;
|
||||||
if (!inst->ci->show_tip) return;
|
if (!inst->ci->show_tip) return;
|
||||||
if (inst->tip) return;
|
if (inst->tip) return;
|
||||||
snprintf(buf, PATH_MAX, "%s/tclock.edj", tclock_config->mod_dir);
|
snprintf(buf, sizeof(buf), "%s/tclock.edj", tclock_config->mod_dir);
|
||||||
|
|
||||||
zone = e_util_zone_current_get(e_manager_current_get());
|
zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
inst->tip = e_popup_new(zone, 0, 0, 0, 0);
|
inst->tip = e_popup_new(zone, 0, 0, 0, 0);
|
||||||
|
@ -443,7 +443,7 @@ e_modapi_init(E_Module *m)
|
||||||
#if HAVE_LOCALE_H
|
#if HAVE_LOCALE_H
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
#endif
|
#endif
|
||||||
snprintf(buf, PATH_MAX, "%s/locale", m->dir);
|
snprintf(buf, sizeof(buf), "%s/locale", m->dir);
|
||||||
bindtextdomain(PACKAGE, buf);
|
bindtextdomain(PACKAGE, buf);
|
||||||
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
bind_textdomain_codeset(PACKAGE, "UTF-8");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue