Commit Graph

39 Commits

Author SHA1 Message Date
rephorm cb15f5013c Give the iconbars some substance.
If a bit named Resist with class Decoration is added to .e_iconbar.bits.db, it will resist window movement. Makes it easy to line up windows along the edge of the iconbar. I'll commit an updated default db.


SVN revision: 5807
2002-01-04 04:18:38 +00:00
Carsten Haitzler 7880065bff add block system.. not quite functional yet.. but will be needed...
now iconbars can have their buttons "disabled" whislt apps launch.. tis a
nasty trick with an ld_preload... has caveats.. if youdsont set it as on it
wont be used atm.


SVN revision: 5748
2001-12-06 08:06:52 +00:00
Carsten Haitzler 7e0be252dc centralise all the bg handling in views...
SVN revision: 5720
2001-11-18 21:28:35 +00:00
Carsten Haitzler 2bb9a1b0ab hhm - smart placement got borked... fixed
click to focus works pretty much swell now.. except for that mass of
comments i put in....

err... icccm focus modes handled 100% properly

err.. yeah. that.


SVN revision: 5697
2001-11-16 05:39:34 +00:00
Carsten Haitzler b97bed253d iconbar.. err.. scale down icons AND set image fill (thanks for pointing out
corey), and errr.. segvs in menu changes fixed.. :)


SVN revision: 5687
2001-11-13 21:26:20 +00:00
Christopher Rosendahl eca3aa7476 this works somewhat better =)
SVN revision: 5673
2001-11-11 02:11:36 +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
Carsten Haitzler 6266018527 aaah..
click to focus actually works now.. wheeee :) as does alt+drag and other
bindings u can add to a window.... :)


SVN revision: 5596
2001-10-30 11:07:12 +00:00
Carsten Haitzler ba4e1cf47b allow for .e_background.bg.db to be the background for a dir...
SVN revision: 5521
2001-10-19 10:19:10 +00:00
Carsten Haitzler 5d2c820b96 sellys "no mor eleaks" applied :)
SVN revision: 5517
2001-10-19 02:02:56 +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
cpk a41a7d8875 * Replaced all the 4096's with PATH_MAX, added a default setting if
it doesn't exist.

* Renamed E_Action_Proto to E_Action_Impl. I think that's more intuitive

* Renamed the xxx_go functions to xxx_cont. It took me a while to understand the difference between "start" and "go".

* Some line wrapping and cosmetics.


SVN revision: 5475
2001-10-12 20:13:01 +00:00
Carsten Haitzler 4b8d85b97d i've been working on the railroad... all the long long day...
(config code to read in arbitary data structs from db's... will use)


SVN revision: 5454
2001-10-09 15:01:58 +00:00
Carsten Haitzler 94b8a4d832 work work work :)
SVN revision: 5438
2001-10-08 06:53:26 +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
cpk 9449e40c1d Introduced typedefs for the most common enums that were #defines, and
added e_border_set_gravity which really needn't be a macro.


SVN revision: 5406
2001-09-30 22:24:24 +00:00
Carsten Haitzler ed40162775 been working offline.. wheeeheee! :)
SVN revision: 5374
2001-09-24 21:21:25 +00:00
Carsten Haitzler 68f5a95f2e strdup wrapped... and err.. looking for a mem leak.. anyone got insure++ ?
SVN revision: 5174
2001-08-16 08:45:37 +00:00
Carsten Haitzler bd45e5475d add a different view bg... and oops - adopted desktop window.. dont do that :)
SVN revision: 5025
2001-08-01 09:22:40 +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 fb16d6bf5d use the new background code & system.... yay yay :)
SVN revision: 5006
2001-07-29 03:26:39 +00:00
Carsten Haitzler 78bb51a943 ok// double click on dir's opens window and starts monitor...... but efsd isnt
responding with file exists events.... at all..... hrrrmmm... oddd....


SVN revision: 4943
2001-07-13 01:22:10 +00:00
Carsten Haitzler 4143f0353f multiple desktops... BAD BAD BAD hack (alt F1-F8 take u to them) - just
thoguth i'd see how well ti really works in real life... not to bad actually
:)


SVN revision: 4412
2001-03-20 03:15:05 +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
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 337d961729 clean code.. star work on views code - will have to modify desktop code a
bit to handle swallowing of a view instead of its own thing - but thats easy.


SVN revision: 4169
2001-02-06 08:23:36 +00:00
Carsten Haitzler 7fe641df37 oooooh - look at this - the desktop left click menu is......... CONFIGURABLE
yes - it generates it from a..... DATABASE - there's a script that builds the
menu - it's a default set - but easily editable in the script (an example of
how to build a menu db - but... eventually we'd need a gui.) This only builds
a menu from a db file - it also monitors it for changes and updates the menu
to match any changes that happen. I need to write later a fs menu builder that
builds a menu from the filing system.


SVN revision: 4164
2001-02-03 17:17:07 +00:00
Carsten Haitzler 8a3bd1b04c add data needed to menus, menu code that fully works (tho test code in
desktop.c is currently a bad hack that does rely on my own personal icons dir
to show icons - i'll add a menu creator set of code in menudb.c that can
create menus from db's so we can start being able to configure menus for the
desktop etc.)


