Commit Graph

346 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri beaf395663 fdo menu icons now scales.
SVN revision: 39353
2009-03-04 00:39:49 +00:00
Gustavo Sverzut Barbieri 43a27176be Fix edje thumbnails.
Please add the following to your /etc/mime.types:

   application/x-edje edj

And the following to your ~/.e/e/config/$PROFILE/e.cfg (see hint below):

   group "mime_icons" list {
     group "E_Config_Mime_Icon" struct {
       value "mime" string: "application/x-edje";
       value "icon" string: "THUMB";
     }
   }

or just remove your settings and choose a newly installed profile.

How to edit your ~/.e/e/config/$PROFILE/e.cfg:

   PROFILE=`eet -x ~/.e/e/config/profile.cfg config /dev/stdout`
   eet -d ~/.e/e/config/$PROFILE/e.cfg config ~/.e/e/config/$PROFILE/e.src
   $EDITOR ~/.e/e/config/$PROFILE/e.src
   eet -e ~/.e/e/config/$PROFILE/e.cfg config ~/.e/e/config/$PROFILE/e.src 1




SVN revision: 39348
2009-03-03 20:17:17 +00:00
Gustavo Sverzut Barbieri a9a0752791 efreet mime types icon cache.
This cache is very simple and should work fine when system does not
change, it keeps a direct association of mime-types and found icons,
remembering theme and icon size. Search is very fast since it uses
stringshared strings and thus direct pointer comparison in hash
search. We could optimize it even more if we assumed stringshared
strings to come in, so no need to eina_stringshare_add() (which is a
hash per se), using just eina_stringshare_ref().

Cache population is limited to compile-time value and just values
older than a given threshold are deleted. I do not keep a LRU explicit
list, so you might have some old but unused items always alive. I
don't find this too bad, sure it will consume more memory, but will
not hurt performance. We can change this to purge all expired items by
not checking for number of items to remove, removing all that match.

Next I plan to find out a good way to cache and speed up file->mime
discovery. I plan to do auto-generated state-machine to match
extensions, so you don't need to check the same extension character
more than once. Example:

   Input: bla.edc
   Extensions: edc edj eps png bmp

It would first try to match against 'e', 'p' and 'b'. It will match
'e' and then check for 'd' (edc or edj) or 'p' (eps). It will match
'd' and then check for 'c' or 'j'. This will reduce number of
comparisons considerably.

As I'm running out of time (4am, not much time left on this month), I
could use some help here.



SVN revision: 39343
2009-03-03 07:20:21 +00:00
Gustavo Sverzut Barbieri 9bc2ce0678 Invert view_flags logic, make it easier to use.
Now flags do not negate, rather specify if things should be used. This
will help us be compatible with original behavior and actually just
e_fwin is using that.



SVN revision: 39340
2009-03-03 04:40:58 +00:00
Davide Andreoli b19ee965ee First step to merge Places module with efm.
* Make the fileman menu as it is in Places module (still need to fix icons)

Just a doubt:
why efm was called using ecore_idle_enterer_add ? it is necessary ? I need to reenable it?

SVN revision: 39335
2009-03-02 22:46:40 +00:00
Gustavo Sverzut Barbieri ee2ab9506b fix problem with double directories in virtual devices.
oops, were using realpath and not path!

PS: still segfaults on some cases, related to mouse up callback being
called on already deleted icons, that should not happen as objects are
unrealized before being deleted. Need to investigate.



SVN revision: 39329
2009-03-02 11:55:57 +00:00
Gustavo Sverzut Barbieri 155495866f add e_fm2_view_flags_{get,set}
with these you can opt to ignore things like custom directory options,
very useful for widgets to choose files (e_widget_fsel) since you
don't want them to show your items as 128x128 :-)



SVN revision: 39322
2009-03-02 03:12:43 +00:00
Gustavo Sverzut Barbieri e88de35176 efm: use freedesktop icons from icon theme.
This almost remove need of e_fm_mime.c since it will use efreet, but
may bring some slowdowns due efreet. In this case let's try to
optimize efreet and improve everything.



