Commit Graph

27 Commits

Author SHA1 Message Date
cpk 630bf3c408 Efsd updates. Now I remember what I forgot in the efsd commit comment --
I changed the name of some of the convenience calls from efsd_reply_...
to efsd_event_... because they're no longer applicable to reply events
only.

I've also hooked in a cleanup function for Efsd when E exits, and
duplicated memory when accessing a returned metadata string.


SVN revision: 5736
2001-11-26 01:10:48 +00:00
cpk a708bdfd42 * More cleanups. I took out everything related only to icon handling
from the view code, and put it into icons.[ch].

* Added the relative desktop move path from Alan Schmitt.


SVN revision: 5616
2001-11-03 14:55:21 +00:00
cpk 454d2b917a * replaced printf()s with D()s.
* cleaned up functions in utils in file utils and others, there's a
new file.[ch] for the file-related helpers.
* Added stat info to E_Icon, watch how directories become grayed when
you cannot access them :)


SVN revision: 5610
2001-11-03 09:07:40 +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
cpk f70c75f5c7 I've started to read the code again and added comments here and there.
Also updated the manual.


SVN revision: 5603
2001-11-01 23:54:48 +00:00
cpk 27379cbd44 Back with another one of those blockrockin' BUILDS :o)
* Should compile against new ecore. Yay!
* Cleaned up iconbar code a good deal (no c++ comments!)


SVN revision: 5511
2001-10-17 22:34:27 +00:00
Carsten Haitzler ce769c8f21 and... working on virtual desktops.. moved desktop view to be a normal
client window thats just borderless, layer 1 etc. goign to add desktop masks
for client borders next (ie what desktops a client window lives on or
not)... in theory we have desktop areas and desktosp implimented now. :)


SVN revision: 5426
2001-10-05 03:19:11 +00:00
Carsten Haitzler aec66cb567 and make it 0.01 secs :)
SVN revision: 5413
2001-10-02 03:30:29 +00:00
Carsten Haitzler 56723c4207 hook in idle handler to flush efsd queue :)
SVN revision: 5412
2001-10-02 03:29:57 +00:00
Carsten Haitzler 133b01836c fs now uses efsd_flush mechanism... and view records x,y - but efsd
currently segv's if u load up /dev in my tests... :)


SVN revision: 5409
2001-10-01 05:23:42 +00:00
Carsten Haitzler 3718f7ecb2 efsd respawnign by e17 is more robust now...
SVN revision: 5078
2001-08-09 23:48:40 +00:00
Carsten Haitzler ff60ed35c1 oops - and dont keep starting efsd if we don't need it :)
SVN revision: 5022
2001-08-01 05:22:39 +00:00
Carsten Haitzler 897f37f43d * make it more split upo (better in this case)
* get rid of more wranings
* get rid of useless code (how the hell it compiled AND ran with missing
symbols... beats me -  but it was working)


SVN revision: 5018
2001-07-31 01:12:02 +00:00
cpk 637e5ce74b Okay Raster, don't shoot me. I've cleaned up the whole thing. I've
added header files for most of the logical units, which greatly
reduces the size of e.h. The dependencies are probably still a bit
too dense, I'll look at that next. Things don't get rebuilt completely
any more when efsd is updated. I've also started command line options.
Only version info and the display variable are recognized so far.
I see no warnings here on my machine. Hope I didn't break anything.


SVN revision: 5014
2001-07-30 16:59:37 +00:00
Carsten Haitzler f1689e5a66 clean up a little
SVN revision: 5013
2001-07-30 06:21:28 +00:00
Carsten Haitzler d59543dbc2 work on fixing up the desktop code...... :)
SVN revision: 4939
2001-07-12 16:40:13 +00:00
Carsten Haitzler e9d5f13344 handle if efsd goes away and restart it... also have abackoff timeout to try
restarting efsd... :)


SVN revision: 4673
2001-04-26 20:41:23 +00:00
Carsten Haitzler d7057ba6a8 use mime types to determine icon.. if u lok in icons - you'll get he idea -
its just mime types exactly splatted out into a dir struct with .db at the
end (falling back to default.db and unknonw/unknown/db in the end if it cant
fall backto default.db)

now what i need is to talk to cK and get the file magic/mime type stuff to
beocme smarter even that it is.. so currently it sees a tar.gz file - it
looks at the magic and boom.. it thinks is a gzip file.. thats correct.. but
theres mroe to it.. now it woudl be good if the magic stuff coudl now also
inspect the inside of the gzip (ie use zlib in this case) and start lookign
ro a tar header to see if tis a tar.gz.... now if it si a tar.gz.. try
getting the file list and seeing if there are telltale signs of it being a
theme tarball or such (though this lats step may be going too far)

efsd definitely needs ot cache mime type though. that much i'm certain of :)
its not fast at all actually doing file magic on every file... every time
the directory is "loaded" :)

but excellent work! another pat on the back for ck :)


SVN revision: 4451
2001-03-25 21:37:09 +00:00
Carsten Haitzler a6c47e5205 and NOw we can open up /dev/ and not have E bog down into a completely
non-interactive state... this works like a charm... love it.. GOOD WORK cK!
Excellent job.. this is actually what i originally thought we shoudl do (be
able to send not just filename but also stat,mimetype etc. info along in one
go with efsd doing in one lump) but i thought it might wokr ok as we had it
before.. and it wasnt... so my original hunch was right... and it's working
like a complete charmer. GOOD JOB! i'ts beginging to get to the point where
we can do something.... WHEEEEEEEEEE congrats cK. now... i wish we had more
cK's out there... (whoever is in munich out there buy cK a beer or 10)


SVN revision: 4443
2001-03-24 03:18:17 +00:00
Carsten Haitzler 86e401ab9d some optimizations... and fixes :) thats all
SVN revision: 4381
2001-03-16 20:12:03 +00:00
Carsten Haitzler d1077ae93e been playing.. :)
SVN revision: 4379
2001-03-16 01:14:42 +00:00
cpk ac29391497 Efsd updates ...
SVN revision: 4303
2001-03-04 01:15:39 +00:00
Carsten Haitzler 2920d940f6 now E shouldnt segv if efsd goes pfffffffffft
SVN revision: 4226
2001-02-15 23:10:30 +00:00
cpk b2eeab41a0 Changing the efsd launch code since we don't have --forcemode any more.
SVN revision: 4200
2001-02-13 01:31:05 +00:00
cpk f3f45be8ef Raster, check this out -- it may be closer to what you need ...
SVN revision: 4197
2001-02-13 00:18:42 +00:00
Carsten Haitzler f3e2ca146f been working on E............ needs efsd now, desktops are now views, new
background, lists directory, cleaned up some bugs here and there,
errrr...... cleaned up menu code and some fixups, added fs abstraction init
and working on it....


SVN revision: 4192
2001-02-12 18:58:51 +00:00
Carsten Haitzler f744c4833b fs layer in... using efsd... :) primitive for now
SVN revision: 4182
2001-02-09 08:13:16 +00:00