Commit Graph

431 Commits

Author SHA1 Message Date
rephorm 38ac2443ca Epplets run from ~/.e/desktop/default/.e_epplets/eppletName/eppletName.fe
(copy em manually for now)

Get epplets to keep track of the ebits / evas objects they create, so they can be cleaned up later.

Also, some small epplet API changes.
When creating Ebits / EvasObjects, pass a path relative to the .fe file rather than the full path. Usually, you just need a file name, which should be in the same dir as the epplet.

if a file named layout.bits.db exists in an epplet's dir, it is used for the default layout (location) of that epplet rather than whatever is in ~/.e/desktop/default/.e_epplets.bits.db. Only use this if a specific size/location of the epplet is necessary. (just create one dummy image in the bits with the name of the epplet, and its location/size relative to the entire view) Note, try to not use this, as user customizability is important...

I will eventually make it so that if a ui.bits.db exists, it will automatically be loaded as the main bits file, and set as epplet.bits in the script. (Can't get object creation from within a .fec to work correctly yet...) This would remove the need for the setBits() call.


SVN revision: 5881
2002-01-30 03:16:33 +00:00
rephorm 195f2407e9 This should fix the iconified menu segfaulting problem. The menu now get rebuilt when you middle click, if things have changed.
SVN revision: 5877
2002-01-28 05:41:29 +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
rephorm f4711b90b1 Windows will now be on top when you uniconify them, and will not reappear on their old desktop if you move around while they are iconified.
Also, added some event types.


SVN revision: 5859
2002-01-25 19:41:02 +00:00
Carsten Haitzler ec6114213b maybe try this?
SVN revision: 5858
2002-01-25 02:02:28 +00:00
Carsten Haitzler fb466527e2 how about we build without ferite too? :)
SVN revision: 5857
2002-01-25 00:49:10 +00:00
cpk 857704ec32 This one didn't exist ...
SVN revision: 5856
2002-01-24 18:22:54 +00:00
cpk 74b6161db0 I guess this is necessary to make this build again ...
SVN revision: 5855
2002-01-24 18:19:44 +00:00
rephorm ffcb25ea12 E_EVENT system is now a bit map, allowing one observer to watch MANY events, for instance: E_EVENT_BORDER_ICONIFY | E_EVENT_BORDER_UNICONIFY | E_EVENT_BORDER_NEW, etc. I also made it so that the current event is passed when notifying, so that if watching multiple events, you can do different things for each.
added an e_observer_notify_all_observees() to notify all existing observees of things, such as the creation of a border. This way, an observer can watch for E_EVENT_BORDER_NEW events and register all new borders.

Iconification! Click that iconify button. Then click the middle button on the desktop to get a menu of iconified apps to uniconify. This menu is a decent example of using the observer code to avoid polling or rebuilding more than necessary. Next, maybe instead of completely rebuilding each time something changes, maybe it should dynamically add or remove the respective menu items?


SVN revision: 5854
2002-01-24 08:12:12 +00:00
rephorm dbc39567f3 buffer overflow prevention....
SVN revision: 5853
2002-01-24 06:15:40 +00:00
rephorm 515693292b oops. didn't mean to change that.
maybe we should get the prefix for gnome from gnome-config --prefix?


SVN revision: 5852
2002-01-24 01:11:13 +00:00
rephorm 3e09f77dbd A bunch of little changes.
Added basic iconification implementation, including menu for iconified windows, however this is buggy and doesn't work correctly yet, and is therefore commented out. But maybe someone can take the framework and fix it?

Added ferite wrapping for timers.


SVN revision: 5851
2002-01-24 01:08:52 +00:00
Carsten Haitzler 1afbdb13ef ok- fix this back so it works again!
SVN revision: 5848
2002-01-20 06:02:14 +00:00
sleuth 2d66390657 Add a rule to rebuild ferite generated code if
e_ferite.fec script is updated.

Kevin Brosius <cobra@compuserve.com>


SVN revision: 5847
2002-01-19 22:22:38 +00:00
rephorm 0be764a2de Updated deskswitcher to observe desktops and switch the highlighted button automatically upon desk switch.
SVN revision: 5842
2002-01-17 04:33:47 +00:00
rephorm 934f425342 Changed observer/observee system to use E_EVENT's instead of ECORE_EVENT's.
The enum of events is in observer.h, add any you can think of.

Switched desktops over to observer system (which extends objects).