SVN revision: 39315
2009-03-01 21:06:51 +00:00
Gustavo Sverzut Barbieri 82a8ab89df Major refactor of e_fm2_icon_get() and minor optimizations.
* split e_fm2_icon_get() to make it reuse more code paths.

 * lots of new internal functions with _e_fm2_icon_ prefix are born,
   try to reuse them as much as possible so we have less places to
   change if we move to something else (hint: using FreeDesktop.Org
   icons)

 * optimize e_fm2_icons_update() and few others to do not copy
   sd->realpath all the time, it is loop invariant there.

 * comparison of mime icon "DESKTOP" and "THUMB" are now fast pointer
   comparison since they're all eina_stringshare'd.

 * themes can now differentiate between file types, like 'fifo',
   'socket' or even 'executable'.

 * common extension comparisons are bit faster, not using glob pattern
   matching but rather reusing code to find out last '.' and then
   comparing them in optimal way. I added E_FM2_SIMPLE_STRCASE_FILES
   to make it even faster if one wants, left disabled by now.




SVN revision: 39313
2009-03-01 18:15:44 +00:00
Gustavo Sverzut Barbieri 5b0166b41e Enable per-dir theme of rubberband as well.
SVN revision: 39219
2009-02-25 21:06:21 +00:00
Cedric BAIL db419867dd * estickies,
* etk,
	* PROTO/exalt,
	* E-MODULES-EXTRA/diskio,
	* E-MODULES-EXTRA/drawer,
	* E-MODULES-EXTRA/penguins,
	* E-MODULES-EXTRA/slideshow,
	* E-MODULES-EXTRA/mail,
	* E-MODULES-EXTRA/forecasts,
	* E-MODULES-EXTRA/iiirk,
	* E-MODULES-EXTRA/places,
	* e,
	* ewl,
	* ecore,
	* elitaire,
	* entrance,
	* e_dbus,
	* efreet: Here we go, move from Ecore_List to Eina_List.

	NOTE: This patch is huge, I did test it a lot, and I hope nothing is
	broken. But if you think something change after this commit, please
	contact me ASAP.


SVN revision: 39200
2009-02-25 11:03:47 +00:00
Gustavo Sverzut Barbieri 59cde6a762 fm: handle symbolic links.
Symbolic links are handled similar to "paste". If you "Copy" you'll
get the "Link" menu item that will create a symbolic link instead of
real copying the file.

Drag and Drop works similarly, use "Alt" in order to get a popup and
select "Link" there.

Toma: we do miss icons for it!

Mekius & Ptomaine: please review as I'm not that familiar with e_fm_op.c



SVN revision: 39170
2009-02-24 05:22:14 +00:00
Gustavo Sverzut Barbieri ca8587a631 Oops, fix some bugs introduced with past commits.
SVN revision: 39032
2009-02-16 00:28:51 +00:00
Gustavo Sverzut Barbieri 815441ef2e e_fm: remember directory settings.
e_fm2_custom_file now remembers directory settings, it will save 
position on screen (horizontal and vertical pan percentage), view mode, 
icon size, if to remember ordering and if it should show hidden files.

There is a menu option to remove these settings and inherit settings 
from parent.



SVN revision: 39031
2009-02-15 23:09:09 +00:00
Gustavo Sverzut Barbieri b6e158989f Remove some warnings I introduced with past commits.
SVN revision: 39029
2009-02-15 17:06:49 +00:00
Gustavo Sverzut Barbieri df17ed3ca2 Minor refactor of interfaces, split code and menu callbacks.
Let's make real code interfaces to take a single Evas_Object and menu 
items callbacks should call them.



SVN revision: 39028
2009-02-15 15:25:27 +00:00
Gustavo Sverzut Barbieri 73ed3f89b3 keyboard shortcuts: ^X, ^C and ^V now works.
http://trac.enlightenment.org/e/wiki/Release



SVN revision: 39027
2009-02-15 14:50:30 +00:00
Gustavo Sverzut Barbieri 68461812b1 DONE: fm2 "delete" key needs to... delete.
http://trac.enlightenment.org/e/wiki/Release



