Commit Graph

98 Commits

Author SHA1 Message Date
sleuth 510d0ded29 Preliminary dnd support. Dragging from and to views works, with a
default mode of move.  Hold 'shift' for copy.  No visible feedback
of actions occurs yet, but you'll see the view update as soon as efsd
reports the file changes.  Tested, but be careful around files you care
about.  Moves and copys use efsd_move and efsd_copy, without the force
option.  So source files will not overwrite the destination if it exists.

Kevin Brosius <cobra@compuserve.com>


SVN revision: 5747
2001-12-06 02:50:17 +00:00
Carsten Haitzler ee82a15d31 add stuff to e_setup.. dialog has buttons now. fixed bug with view with bg
addition not working.


SVN revision: 5738
2001-11-26 13:08:34 +00:00
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
Carsten Haitzler 0ce64e39cf and in an optimising spree i broke the bg reload if you replaced the file..
fix fix fix :)


SVN revision: 5734
2001-11-25 12:49:39 +00:00
Carsten Haitzler f6b9e19fce there we go.. fix fix
SVN revision: 5733
2001-11-25 12:40:08 +00:00
Carsten Haitzler 3cbfb2d937 working on the iconbar. it now accepts scroll arrows in the iconbar bit - u
can scroll around 9if you have too many icons to fit) it also will clip the
icons to the icon area. also u can scroll the icons up and down the bar to a
position you like. a new test iconbar bit to demo this too.


SVN revision: 5726
2001-11-24 05:54:32 +00:00
Carsten Haitzler 84fae7ac6d mah mah mah... fixed soem initial placement probs related to being too keen
on changing borders all the time.. shoudl be more efficent and faster now too


SVN revision: 5722
2001-11-20 07:01:53 +00:00
Carsten Haitzler d90ac55831 consolidate.. consolidate..
SVN revision: 5721
2001-11-18 21:43:50 +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 63a1f60f6e and make the metada get for view bg go thru the same path.
SVN revision: 5719
2001-11-18 21:09:07 +00:00
Carsten Haitzler c12f765fef and handle delete
SVN revision: 5710
2001-11-17 04:21:48 +00:00
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