Commit Graph

289 Commits

Author SHA1 Message Date
Till Adam 6b3626b857 add the files, too
SVN revision: 6043
2002-03-06 20:59:16 +00:00
Till Adam 3dc62d700e rename E_View_Model to E_Dir. That was a stupid name to begin with. :)
SVN revision: 6042
2002-03-06 20:44:48 +00:00
Till Adam be25ab672d * remove a bunch of unused variables
* scrollbars should not need to know the dir the view they are part of is in,
  because that can change without further notice. Access the dir through
  scrollbar->view->model->dir and replace the dir with the name of the view for
  named callbacks


SVN revision: 6040
2002-03-05 17:14:10 +00:00
Till Adam e0996f9fa7 I assume Brian meant to do that.
SVN revision: 6039
2002-03-05 16:50:19 +00:00
rephorm 949b22865e wow. now i'm really embarrassed. total brain fart in the commit yesterday. I really apologize.
SVN revision: 6038
2002-03-05 15:58:02 +00:00
rephorm a6da05f8b7 argh. forgot to add these...
thanks for pointing out all my mistakes till :)
hopefully thats everything.


SVN revision: 6037
2002-03-05 15:45:18 +00:00
rephorm b4aaf24a68 i think that should get things back to the way till had them.
for some reason, in e_configure,
  if ((v = e_view_machine_get_view_by_base_window(e->win)))
was acting as though true for all cases (including non views), and was segfaulting, so i made it
  v = e_view_machine_get_view_by_base_window(e->win);
  if (v)

any ideas why this would be necessary?


SVN revision: 6036
2002-03-04 23:57:56 +00:00
rephorm ce6d128739 Switched the layout over to using one bits file for layout, separate ones for element graphics (scrollbars / iconbars / etc). This allows more flexible (and cleaner) layout.
Instead of /path/.e_iconbar.bits.db, now uses /path/.e_layout/iconbar.bits.db.
Custom scrollbars can be placed in the .e_layout directory as well.

I should probably move the background db into here also, any objections?

So, to get your iconbar again, move the .e_iconbar[.bits].db to .e_layout/iconbar[.bits].db


SVN revision: 6034
2002-03-04 22:00:16 +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
Till Adam fdb0dbc708 dont refcount the model twice for the first view
SVN revision: 6009
2002-03-02 16:40:57 +00:00
Till Adam e45338be4d shuffle around registering/unregistering of views and view models as per cK's
suggestion
remove unneeded function
remove comments for obvious one liners


SVN revision: 6008
2002-03-02 10:20:07 +00:00
sleuth 4302d0b872 Fix icon display state after dragging to a second instance of the
same dir.

Kevin Brosius <cobra@compuserve.com>


SVN revision: 6007
2002-03-02 08:57:46 +00:00
Till Adam a87318928e dont remove things from a list you are iterating over, thank you
SVN revision: 6006
2002-03-01 21:55:55 +00:00
Till Adam cf83b660f7 - add e_view_machine_get_view_by_[base|main]_window
- use it in about a zillion places
- now VM->views is only accessed from within e_view_machine.c


SVN revision: 6005
2002-03-01 20:50:46 +00:00
Till Adam 5a88ba9d13 user uses scrollbar -> something happens - better :)
SVN revision: 6004
2002-03-01 18:01:22 +00:00
Till Adam 622a5ccaf2 * dnd operations now only affect the currently focused view
SVN revision: 6003
2002-03-01 16:31:29 +00:00
atmosphere f0e1393763 free bgs when e_view_cleanup is called
SVN revision: 6001
2002-03-01 00:52:44 +00:00
Till Adam 4efdf11ee6 Move e_view_machine_get_model functionality into e_view_set_dir in view.c
where it makes more sense.


SVN revision: 5996
2002-02-27 22:46:14 +00:00
cpk 706a10b1db Did a little codewalk through the view code -- added lots of
segfault protection, renamed get_model_from_realpath() to
view_model_lookup(). Moved the realpath call to view_model_lookup(),
this way we need not rely on the realpath being passed in.
All minor stuff, really.

One thing I noticed: e_view_machine_get_model() is in the wrong
place and should change its name -- it is not related to the view
machine and does not return anything. It should probably become

e_view_register_model()

and live in view.c.

Also, Raster hasn't replied yet to my question regarding
the need for the explicit -lc in Makefile.am. It works fine
here without it and apparently breaks FreeBSD build, so I
think we should remove it.

Fixed a warning in focus.c due to missing icccm.h.