SVN revision: 39026
2009-02-15 14:31:09 +00:00
Gustavo Sverzut Barbieri 78c70d7f94 fix sting bugs with e_fm and fileman.
* simplify eina_stringshare usage with _eina_stringshare_replace();
 * do not modify the string in stringshare as in e_fm2_parent_go();
 * use custom_theme_content instead of custom_theme in e_fm2_custom_theme_content_set().

Hopefully this will break nothing, but further analysis if it's
leaking strings in the stringshare should be done.



SVN revision: 38559
2009-01-12 19:52:35 +00:00
Carsten Haitzler 6beedeeda2 only use evdir.. if its there.
SVN revision: 38478
2009-01-06 07:55:03 +00:00
Carsten Haitzler 0c41ae041e move internal binaries to subdir - patch from albin
SVN revision: 38414
2009-01-02 01:08:14 +00:00
Cedric BAIL 773d102291 This commit is huge. I did test it a lot on my computer, and it run fine here.
But is so big i fear i could have broken some piece of code. So report any wrong
behaviour to me (cedric on #edevelop).

So moving e17 and efreet to eina_hash. With a little efreet API break so they
must come together.


SVN revision: 38185
2008-12-17 15:33:43 +00:00
Carsten Haitzler 81c91f034a char is used for numeric values... thus should be explicitly signed!
SVN revision: 37991
2008-12-07 21:57:11 +00:00
Gustavo Sverzut Barbieri 1d214683a9 e_fm2: view mode is back!
As I suspected it was not error on my code. At the end it was just a
missing theme.

For now I just aliased default to desktop, but I guess it's better to
come with something else transparent so we can see our
wallpaper. Themers?!

PS: for Illume I think it makes sense to have that menu, but for
desktop it does not, maybe we should add more flags to turn off just
view mode selection and keep icon size? Or just turn off lists... or
just let the user choose, there are many strange users out there, one
might like it.



SVN revision: 37983
2008-12-07 13:53:25 +00:00
Carsten Haitzler 99be358466 mark it with a comment
SVN revision: 37900
2008-12-02 03:46:50 +00:00
Carsten Haitzler c42fa8aa76 unfortunately disable.. breaks! need to find exactly why and fix though...
SVN revision: 37897
2008-12-02 02:29:50 +00:00
Gustavo Sverzut Barbieri 4ee50ae10c Dynamic change of icon size in EFM.
Still not persistent.


SVN revision: 37875
2008-12-01 04:38:27 +00:00
Gustavo Sverzut Barbieri ff06c79462 Enable changing view mode for a single directory.
So far no icon size changes, just mode between Grid Icons, Custom
Icons and List, one can choose to go back to default (global) setting.

TODO:
 - select icon size when !list
 - save state using e_fm_custom
 - child directory should inherit parent settings



SVN revision: 37873
2008-12-01 03:29:45 +00:00
Chidambar Zinnoury 4d2001bed6 While selecting using rubberband on file manager, select also when text is contained, not only icon.
SVN revision: 37844
2008-11-28 21:06:28 +00:00
ptomaine 75af5ecbe7 EFM: Make use of eina_stringshare_ref().
SVN revision: 37460
2008-11-04 17:12:01 +00:00
Gustavo Sverzut Barbieri 2d0f06ef7f Add and use eina_stringshare_ref().
This is a faster "add", if we know we're using a shared string we know
the node without any need to search it, just increment reference and
exit.



SVN revision: 37458
2008-11-04 16:25:12 +00:00
ptomaine 1c58b0e196 EFM: Make a copy of the dev argument, since eina_stringshare_del is called on
ic->sd->dev inside e_fm2_path_set() before anything is done and, thus, pointer
is no more valid.


SVN revision: 37457
2008-11-04 15:54:38 +00:00
Carsten Haitzler 17ff6255a1 thomas fix for single click dirs
SVN revision: 37436
2008-11-03 08:56:16 +00:00
Carsten Haitzler e5b58cdf3a profide a fso icon override for hdd's to use theme icon and code to use it.
SVN revision: 37266
2008-10-28 07:48:16 +00:00
Sebastian Dransfeld 10396e6085 Use strlcpy
SVN revision: 37237
2008-10-27 12:34:35 +00:00
Sebastian Dransfeld ab62c5ccf1 Fix if formatting.
SVN revision: 37207
2008-10-27 07:34:22 +00:00
Sebastian Dransfeld caa810894e Fix print formatting
SVN revision: 37205
2008-10-27 07:33:59 +00:00
Sebastian Dransfeld 4c36506ab1 Remove unused variables.
SVN revision: 37204
2008-10-27 07:33:45 +00:00
Sebastian Dransfeld 92ff3dab37 Fix callback for list sorting.
SVN revision: 37202
2008-10-27 07:33:21 +00:00
Gustavo Sverzut Barbieri e5c4d62fd4 Set member_{add,del} to NULL.
SVN revision: 37091
2008-10-25 03:13:33 +00:00
Cedric BAIL 1087de2397 Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already
big enough.



SVN revision: 36962
2008-10-22 11:49:33 +00:00
Cedric BAIL 3d6749983b Switch to eina_stringshare.
This could also change the usage of string share in E17.



SVN revision: 36679
2008-10-15 15:12:56 +00:00
Carsten Haitzler b370f8315f remove/comment out printfs and remove fixme (to be removed) fake mouse up funcs
SVN revision: 36229
2008-09-25 01:34:39 +00:00
ptomaine 2f90f227ea Avoid using '/media/' as mount point.
Fixes http://trac.enlightenment.org/e/ticket/19


SVN revision: 36158
2008-09-22 07:20:22 +00:00
Carsten Haitzler 2d9dd3ea37 fix dnd for desktop - if you have multiple zones! remove printf's too. lots
of noisiness in e.



SVN revision: 36103
2008-09-19 23:58:07 +00:00
Gustavo Sverzut Barbieri 18966c828b Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
Carsten Haitzler b3f35f4d47 support ilist-stule stacking info in odd/even items
SVN revision: 35826
2008-09-04 13:57:52 +00:00
ptomaine 2c4fae916f * Default theme: fix preview when dragging from list view.
* Add DND modifiers: Control for copy, Shift for move, Alt for ask. Default action is move. Config for these comes later.
* Add EDJE signals for theme to act on DND action change.
* Default theme: Show current DND action using overlay icons. Icons done by Tom 'Toma-' Haste, thank you very much.


SVN revision: 35772
2008-09-01 09:51:30 +00:00
Sebastian Dransfeld 3199439ed8 fix against efreet API breakage
SVN revision: 35492
2008-08-14 20:49:37 +00:00
Nicholas Hughart e177bb663f Patches from ptomaine.
* Fix for URI escpaing.
 * Add the ability for EFM to recognize different drop actions from other FMs.  The reverse soon to come :)
 * Add option to disable HAL device icons on the desktop.
 * Performing an operation on multiple files will now be done in a single slave process instead of many.

 More to come before and after GSOC :)  If you see him in the channel, give him a high five because he's finally helped pull EFM out of the crapper :P