Added ferite functionality for desktop observers. I will probably make functions to observe most of e's subsystems (views, iconbars, etc).
There is probably a small bit of memory leakage in here (and callbacks) because any objects passed along have to have their refcounts increased (so ferite doesn't automatically clean them up, and i haven't put in code to decrease them yet. It should be fairly small, but I'll work on that.

I also changed a few "sprintf(buf..."'s to "snprintf(buf, PATH_MAX..."'s.
Is this the way to go about preventing buffer overflows?

I think that's it.


SVN revision: 5841
2002-01-17 04:32:08 +00:00
rephorm 83dc2cd3fb Generate build_iconbar_db.sh with proper PREFIX
SVN revision: 5839
2002-01-16 17:31:38 +00:00
rephorm e8e42fa701 Cleanup should be static, so it can't be accidentally called externally.
SVN revision: 5837
2002-01-15 02:24:14 +00:00
rephorm 3aa470ed5d this looks better with the default background
SVN revision: 5828
2002-01-12 00:02:43 +00:00
rephorm b89043aa56 epplet data files
SVN revision: 5827
2002-01-11 23:56:22 +00:00
rephorm 455555b3ce Epplets!
Quite a bit has been implemented. Check the data/epplets dir for examples.

Currently the only loading method is a file called .e_epplets.bits.db which contains bits whose names are equal to the epplet name, and whose geometry is the default epplet geometry (unless overridden in the script).

The idea being that one could set up an entire desktop epplet layout within one file, making it easily transferable.

So, to use epplets make sure you copy the default epplets.bits.db to ~/.e/desktop/default/.e_epplets.bits.db

Also, make sure you update ebits


SVN revision: 5826
2002-01-11 23:53:20 +00:00
boris 634bf1692c This should fix0r it
SVN revision: 5825
2002-01-10 20:14:30 +00:00
rephorm 84d0e5b50a convert scrollbar to object system
get rid of compiler warnings


SVN revision: 5823
2002-01-07 01:37:39 +00:00
rephorm 8bbd04e127 hmm. don't know what i was thinking there.
this should work better.


SVN revision: 5822
2002-01-06 21:02:02 +00:00
rephorm 1da030ae9e Keep on scrolling.
As long as you hold down the scroll buttons, it will scroll.


SVN revision: 5821
2002-01-06 20:46:52 +00:00
rephorm 28f489bd50 Allow scrollbars with width/height other than 12
Click in trough scrolls to that point.


SVN revision: 5819
2002-01-06 10:22:31 +00:00
rephorm 267a5ab397 Got rid of compiler warnings.
Added window spacing, so file icons will not appear underneath iconbars.
Currently, icons are placed twice as far from the left/top as the spacing.window.l,t designate. To compensate, the spacing is set to half the actual value. This needs fixing.

It seems as though there are a few other bugs in e_icon_apply_xy() also. (multiple line views don't seem to work quite right, icons on the bottom line are in the middle, and other lines seem right justified. a bit odd).


SVN revision: 5815
2002-01-05 05:01:08 +00:00
rephorm 2c842e0ecf update the script to deal with the new db name
SVN revision: 5809
2002-01-04 04:37:53 +00:00
rephorm 5060bc358f Updated the bits.db to have resistance. Gave it a name that made more sense.
SVN revision: 5808
2002-01-04 04:37:12 +00:00
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
rephorm e8adca84c5 Give those iconbars some resistance. Nice for lining up windows along the edge of, but not hiding, the iconbar. If a bit named Resist with class Decoration (so it passes events) is added to the .e_iconbar.bits.db, windows will resist the edges of it. I'll commit an updated default one.
SVN revision: 5806
2002-01-04 03:19:26 +00:00
Term ee21c21b85 I should've done this a while back. Sorry about the big number of emails
coming. ;)


SVN revision: 5789
2001-12-22 07:54:57 +00:00
sleuth 17ed728818 Cleanup a couple warnings. Thanks cK!
Kevin Brosius <cobra@compuserve.com>


SVN revision: 5784
2001-12-19 03:30:47 +00:00
sleuth 329a5da29d dnd source icon changes based on drop action requested+target
allowed action.  We can also change cursor/drag window based on the
state info available.  I haven't tackled that yet.

Kevin Brosius <cobra@compuserve.com>


SVN revision: 5765
2001-12-12 23:58:45 +00:00
Carsten Haitzler 3e6abee6ea oops- forgot to cleanup rtimeout handlers if exec succeeded :)
SVN revision: 5762
2001-12-09 12:26:11 +00:00
Laurence J. Lane 797c07030f another missing dependecy
imlib2 suggests imlib2-loaders
e17 depends on imlib2-loaders


SVN revision: 5759
2001-12-09 05:05:25 +00:00
Carsten Haitzler a429866d9b aaah - oops - yeah.. no iw as trying to remove the extraneous \r\n at the
end.. i forgot to append to the right spot in the string.. i've simplified
it now :)


SVN revision: 5758
2001-12-09 01:24:44 +00:00
sleuth 2663676042 Broken multi-file drops...
Kevin Brosius <cobra@compuserve.com>


SVN revision: 5757
2001-12-08 21:07:44 +00:00
Carsten Haitzler 3e72ecf27a aha! ok... lots of stuff here...
1. now xdnd works to apps:
   tested:
     gmc
     mozilla
     xmms
     ee
2. dnd works bewteen e17 views too

3. cleaned up a little (the uri format was a little wrong)

4. notice fixme's - yes we need to have ways of copying and moving etc. files.
   efm did this - imho right. right mouse drag always pops up a menu asking
   what you want to do. left mosue drag always moves. current shift+left
   copies. we can add ctrl+left links etc. - but these shoudl eventually
   be configurable. i think this will keep everyone happy.


SVN revision: 5756
2001-12-08 06:34:06 +00:00
sleuth c300cb9506 Don't de-select icons unless they are removed from the view.
(Also fixes case if you remove a file behind E's back.)
Free items on icon deletion.

Kevin Brosius <cobra@compuserve.com>


SVN revision: 5754
2001-12-08 04:11:48 +00:00
rbdpngn 23ac2be6cf D'oh! That previous 2 liner should have been a 1 liner. :-) Forgot to remove a
an unused variable.


SVN revision: 5750
2001-12-06 22:33:35 +00:00
rbdpngn 306cd85ff4 2 liner to fix some selection artifacts left behind when dragging files to
other views.


SVN revision: 5749
2001-12-06 22:32:04 +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
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 b37fcf166e and... dont sync db on window close...
and dont kepe menu up if kbd/mouse couldnt be grabbed


SVN revision: 5742
2001-11-30 01:03:03 +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 bba90a0090 Oops, that was not for public consumption :)
SVN revision: 5737
2001-11-26 01:20:24 +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