Added "void" to function declarations that don't accept
parameters.


SVN revision: 5994
2002-02-27 21:06:42 +00:00
Till Adam 12fe3a8611 prevent selections in multiple views of the same dir. I do it like this to
keep selection info out of the view_model because it really doesnt belong
there, I think.


SVN revision: 5992
2002-02-27 10:39:08 +00:00
Till Adam 963526152c - use the view->changed flag again and set it whenever necessary (I hope ;)
- hopefully fix core on bsd reported by kirby kuehl


SVN revision: 5988
2002-02-26 21:12:45 +00:00
Till Adam d3625546b5 This is meant to prevent drags from one view of a dir to another view of
the same dir. Kevin, is this the right place to do this?


SVN revision: 5986
2002-02-26 18:56:54 +00:00
Till Adam fd0bd775f6 re-enable drag and drop. Turned out to need only minimal adjustments. Not extensively tested, so I'd appreciate it if
people tried if this works like before.


SVN revision: 5983
2002-02-26 09:24:50 +00:00
rephorm a7e397198d RIP!
No more epplet support.
It should once again compile regardless of whether ferite is used or not.


SVN revision: 5981
2002-02-26 01:25:35 +00:00
Till Adam a21dcda8c8 update some docu and comments
SVN revision: 5979
2002-02-25 20:44:58 +00:00
Till Adam 5744b944d6 ok folks, here goes. The multiple view stuff as discussed in lenght. I've managed to get metadata back up, views save
their geometry on close. I'll start getting the documentation back in sync and commenting some more. Could anyone
willing to clean up/fix either the iconbar dnd stuff and/or the regular dnd stuff please announce it, so we dont start
duplicating work. Thanks.


SVN revision: 5977
2002-02-25 18:09:13 +00:00
rephorm abf7d8f0ee some patches by Nicolas Pomarede:
LMB will scroll one screen when pressed in the scrollbar area.
Middle and Right MB will move the scroll bar slider to the clicked
position directly.

So this is rather similar to the behaviour we have in standard GTK apps
for example.

Also, I corrected a small bug in view.c and scrollbar.c that could lead to
the scrollbar beeing redrawn outside the view (because "value" was
recalculated before "range" and "max" were set ; and since value depends
on max and range, this could lead to value of value that were too big).

Thanks Nicolas!


SVN revision: 5976
2002-02-24 06:48:14 +00:00
sleuth 1ee238ff53 Enlarge the menu intersection test area so clicking
always starts the app.

Kevin Brosius <cobra@compuserve.com>


SVN revision: 5964
2002-02-21 04:42:50 +00:00
rephorm 419af7eb81 allow drops from the same view.
The matching_drop_attempt flag was set, so it should handle the drop regardless of whether the same view or not, since it checks for the flag later.

Now you can drop icons from the desktop to the iconbar.


SVN revision: 5960
2002-02-20 05:09:00 +00:00
rephorm daf36fd95d clean up the imlib_image
SVN revision: 5959
2002-02-20 04:19:21 +00:00
rephorm d5f6a3f256 drag and drop view icons onto the iconbar to add em. They get the same icon as t
he view gave em, so its a little bland now. Icon changing may come soon.


SVN revision: 5958
2002-02-20 03:47:13 +00:00
atmosphere d41b943d28 use a little more of the bg code in views
SVN revision: 5953
2002-02-18 14:42:57 +00:00
atmosphere 751ea8b62c clean up bgs properly(i think)
The old background code(background.c) had
e_object_init(E_OBJECT(bg), (E_Cleanup_Func) e_background_cleanup);
in the e_background_new function which isn't being used anymore

I don't fully understand the way the E_Object stuff would work with this or
if this is ok since ebg is its own separate library now.


SVN revision: 5943
2002-02-16 22:39:19 +00:00
rephorm 984f643abb reorder or remove iconbar icons by moving them around on the iconbar or moving them off of it.
SVN revision: 5942
2002-02-15 22:45:11 +00:00
rephorm dbcb4acf5e add epplet dir to evas font list.
so, epplet specific fonts go in epplet dir, not in data/fonts


SVN revision: 5907
2002-02-08 19:22:13 +00:00
sleuth 12d31ee35f Fix gnome menu generation.
Kevin Brosius <cobra@compuserve.com>


SVN revision: 5901
2002-02-06 02:05:49 +00:00
sleuth e291598f98 Minor printf cleanup.
Kevin Brosius <cobra@compuserve.com>


SVN revision: 5891
2002-02-03 08:32:31 +00:00
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
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