SVN revision: 35432
2008-08-11 02:13:22 +00:00
Carsten Haitzler 7a0153e3e6 gusev's mkdir/ls patches.
SVN revision: 35229
2008-07-26 13:15:57 +00:00
Sebastian Dransfeld b66b3d7d90 formatting
SVN revision: 35223
2008-07-25 21:32:28 +00:00
Nicholas Hughart 634f26b04f New efm_op stuff from ptomaine. Test it out, try many different cases of copying/moving/removing etc. Right now progress for operations is just printed on STDOUT, but this will hopefully change soon (Something I've started already). If you find any bugs, send them to the list and/or notify ptomaine and/or myself. If someone wants to be a formatting nazi go ahead and check the formatting, I gave it a quick scan and it seemed close. More to come :)
SVN revision: 35178
2008-07-21 04:12:39 +00:00
Nicholas Hughart 1064be7774 Copy/Paste fixes from ptomaine. This is just the start, more coming soon :)
SVN revision: 35177
2008-07-21 03:21:17 +00:00
Carsten Haitzler 10363970e6 seelct on single select on mouse up.
SVN revision: 34400
2008-04-29 08:57:02 +00:00
Carsten Haitzler b1c69d3f5f put in some place markers in efm for categories in a fm widget - nothing
there currently but the entry, and fix focus of iconified windows. broke it
before.


