Enlightenment CVS committal
Author : devilhorns
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_about.c
Log Message:
Formatting/Whitespace Fixes.
Update Copyright year.
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_about.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- e_about.c 8 Jul 2008 19:41:42 -0000 1.20
+++ e_about.c 11 Jul 2008 03:01:02 -0000 1.21
@@ -21,11 +21,11 @@
E_Manager *man;
Evas_Object *o;
E_About *about;
-
+
if (_e_about)
{
E_Zone *z, *z2;
-
+
about = _e_about;
z = e_util_zone_current_get(e_manager_current_get());
z2 = about->win->border->zone;
@@ -43,7 +43,7 @@
e_border_unshade(about->win->border, E_DIRECTION_DOWN);
return NULL;
}
-
+
if (!con)
{
man = e_manager_current_get();
@@ -66,19 +66,19 @@
e_win_dialog_set(about->win, 1);
e_win_name_class_set(about->win, "E", "_about");
e_win_title_set(about->win, _("About Enlightenment"));
-
+
o = edje_object_add(e_win_evas_get(about->win));
about->bg_object = o;
e_theme_edje_object_set(o, "base/theme/about", "e/widgets/about/main");
evas_object_move(o, 0, 0);
evas_object_show(o);
-
+
edje_object_part_text_set(about->bg_object, "e.text.title",
_("Enlightenment"));
edje_object_part_text_set(about->bg_object, "e.text.version", VERSION);
edje_object_part_text_set
(about->bg_object, "e.textblock.about",
_(
- "Copyright © 1999-2007, by the Enlightenment Development Team.<br>"
+ "Copyright © 1999-2008, by the Enlightenment Development Team.<br>"
"<br>"
"We hope you enjoy using this software as much as we enjoyed "
"writing it.<br>"
@@ -98,7 +98,7 @@
{
FILE *f;
char buf[4096], buf2[4096], *tbuf;
-
+
snprintf(buf, sizeof(buf), "%s/AUTHORS", e_prefix_data_get());
f = fopen(buf, "r");
if (f)
@@ -107,7 +107,7 @@
while (fgets(buf, sizeof(buf), f))
{
int len;
-
+
len = strlen(buf);
if (len > 0)
{
@@ -119,7 +119,7 @@
if (len > 0)
{
char *p;
-
+
do
{
p = strchr(buf, '<');
@@ -141,7 +141,8 @@
fclose(f);
if (tbuf)
{
- edje_object_part_text_set(about->bg_object,
"e.textblock.authors", tbuf);
+ edje_object_part_text_set(about->bg_object,
+ "e.textblock.authors", tbuf);
free(tbuf);
}
}
@@ -155,7 +156,7 @@
e_about_show(E_About *about)
{
Evas_Coord w, h, mw, mh;
-
+
edje_object_size_min_get(about->bg_object, &w, &h);
edje_object_size_min_calc(about->bg_object, &mw, &mh);
if (w > mw) mw = w;
@@ -163,7 +164,7 @@
evas_object_resize(about->bg_object, mw, mh);
e_win_resize(about->win, mw, mh);
e_win_size_min_set(about->win, mw, mh);
-
+
edje_object_size_max_get(about->bg_object, &w, &h);
if ((w > 0) && (h > 0))
{
@@ -188,9 +189,8 @@
_e_about_cb_delete(E_Win *win)
{
E_About *about;
-
- about = win->data;
- if (!about) return;
+
+ if (!(about = win->data)) return;
e_object_del(E_OBJECT(about));
}
@@ -198,9 +198,8 @@
_e_about_cb_close(void *data, Evas_Object *obj, const char *emission, const
char *source)
{
E_About *about;
-
- about = data;
- if (!about) return;
+
+ if (!(about = data)) return;
e_util_defer_object_del(E_OBJECT(about));
}
@@ -208,7 +207,7 @@
_e_about_cb_resize(E_Win *win)
{
E_About *about;
-
+
about = win->data;
evas_object_resize(about->bg_object, about->win->w, about->win->h);
}
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs