Commit Graph

1364 Commits

Author SHA1 Message Date
Till Adam fd0bd775f6 re-enable drag and drop. Turned out to need only minimal adjustments. Not extensively tested, so I'd appreciate it if
people tried if this works like before.


SVN revision: 5983
2002-02-26 09:24:50 +00:00
Till Adam 335ce3545e and this one too ;)
SVN revision: 5978
2002-02-25 18:09:36 +00:00
Carsten Haitzler 1404c92c07 <merge merge merge> :)
SVN revision: 5619
2001-11-04 07:38:42 +00:00
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
Carsten Haitzler 6bb8a6a3d2 we shoudl never have had intl in cvs... and add some work on the setup tool
SVN revision: 5536
2001-10-20 09:01:54 +00:00
cpk 6c52152328 Documentation setup ...
SVN revision: 5479
2001-10-13 00:08:39 +00:00
boris 70e8e45855 With the release of ferite veriosn 0.99.1 today I have updated the ferite
side of things within the configure scripts to use it. (I will make sure that
e17 builds against the latest stable (and the latest cvs))


SVN revision: 5449
2001-10-09 00:36:49 +00:00
cpk 83e72f414c Lots of sssshhh here ...
SVN revision: 5442
2001-10-08 18:45:30 +00:00
boris 125f101b7c no need for ferite. fun.
SVN revision: 5315
2001-08-31 13:10:26 +00:00
boris bad5da3d33 Ok this has got some initial support with ferite, currently you can only
assign ferite scripts to menus see data/scripts/build_app_menu_db.sh and look
at the exit menu item as an example. you will need ferite - i suggest that
you use cvs ferite as this is what I am developing this against. This, my
friends, is the first step of many :)


SVN revision: 5280
2001-08-25 19:51:48 +00:00
cpk d7c6a6729b Committing gettext's files ...
SVN revision: 5261
2001-08-23 16:40:23 +00:00
Carsten Haitzler e8e462159f pass make distcheck :)
SVN revision: 5027
2001-08-02 00:13:52 +00:00
cpk 7cedcff3f5 Stuff I forgot ...
SVN revision: 5015
2001-07-30 17:14:45 +00:00
Carsten Haitzler dfe5d7091a e 0.17 ...... :)
SVN revision: 3961
2000-12-08 22:54:42 +00:00