SVN revision: 34389
2008-04-28 10:50:36 +00:00
Eric Schuele f54d7becf3 Fix typo.
SVN revision: 34286
2008-04-17 02:51:26 +00:00
Carsten Haitzler 9bd622f018 fix 3 valgrind issues i found.
SVN revision: 33955
2008-03-07 19:13:54 +00:00
Miculcy Brian d19728bcb2 cleanup
SVN revision: 33807
2008-02-22 00:59:42 +00:00
Miculcy Brian 93db2e5f8e fix for path // -> /
SVN revision: 33806
2008-02-21 23:32:34 +00:00
Miculcy Brian 932c2dcc10 fix segfault
SVN revision: 33609
2008-01-25 17:17:32 +00:00
Carsten Haitzler 284f202c13 use signed char - this is actually a numeric not a string - and negative
values are used, so it would matter if not signed.


SVN revision: 33572
2008-01-24 00:36:19 +00:00
Carsten Haitzler b92a1a6e24 thumbscroll. the ability to scroll any widget (anything scrolled by the
scrollfram smart/widget) using your "finger" anywhere in the view. not useful
for desktops. useful for small screen devices - openmoko/n800 etc. are
perfect targets. just click and drag with your finger, release. drag fast and
releas and you get momentum and it continues for a bit while it slows down.
configurable via a new config module.


SVN revision: 33564
2008-01-23 09:04:56 +00:00
Christopher Michael 1d9279a619 Change char to const char to avoid compiler warning.
SVN revision: 33337
2008-01-04 03:47:27 +00:00
Carsten Haitzler 20dae06a93 and actually USE the path calculated if relative
SVN revision: 33179
2007-12-18 10:43:03 +00:00
Carsten Haitzler 6d69f2cd7f allow relative path for icon files in .desktops
SVN revision: 33174
2007-12-18 01:42:08 +00:00
Christopher Michael b33225621e Context menu for setting View Mode (list/grid). Used in wallpaper & theme
dialogs.


SVN revision: 33130
2007-12-14 16:32:20 +00:00
Christopher Michael 85bf3a8e33 Start of panning the e_fm while selecting. Not working quite correct so
leave commented out for now.
Remove some extra printfs to quiet down e_fm.


SVN revision: 33111
2007-12-12 15:59:14 +00:00
Christopher Michael 8b7fec175f Add convenience function for getting an icon's geometry. This is used in
placing the new fwin next to the icon that spawned it.


SVN revision: 33097
2007-12-11 14:57:46 +00:00
Sebastian Dransfeld b8cd2447aa Fix warnings.
SVN revision: 32266
2007-10-31 19:56:59 +00:00
Sebastian Dransfeld 27a177e90e Remove unused variable.
SVN revision: 32264
2007-10-31 19:48:56 +00:00
Christopher Michael 32cbb1b860 Don't evas_list_free the returned mime handlers list. This fixes bug #255
SVN revision: 32194
2007-10-28 18:44:24 +00:00
lok c96be05cc6 Fix the fileselector when choosing an icon.
SVN revision: 32172
2007-10-27 15:55:27 +00:00
Christopher Michael 48905c36d5 Check that the mime handler has a label before trying to strcmp it.
SVN revision: 32155
2007-10-24 18:25:44 +00:00
Christopher Michael 5a011806da Remove printf.
SVN revision: 32152
2007-10-24 08:43:00 +00:00
Carsten Haitzler 91b0dbc6fc lok's patches for hal support. works a bit better now - removable devs are
mounted as the user and it monitors other mount work by other apps etc. etc.
some fixes to remove segv's and at least make mt cd/dvd drive recognised asa
storage device, but it seesm as of now mounting of cd/dvd media doesn't work :(


SVN revision: 32141
2007-10-22 07:38:25 +00:00
Christopher Michael 12f08e4ec4 Remove unused variable.
SVN revision: 32086
2007-10-16 08:31:57 +00:00
codewarrior f3b6e167e9 Add e_fm2_mime_handler_test() to run a mime handler's internal test funciton
When as right click an icon, we need to run the test function to determine of
context entries need to go into the menu or not. (previously, only the glob /
mime check was being done)


