Commit Graph

61 Commits

Author SHA1 Message Date
Carsten Haitzler 1404c92c07 <merge merge merge> :)
SVN revision: 5619
2001-11-04 07:38:42 +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 b4e3cb64ed Oops, that's just my installation.
SVN revision: 5606
2001-11-02 17:13:56 +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 d41f8eacfa blim. i just had to do this :) too much fun :)
SVN revision: 5582
2001-10-28 01:38:54 +00:00
Carsten Haitzler 1a24c75a76 spinny logo to waste cpu :)
SVN revision: 5545
2001-10-21 14:02:53 +00:00
Carsten Haitzler 0573986281 start on setup tool data
SVN revision: 5541
2001-10-21 09:36:40 +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
Carsten Haitzler 232c634a3a make all the bits decorative
SVN revision: 5535
2001-10-20 06:21:15 +00:00
Carsten Haitzler 8e5adf71a6 much cleaner iconboar. ok - right now it doesn't scroll. use the buidl
scritp again (pass in a directory path to set up.. i'd suggest

mkdir ~/.e
mkdir ~/.e/desktop
mkdir ~/.e/desktop/default
build_iconbar_db.sh ~/.e/desktop/default

the scritp is a bit smaller now :)


SVN revision: 5519
2001-10-19 09:13:18 +00:00
Carsten Haitzler c89e94b735 iconbar code :)
SVN revision: 5506
2001-10-17 09:53:07 +00:00
rbdpngn 115592b91e Enabled the Alt-Tab action, and fixed border.c so that the action works
correctly.


SVN revision: 5377
2001-09-25 22:10:33 +00:00
Carsten Haitzler 72c864e88f and now add the stuff i forgot to add...
SVN revision: 5375
2001-09-24 21:25:13 +00:00
Carsten Haitzler ed40162775 been working offline.. wheeeheee! :)
SVN revision: 5374
2001-09-24 21:21:25 +00:00
Carsten Haitzler b9d6066361 bah. make it 2 :)
SVN revision: 5288
2001-08-26 03:14:40 +00:00
Carsten Haitzler 3fcec84d96 min size is 3 in both dirs now
SVN revision: 5287
2001-08-26 02:59:32 +00:00
boris 0b8cc67996 another silly example. this is just a menu items to switch desktops
SVN revision: 5282
2001-08-25 20:47: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 69561bd136 Modified the backgrounds a bit. Change as you see fit.
SVN revision: 5272
2001-08-24 21:22:34 +00:00
Carsten Haitzler a20ab0c6ff errr... make scrollbars come and go if we need them or not :)
SVN revision: 5136
2001-08-13 07:34:06 +00:00
Carsten Haitzler 14f5d57ee5 work work.. smell smell - scrollbars in and mostly functioning
SVN revision: 5135
2001-08-13 06:35:14 +00:00
Carsten Haitzler b3da0db8eb add some "starter" scrollbars .. ugly... but practical
SVN revision: 5079
2001-08-09 23:52:21 +00:00
Mandrake 3d29d46f37 Made a default ctrl-alt-insert launches Eterm keybinding :)
SVN revision: 5067
2001-08-08 23:21:00 +00:00
Carsten Haitzler 23e05d4d83 * fix apps menu
* cp -> tar


SVN revision: 5045
2001-08-05 12:48:18 +00:00
Carsten Haitzler 0a62a11943 wheeeee
SVN revision: 5031
2001-08-02 05:08:49 +00:00
Carsten Haitzler fc25a6f20d use cp -dpR instead of -ar (it seems bsd doesnt like -a).
add abstraction for recording view geometry metadata,
put geometry recording on a self-resetting timeout so efsd doesnt thrash
the disk whenever you move or resize windows.
clean out some unused code.


SVN revision: 5026
2001-08-01 23:14:06 +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
Carsten Haitzler a9c76621d2 wooop. views now remember size & location by storing it in meta data....
they also defer show until meta data for dir has either failed retrieval or
succeeded. this is cool yyayayayya! :)


SVN revision: 5021
2001-08-01 04:45:14 +00:00
Carsten Haitzler 20f8e6ad80 change
SVN revision: 5011
2001-07-30 00:12:58 +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 d59543dbc2 work on fixing up the desktop code...... :)
SVN revision: 4939
2001-07-12 16:40:13 +00:00
Carsten Haitzler 6c858ca666 use new mimes....
SVN revision: 4863
2001-06-27 06:38:40 +00:00
Carsten Haitzler f5c322d4a6 dont need that anymore
SVN revision: 4551
2001-04-08 22:59:17 +00:00
Carsten Haitzler 3afd37d998 "detailed" mimetype fallback now available... :)
SVN revision: 4453
2001-03-26 07:21:39 +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 e5cac579de add dem
SVN revision: 4450
2001-03-25 20:31:44 +00:00
Carsten Haitzler 2aa8fef623 more keybindings
SVN revision: 4422
2001-03-21 01:12:44 +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 7f37672226 keybindings work... yayayayayya :)
SVN revision: 4390
2001-03-18 01:16:47 +00:00
Carsten Haitzler f7b571fb1b packign classes... :)
SVN revision: 4354
2001-03-08 19:33:54 +00:00
Carsten Haitzler a2d80b9359 add a backing bit! :)
SVN revision: 4344
2001-03-07 03:21:14 +00:00
Carsten Haitzler b8b24e8d69 and add that
SVN revision: 4343
2001-03-07 02:59:56 +00:00
Carsten Haitzler 110138dbf4 add some data
SVN revision: 4342
2001-03-07 02:59:25 +00:00
Carsten Haitzler d746a787b2 selection box there now only when icon selected... :)
SVN revision: 4269
2001-02-20 18:32:09 +00:00
Carsten Haitzler 36ae6d96cf lighter stripes :)
SVN revision: 4261
2001-02-20 01:34:27 +00:00
Carsten Haitzler 7430113907 add backing selection bits... just playing... :)
SVN revision: 4260
2001-02-20 01:19:27 +00:00
Carsten Haitzler 4a7584f4fc shelf can clip icons... and move them with it.. try resizing (by the
lower-right corner of the shelf) and them move it around.. :) you'll see
what i mean... again - this is me just testing stuff... i think i now know
enough works and what i need to do to go around and fix thing sup so they
are done "right" :)


SVN revision: 4250
2001-02-18 22:17:01 +00:00
Carsten Haitzler e173a57884 well now the shelf can be resized... and i fixed up the shelf file to
actually have resize classes for parts of the border and the close & menu
buttons have classes now so i can at least hook code to those classes.. :)


SVN revision: 4249
2001-02-18 21:21:20 +00:00
Carsten Haitzler 20f9b35da8 the first shelf lives! also view code a bit cleaner as it uses an object to
trap "desktop background" clicks now instead of the raw event handler  so
fixed 2 fixme's whilst there.


SVN revision: 4247
2001-02-18 02:56:37 +00:00
Carsten Haitzler 2be7b124ed damn! i didnt add these!
SVN revision: 4198
2001-02-13 00:51:23 +00:00