Commit Graph

68 Commits

Author SHA1 Message Date
rbdpngn 63e20e7f14 More SPLIT merging.
SVN revision: 6588
2003-01-15 18:29:56 +00:00
Till Adam e752aabcd1 fix annoying redraw bug (finally) and hide it under an indent run ;)
SVN revision: 6016
2002-03-03 10:40:07 +00:00
rephorm dd0f8bf0fd move the background usage over to edb. background.c,h are no longer used.
so if you haven't installed ebg, go get it.


SVN revision: 5860
2002-01-26 02:01: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 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 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 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
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 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 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 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 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 aaabd199fa ok- fixes i did over the weekend... committed :) yay :)
SVN revision: 4479
2001-04-02 19:03:55 +00:00
Carsten Haitzler 718be21b4b fix fix fix clean fix :)
SVN revision: 4475
2001-03-31 23:50:22 +00:00
Carsten Haitzler 78193c99bf oops - now right menu works reliably... slight booboo :)
SVN revision: 4445
2001-03-25 02:47:41 +00:00
Carsten Haitzler e59150b4a8 e17 can build apps menu (right mosue click on desktop) from
"/usr/share/gnome/apps" dir now (/usr/share/pixmaps is hardcoded to pixmap
dir... need to figre this right... but it can be done...) :) qworks quite
ok.. :)


SVN revision: 4424
2001-03-21 04:39:45 +00:00
Carsten Haitzler 49685ab578 aaaaaaaaaaaaaah fix fix fix.. now i handle that focus grab return thing a
bit better... now the keybindings for loweirng and raisign and stuff work
100% right


SVN revision: 4423
2001-03-21 03:07:17 +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 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 94220456db oops typo :)
SVN revision: 4362
2001-03-09 19:20:11 +00:00
Carsten Haitzler bc5be0a810 slightly more errr... mature things for packing... working on it..
all oo... :)


SVN revision: 4356
2001-03-08 23:30:42 +00:00
Carsten Haitzler f7b571fb1b packign classes... :)
SVN revision: 4354
2001-03-08 19:33:54 +00:00
Carsten Haitzler 4189f19a1f all of the entry box ecept text is now configurable with bits... some
primitive ugly ones there....


SVN revision: 4346
2001-03-07 08:18:39 +00:00
Carsten Haitzler a2d80b9359 add a backing bit! :)
SVN revision: 4344
2001-03-07 03:21:14 +00:00
Carsten Haitzler 35cd461c8c ctrl+f & ctrl+_b now supported
SVN revision: 4334
2001-03-06 19:26:55 +00:00
Carsten Haitzler dad3312cb8 clean that code up.. woop.. nice and clean! :)
SVN revision: 4330
2001-03-06 18:01:50 +00:00
Carsten Haitzler ec7f81fa76 handle callbacks
SVN revision: 4329
2001-03-06 16:40:57 +00:00
Carsten Haitzler fc803eeb1e it does pastes out of entry boxes (code needs some smartening up - but it
works!)


SVN revision: 4323
2001-03-06 07:59:21 +00:00
Carsten Haitzler bdbf267aeb woop- middle button pastes and works! :)
SVN revision: 4317
2001-03-06 02:09:32 +00:00
Carsten Haitzler 49b72fb9fd selection area works just fine... and current hitting the insert key (or
middle mouse) inserts the string "inserted" - its currently a matter of
trying to fetch that string for insertion :) i'm going to figure out how to
do that next :)


SVN revision: 4312
2001-03-05 08:19:13 +00:00
Carsten Haitzler 786eb441fc fs.c updated for efsd changes
entry.c started.. workingon entry box code... its actually not THAT hard... :)
all i have left is to do selections in an entry box (and do X clipboard stuff)
amnd be able to do pastes from the X clipboard. (and delete selections when
u type when a selection is up and the rest of the selection logic) - but for
a basic textbox... it works :)


SVN revision: 4311
2001-03-05 03:04:33 +00:00
Carsten Haitzler 0025ffc093 use efsd to read the links :)
SVN revision: 4288
2001-02-26 22:59:54 +00:00
Carsten Haitzler 3184ef1247 oooh play play play play.... :)
SVN revision: 4255
2001-02-19 19:45:24 +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 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 2378f73f61 errrrrrr.
SVN revision: 4245
2001-02-17 23:06:01 +00:00
Carsten Haitzler d017f50c20 oooooooooh shelf.c.... :)
SVN revision: 4244
2001-02-17 23:03:13 +00:00
Carsten Haitzler 36bb6c0019 icosn are now much mroe state-like :)
SVN revision: 4234
2001-02-16 21:31:59 +00:00
Carsten Haitzler 72043d3682 dont play with menu struct innards! use api calls :)
SVN revision: 4221
2001-02-15 22:39:02 +00:00
Carsten Haitzler 064f03cce5 actions now caches actions list to ram
SVN revision: 4215
2001-02-15 05:12:54 +00:00
Carsten Haitzler 922fbf4662 now *THIS* shoudl make tome happy. bilget - take a look - this does what you
want (ok - it gets it only if the value is stale for more than 5 seconds)
the comments say its waiting on efsd to be more solid and then i'll have a
set of config file monitoring flags that will state if the source db is
invalid and only then to getit - it still pretty much comes down to a compre
- branch and retrieve from ram operation per config value at the beginning
of a function. it's be good if you - instead of sahyin the design is HIT and
saying i cant desing - just point out somehting coudl be more optimized and
suggest things :) i dont deal well with peolep telling me shit is shite when
i'm not even done with it :)


SVN revision: 4204
2001-02-14 04:30:15 +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