SVN revision: 32080
2007-10-15 12:35:56 +00:00
Christopher Michael 511e3c1b8a Add context menu for setting themes from efm.
Fix e_fm_mime returns.


SVN revision: 32070
2007-10-14 17:31:27 +00:00
Christopher Michael 08ca1d1e04 Support menu icons for the context menus.
SVN revision: 32069
2007-10-14 16:09:51 +00:00
Christopher Michael ce341fa4df E_FM Context Menus :)
Big Thanks to CodeWarrior for his help !!!

Add context handler for backgrounds. Can now right-click an .edj and Set as
Background.


SVN revision: 32068
2007-10-14 16:06:51 +00:00
Christopher Michael 3fc626dc40 Formatting fixes.
SVN revision: 32023
2007-10-09 01:30:25 +00:00
Christopher Michael 9f4f506f96 Add a separator before Copy if needed.
SVN revision: 32017
2007-10-08 17:35:09 +00:00
Christopher Michael 446084e158 Check that user can write to a place before enabling the Paste menu item.
SVN revision: 32016
2007-10-08 17:15:20 +00:00
Christopher Michael 88343ea978 Remove useless printf.
SVN revision: 32015
2007-10-08 17:10:18 +00:00
Carsten Haitzler 74ddafcfee cedric's ecore_job_init/shtudown patches.
SVN revision: 31972
2007-10-05 05:12:38 +00:00
Carsten Haitzler 6b23fae2f8 revert lok's patch - gettign segv's and mount success/failure is not working.
SVN revision: 31951
2007-10-03 17:19:17 +00:00
Carsten Haitzler 055b45c306 lok's patch for handling tracking of mounts better.
SVN revision: 31950
2007-10-03 16:46:29 +00:00
Christopher Michael f824ed9e9c This should fix the random e_fm segfaults when opening directories for good.
Seems we cannot rely on icon smart data being valid.


SVN revision: 31924
2007-10-02 00:16:09 +00:00
Christopher Michael d4050a4b90 One more safety check to see that icon->sd->realpath is valid.
People are still getting an occasional segfault when trying to open folders.
This should correct the problem.


SVN revision: 31919
2007-10-01 18:52:43 +00:00
Christopher Michael 16c518bd24 Fix typo so E builds again. Oops.
SVN revision: 31843
2007-09-28 17:40:23 +00:00
Christopher Michael a03103ee5f Proper fix for ic->info.file checking.
Should not have committed copy/paste just yet.


SVN revision: 31842
2007-09-28 17:36:17 +00:00
Christopher Michael 61df9537ba Be sure we have Icon->Info->File before trying to use it in a printf.
SVN revision: 31841
2007-09-28 17:03:40 +00:00
Christopher Michael 773663840f Fix missing function prototype.
Removed some printfs.
Use more precise method of calculating if an icon is inside the rubber band.


SVN revision: 31806
2007-09-25 18:27:16 +00:00
Stafford Mitchell Horne 54ab7f0d3c Long waiting commit
* Break out intl data. Reduces the size of e_imc
 * Add Dbus ipc replacement
 * Elightenment Dbus API can be extended by modules (Example: msgbus_lang)


SVN revision: 31803
2007-09-25 14:26:36 +00:00
Christopher Michael 609ef14f73 Added basic rubber band support to efm. Still needs a little work.
SVN revision: 31764
2007-09-19 19:39:00 +00:00
Carsten Haitzler 3552b64078 just use PATH_MAX - using _... defines is... bad .. mmmkay
SVN revision: 31680
2007-09-10 23:28:48 +00:00
Christopher Michael d0578eb3cb Lots of cleanup (Remove unused variables & functions)
SVN revision: 31468
2007-08-23 09:45:30 +00:00
lok e8c285ddb6 BSD compatibility.
SVN revision: 31382
2007-08-18 12:15:31 +00:00
Sebastian Dransfeld 81c825ce00 Don't use strlen to check for empty string.
SVN revision: 31381
2007-08-18 11:50:08 +00:00