Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : tclock
Dir : e_modules/tclock
Modified Files:
e_mod_main.c tclock.edc
Log Message:
Formatting. Should now be possible to use enlightenment_remote to set the theme.
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/tclock/e_mod_main.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- e_mod_main.c 8 Jan 2006 10:42:01 -0000 1.8
+++ e_mod_main.c 14 Jan 2006 11:18:01 -0000 1.9
@@ -31,8 +31,8 @@
"TClock"
};
-EAPI void
-*e_modapi_init(E_Module *module)
+EAPI void *
+e_modapi_init(E_Module *module)
{
TClock *tclock;
tclock = _tclock_new();
@@ -76,7 +76,8 @@
EAPI int
e_modapi_about(E_Module *module)
{
- e_module_dialog_show("Simple Digital Clock", "Displays a digital clock on
the desktop");
+ e_module_dialog_show(_("Simple Digital Clock"),
+ _("Displays a digital clock on the desktop"));
return 1;
}
@@ -107,8 +108,8 @@
/******************************************************************
* private functions
****************************************************************/
-static TClock
-*_tclock_new()
+static TClock *
+_tclock_new()
{
TClock *tclock;
Evas_List *managers, *l, *l2, *cl;
@@ -204,7 +205,6 @@
mi = e_menu_item_new(tclock->config_menu);
e_menu_item_label_set(mi, con->name);
e_menu_item_submenu_set(mi, face->menu);
-
}
}
}
@@ -238,13 +238,14 @@
tclock->config_menu = e_menu_new();
}
-static TClock_Face
-*_tclock_face_new(E_Container *con)
+static TClock_Face *
+_tclock_face_new(E_Container *con)
{
TClock_Face *face;
Evas_Object *o;
Evas_Coord x, y, w, h;
-
+ char buff[4096];
+
face = E_NEW(TClock_Face, 1);
if (!face) return NULL;
@@ -255,7 +256,9 @@
o = edje_object_add(con->bg_evas);
face->tclock_object = o;
- edje_object_file_set(o, PACKAGE_DATA_DIR"/tclock.edj", "tclock/main");
+ snprintf(buff, sizeof(buff), PACKAGE_DATA_DIR"/tclock.edj");
+ if (!e_theme_edje_object_set(o, "base/theme/modules/tclock",
"modules/tclock/main"))
+ edje_object_file_set(o, strdup(buff), "modules/tclock/main");
evas_object_show(o);
o = evas_object_rectangle_add(con->bg_evas);
@@ -333,8 +336,6 @@
current_time=time(NULL);
local_time = localtime(¤t_time);
- //strftime (buf,TIME_BUF, "%a %d,%b %H:%M", local_time);
-
tclock = data;
for (l = tclock->faces; l; l = l->next)
{
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/tclock/tclock.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- tclock.edc 19 Dec 2005 22:39:11 -0000 1.1
+++ tclock.edc 14 Jan 2006 11:18:01 -0000 1.2
@@ -4,7 +4,7 @@
}
collections {
group {
- name, "tclock/main";
+ name, "modules/tclock/main";
min, 32 32;
max, 1024 768;
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs