Commit Graph

87 Commits

Author SHA1 Message Date
Carsten Haitzler 61e8ed8286 and handle adds
SVN revision: 5709
2001-11-17 04:19:02 +00:00
Carsten Haitzler febd6d0d43 bacgkroudns of views now watch for the background file to change... if it
does.. the background changes - hand for setting your own root bg.. just use
ebony.. save it and:

cp file.bg.db ~/.e.desktop/default/.e_background.bg.db


SVN revision: 5708
2001-11-17 02:45:43 +00:00
cpk c728727b17 * s/mulit/multi/ :)
* slight improvement in the menu handling -- when something was selected,
don't pop up menus when the user just clicks, but only unselect
everything. I think it's pretty irritating when the user just wants to
get rid of the selection and keeps getting menu popups.


SVN revision: 5617
2001-11-03 15:33:21 +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 59b09b8121 Dammit. Sorry.
SVN revision: 5615
2001-11-03 11:47:07 +00:00
cpk 381e4bbd54 Oops. This leaks. Drip drip.
SVN revision: 5614
2001-11-03 10:59:17 +00:00
cpk c1299402ad dumdedum ...
SVN revision: 5612
2001-11-03 09:21:51 +00:00
cpk 7d1f797075 Removed some debugging output etc.
SVN revision: 5611
2001-11-03 09:18:50 +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
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 65a78e8947 iconbar now auto-reload when u twiddle with the files. YAY! :)
SVN revision: 5534
2001-10-20 06:13: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 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
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 c8e0c7f7be iconbar code.. and some work i was doing on click to focus... having a
problem... not sure what it is actually... but will fix it :)


SVN revision: 5507
2001-10-17 09:53:44 +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 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 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
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 499279afa1 err. dont need to anymore :)
SVN revision: 5392
2001-09-28 08:41:48 +00:00
Carsten Haitzler 3c6f25ef2a nooo nooo nooo... don't do that.
SVN revision: 5390
2001-09-28 08:13:46 +00:00
Carsten Haitzler 41f318bc37 don't leak that either... :)
SVN revision: 5389
2001-09-28 07:50:00 +00:00
Carsten Haitzler 1e810437ae go go go... :)
SVN revision: 5376
2001-09-25 16:37:00 +00:00
Carsten Haitzler ed40162775 been working offline.. wheeeheee! :)
SVN revision: 5374
2001-09-24 21:21:25 +00:00
Carsten Haitzler 349a1016c6 started work on guides (for rubber banding etc.) and changed code to match
ebits changes... (sorry everyone.. ebtis changes needed doing)


SVN revision: 5333
2001-09-06 13:20:35 +00:00
hendryx 6228476075 OK, you can now have individual backgrounds for diffrent directories now.
Just set the full path and file name in the metadata for that directory
under the key "/view/background" (you'll have to use efsdsh to set it right
now).


SVN revision: 5317
2001-09-02 17:42: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
boris c3e5bf60e7 bah. this stops the middle click and changes it to a double middle click
SVN revision: 5270
2001-08-24 09:16:30 +00:00
Carsten Haitzler 6f97fe1bbf yay.. leak gone :)
SVN revision: 5189
2001-08-17 00:57:41 +00:00
Carsten Haitzler b6571f600c efsd_ops() leaks. not sure what you want cK? have the monitor func free the
ops or have the app do it? you dont seem to have any code to free the ops
created in libefsd.. so i'm not sure what you intend? :)


SVN revision: 5187
2001-08-17 00:27:02 +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 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 3718f7ecb2 efsd respawnign by e17 is more robust now...
SVN revision: 5078
2001-08-09 23:48:40 +00:00
Carsten Haitzler 23e05d4d83 * fix apps menu
* cp -> tar


SVN revision: 5045
2001-08-05 12:48:18 +00:00
cpk 03eb745b51 Efsd updates ...
SVN revision: 5036
2001-08-02 22:43:59 +00:00
Carsten Haitzler 0a62a11943 wheeeee
SVN revision: 5031
2001-08-02 05:08:49 +00:00
Carsten Haitzler 82c3eaeda2 and make that text abstraction do..... outlines! :)
SVN revision: 5028
2001-08-02 00:54:09 +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 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 4a267b8d77 dont need to sort....
SVN revision: 5012
2001-07-30 05:40:49 +00:00
cpk 32b49c8a6a Efsd updates -- the file monitoring requests for files and directories
have been merged into one call. Instead of efsd_start_monitor_dir() and
efsd_start_monitor_file(), use efsd_start_monitor() now and specify
whether you want directory monitoring via the final flag parameter.
Same goes for efsd_stop_monitor() now.


SVN revision: 5007
2001-07-29 14:39:23 +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