enlightenment/src
cpk 02379472ae Alright, I spent some time now reading e17's code. Here's what
I've changed, this is big, so read this carefully :)

* I've added debugging macros for messages and function call
tracing. Usage:

  D("Creating item %i %i %i\n", x, y, z);

Define DEBUG to use the D macro.

  D_ENTER;
  D_RETURN;
  D_RETURN_(x);

These are for call tracing. Use D_RETURN_(x) when returning
something from a function. Define DEBUG_NEST to use this.

* added iconbar header file to Makefile.am
* added proper new()/cleanup() calls for E_Delayed_Action;

* I've completely rewritten the object and observer handling. Bye
bye macros, this was nasty. It'll be hard enough to avoid leaks
with usecounting in C. We now basically have the same system as gtk.
There's a clear separation of observer and object code now.
An E_Object by itself has nothing to do with observing or being
observed, therefore, there are now E_Observers and E_Observees
that are derived from E_Object. IMPORTANT: The cleanup system now
reflects the reference count system, therefore, all ..._free()
calls are now static, because the destructor should never be called explicitly, but implicitly through e_object_unref(). The object handling
now is as follows:

  - The cleanup functions clean up everything that is contained in
a struct, but NOT the struct itself. Instead of the final
free() call, they call the destructor of the base class. The
calls will walk up the hierarchy and clean up what's contained in
every struct, and the final e_object_cleanup() will free the
structure itself. E_Delayed_Action is a good example.

  - The only calls that influence the reference count are
e_object_ref() and e_object_unref(). If you need to do things
before an object gets destroyed, you can query the use count using
e_object_get_usecount() and check if it's equal to 1. So this:

  OBJ_UNREF(b);
  OBJ_IF_FREE(b)
   {
     ecore_window_reparent(e->win, 0, 0, 0);
     e_icccm_release(e->win);
     OBJ_FREE(b);
   }

   now is this:

  if (e_object_get_usecount(E_OBJECT(b)) == 1)
    {
      ecore_window_reparent(e->win, 0, 0, 0);
      e_icccm_release(e->win);
    }

   e_object_unref(E_OBJECT(b));

object.h and observer.h are completely commented, it shouldn't be
too hard to understand. This'll need to be documented in the manual
anyway.

* E_Objects are now used in lots of places where void* were used as
pointers to objects before, especially in the actions code. This is
obviously better, as it will generate compiler warnings when people
want to pass things to functions that expect E_Objects. This could
probably be more restrictive.

* Added typedefs for the function prototypes in E_Action_Impl. Those
fat signatures were just painful to read in the function
declarations/implementations.

* I've also tried to give parameters more useful names. Calling an
object "o" is a lot of fun when you want to grep for it.

* Included is also Graham's latest menu.c patch. Sorry for the
delay, Graham.

* I've added checks to the menu code that make sure that menus
don't pop up when they're empty (which resulted in a little useless
rectangle).

I guess that's it for now. Sorry if I broke anything, but this was
necessary imho.


SVN revision: 5605
2001-11-02 17:07:52 +00:00
..
.cvsignore Ok this has got some initial support with ferite, currently you can only 2001-08-25 19:51:48 +00:00
Makefile.am Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
actions.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
actions.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
background.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
background.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
border.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
border.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
config.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
config.h much cleaner iconboar. ok - right now it doesn't scroll. use the buidl 2001-10-19 09:13:18 +00:00
cursors.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
cursors.h been working offline.. wheeeheee! :) 2001-09-24 21:21:25 +00:00
debug.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
debug.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
delayed.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
delayed.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
desktops.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
desktops.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
e.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
e_ferite.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
e_ferite.fec Needed to be updated to the new ecore api. Now e will compile with ferite 2001-10-18 18:33:04 +00:00
e_ferite.h Ok this has got some initial support with ferite, currently you can only 2001-08-25 19:51:48 +00:00
embed.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
embed.h add these.. and the changes.. nothing useful yet :) 2001-09-14 14:33:57 +00:00
entry.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
entry.h I've started to read the code again and added comments here and there. 2001-11-01 23:54:48 +00:00
exec.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
exec.h Okay Raster, don't shoot me. I've cleaned up the whole thing. I've 2001-07-30 16:59:37 +00:00
fs.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
fs.h I've started to read the code again and added comments here and there. 2001-11-01 23:54:48 +00:00
guides.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
guides.h I've started to read the code again and added comments here and there. 2001-11-01 23:54:48 +00:00
icccm.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
icccm.h Back with another one of those blockrockin' BUILDS :o) 2001-10-17 22:34:27 +00:00
iconbar.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
iconbar.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
icons.c work on fixing up the desktop code...... :) 2001-07-12 16:40:13 +00:00
ipc.c * make it more split upo (better in this case) 2001-07-31 01:12:02 +00:00
ipc.h Okay Raster, don't shoot me. I've cleaned up the whole thing. I've 2001-07-30 16:59:37 +00:00
keys.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
keys.h Oopsie ... bit too much! 2001-10-17 22:53:23 +00:00
main.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
match.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
match.h added match hooks. #if 0'd out right now. need to think how exactly i planon 2001-10-08 07:32:54 +00:00
menu.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
menu.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
menubuild.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
menubuild.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
object.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
object.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
observer.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
observer.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
pack.c clean up a little 2001-07-30 06:21:28 +00:00
place.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
place.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
resist.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
resist.h * make it more split upo (better in this case) 2001-07-31 01:12:02 +00:00
scrollbar.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
scrollbar.h work work.. smell smell - scrollbars in and mostly functioning 2001-08-13 06:35:14 +00:00
shelf.c work on fixing up the desktop code...... :) 2001-07-12 16:40:13 +00:00
text.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
text.h and make that text abstraction do..... outlines! :) 2001-08-02 00:54:09 +00:00
util.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
util.h strdup wrapped... and err.. looking for a mem leak.. anyone got insure++ ? 2001-08-16 08:45:37 +00:00
view.c Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00
view.h Alright, I spent some time now reading e17's code. Here's what 2001-11-02 17:07:52 +00:00