SVN revision: 4163
2001-02-03 12:04:30 +00:00
Carsten Haitzler d7bf736ca2 e17 does..... MENUS!
SVN revision: 4076
2001-01-02 23:10:12 +00:00
Carsten Haitzler a83333dda1 adding stuff :)
SVN revision: 4053
2000-12-29 20:49:17 +00:00
Carsten Haitzler 6e67eca120 e17 now handles shaped client windows.. and if they change shape...
it also handles clients that re-configfure size and position whilst
shaiding & unshading and whilst shaded. it also doesnt segv if a window
closes/vanishes whilst shading (i added a subsystem to handle stopping
of continuing timed out actions if their object goes away)


SVN revision: 4006
2000-12-18 21:28:44 +00:00
Carsten Haitzler 21009504f9 first cut at virtualizing
SVN revision: 3988
2000-12-14 00:12:16 +00:00
Carsten Haitzler e79f8efd51 clean up the data section for some organisation.. in preparation for e to have
proper abstractions to finding the right data files depending on user config
etc.


SVN revision: 3987
2000-12-13 23:44:24 +00:00
Carsten Haitzler 22aa9d2a5d Sorry guys.. I had to revert a bunch of changes.. that's life.. but READ the
following (it's in the README now)

-------------------------------------------------------------------------------
                       Enlightenment 0.17.0 CVS Code....
-------------------------------------------------------------------------------
       The Rasterman - raster@valinux.com, raster@rasterman.com


*******************************************************************************
**************** READ THIS! It is of the UTMOST IMPORTANCE! *******************
*******************************************************************************

This is the source code for Enlightenment 0.17 - If you got this you got it
from Enlightenment's CVS repository - or from someone who took it out of
the CVS repository.

The CVS repository is full of code *IN DEVELOPMENT* - that often means it's
in the middle of being worked on and may install strange things in strange
places, make a mess, and may not even be compatible with a final release. If
you at all use this code, you are HEAVILY URGED, when it is finally released,
to remove all traces of anything this CVS code base has installed on your
system (it is COMPLETELY up to you to keep track of that - do NOT expect any
help), and then install the full release on a cleaned system. Don't come
asking "can I just keep using CVS" oonce things are released - thqat is the
reason I pu this paragraph here - so you don't ask. The asnwer is the same
as above - if there is a proper final release use that. CVS is really only
for those havily hacking on the code.

Now we have that warning over and done with. How to build and install from
CVS?

$ ./autogen.sh && make
$ su
Password:
<- as root ->
# make install

You should be able to use the binary of enlightenment as a window manager.

you might be advised for cleanliness to do
$ ./autogen.sh --prefix=/usr/local/e-17

so it installs relative to the /usr/local/e-17 directory and keeps all the
e-17 development code and data in that tree so it is easily removed when the
time codes.



NOTES: Read these carefully!

Enlightenment does not check for previously running Window Managers right
now - so you need to make sure no other WM is running - E will not do that
for you.

Enlightenment has no menus or keybindings or any way of launching
applications right now - you'll have to figure out an alternative way of
doing it.

Enlightenment only handles a small subset of ICCCM and thus will have bugs -
some applications will not behave correctly and may apear in odd spots or
not resize or place themselves properly etc. Expect this - it's code being
worked on. Just be happy it does as much as it already does.

Enlightenment RELIES on lots of libraires that have been written. Ecore,
Ebits, Evas, Edb, Imlib2 just to mention a few. Especially Ebits, Ecore and
Evas change in CVS often - you will need the absolute latest of these if you
wish Enlightenment 0.17 code to run properly or compile. If you update
Enlightenment from CVS update these too to get any changes they have in
their trees.

If you plan on working on the code... STOP! don't rush in and work on it -
even if you have CVS commit access - EXPECT me (Raster) to revert any changes
you make if you do this - regardless of the changes and how much work you
put into them. First read the code well and LEARN it. If you have questions
about some of the more obscure hidden program flow - ASK - but don't go
tampering with it - Enlightenment 0.17's code is much more complex and
intricate than E 0.16 - but at the same time it's much cleaner and more
object oriented. Learn it well first. Some parts of E 0.17 are "hacked" with
hard-coded stuff, just so, for now, it works. They will be virtualized and
imporved over time. If you have plans - tell me about them first - discuss
them before you go impliment them. I know I already have a lot of the
components of E 0.17's code planned in my head - but I won't get to them for
a while - and if people go impliment or hack bad stuff in, it means I have to
spend lots of time fixing something that is bad in the first place, or we
end up doing duplicate work. There *IS* a plan - believe it or not - but to
be honest - it's more complex and large than I can just write down in a
README, so talk about your ideas first. I'm going to be ruthless in keeping
the code neat, clean and free of nasty hacks (except ones I put in as
temporary stop-gap measures to make the thing work - since I know where
those are and what I need to do to do it right). If you can't find me or I
don't reply to your e-mail - don't get impatient - just wait. I currently
have no network access at home, so I'm doing a chunk of code offline. I'll
get to your mail and queries as time allows.

If you have problems with the code or bugs to report, kindly forward them to
/dev/null (the code is in now way or form ready for bug reports - I don't
want crap filling my mailbox).

I hope that clears things up for now.


SVN revision: 3976
2000-12-11 20:08:38 +00:00
Carsten Haitzler cb64aa578f ./configure && make && sudo make install
work now - and the wm runs fine... :)


SVN revision: 3964
2000-12-09 01:29:47 +00:00
Carsten Haitzler 35b056f1a3 fix paths
SVN revision: 3962
2000-12-08 22:56:32 +00:00
Carsten Haitzler dfe5d7091a e 0.17 ...... :)
SVN revision: 3961
2000-12-08 22:54:42 +00:00