Commit Graph

725 Commits

Author SHA1 Message Date
Mike Blumenkrantz 45803968c5 free ctx action list as we add so we don't have to loop twice
SVN revision: 75766
2012-08-28 08:36:50 +00:00
Mike Blumenkrantz adc7b0bd98 not sure why this was inline
SVN revision: 75765
2012-08-28 08:33:58 +00:00
Mike Blumenkrantz 098e8723e0 fix efm mime actions to properly add a separator if there is an action which fails a test before an action that does not fail a test
SVN revision: 75764
2012-08-28 08:30:16 +00:00
Mike Blumenkrantz c94ce38fa4 fix leak when adding ctx menu items to efm
SVN revision: 75763
2012-08-28 08:23:11 +00:00
Mike Blumenkrantz 540e94652e more dialog delete cleanups
SVN revision: 75755
2012-08-28 06:49:14 +00:00
Carsten Haitzler cf863adc59 fix sorting to sort symlinks to dirs as if they are dirs...
SVN revision: 75695
2012-08-25 09:12:31 +00:00
Mike Blumenkrantz 98dca3d7b8 never activate clicked item if doing range/multi select
ticket #1365


SVN revision: 75486
2012-08-21 06:40:25 +00:00
Carsten Haitzler 9cc281f002 make filepreview for links and removable devices and mountpoints give
fs type, filesystem usage, size etc. etc. much more useful.



SVN revision: 75429
2012-08-19 13:28:51 +00:00
Mike Blumenkrantz ac28718562 add function for counting number of selected files
SVN revision: 75016
2012-08-08 12:29:16 +00:00
Mike Blumenkrantz d2b8ccd61a add efm option to disable click renaming
SVN revision: 75012
2012-08-08 11:55:10 +00:00
Mike Blumenkrantz cd9c7ee8dc ensure that title clicking an icon to rename only causes the rename if no other icons are clicked/selected
SVN revision: 74995
2012-08-08 06:59:06 +00:00
Mike Blumenkrantz 3b748e94c5 prevent all renaming when the icon menu flag is set to disable it
SVN revision: 74967
2012-08-07 08:56:03 +00:00
Mike Blumenkrantz ce76c249b8 efm now allows renaming by clicking an icon's label
SVN revision: 74963
2012-08-07 08:18:59 +00:00
Mike Blumenkrantz 6790e78bb7 fix possible crashes when going to parent directory, also fix case where attempting to go to parent directory from root would throw an error dialog
SVN revision: 74961
2012-08-07 06:59:37 +00:00
Mike Blumenkrantz c2b7cdb16c ensure that application properties is not shown for any file beginning with |
SVN revision: 74944
2012-08-06 14:11:39 +00:00
Mike Blumenkrantz f8430f2af9 don't show Application Properties menu item for removable media links
SVN revision: 74943
2012-08-06 14:09:53 +00:00
Mike Blumenkrantz 05b70797b9 rearrange separators in icon right click menu
SVN revision: 74942
2012-08-06 14:05:31 +00:00
Mike Blumenkrantz 388e9e2786 move 'new directory' to a submenu which will eventually be populated by related items
SVN revision: 74940
2012-08-06 13:58:20 +00:00
Mike Blumenkrantz 4af7a2e439 inherit parent settings -> submenu
SVN revision: 74939
2012-08-06 13:50:07 +00:00
Mike Blumenkrantz 7af4aee424 efm menus are gettin a little big, time to start condensing.
menu toggles -> Options submenu


SVN revision: 74937
2012-08-06 13:38:15 +00:00
Mike Blumenkrantz b54be9093a another efm crash--
SVN revision: 74917
2012-08-06 09:34:27 +00:00
Mike Blumenkrantz 160c91873b ensure directory still exists when setting parent on unmount
SVN revision: 74915
2012-08-06 09:12:45 +00:00
Mike Blumenkrantz 0b1cb03a25 prevent crash when realpath is null from setting a mount
SVN revision: 74912
2012-08-06 08:55:28 +00:00
Mike Blumenkrantz e878d1840f revert temp efm path resolution fix from the weekend, also fix mounting in a number of cases
SVN revision: 74905
2012-08-06 07:45:51 +00:00
Mike Blumenkrantz ab46fd58c1 also print out dev/path for debugging in previous commit
SVN revision: 74876
2012-08-04 08:47:52 +00:00
Mike Blumenkrantz 735b02c419 pop error dialog when efm fails to resolve a path instead of crashing
SVN revision: 74875
2012-08-04 08:46:57 +00:00
Mike Blumenkrantz a2a0c31062 prefer actual image previews over mime icons
SVN revision: 74862
2012-08-03 18:10:23 +00:00
Mike Blumenkrantz 5c7662a0ed fix efm icon loading for cases where the theme does not define mime icons
SVN revision: 74861
2012-08-03 18:05:25 +00:00
Mike Blumenkrantz 4767c70921 ensure typebuf timer gets deleted to prevent crashes
SVN revision: 74843
2012-08-03 11:12:23 +00:00
Mike Blumenkrantz dcc999599e efm config now has the no_typebuf_set option to disable typebuf directory changing
SVN revision: 74842
2012-08-03 11:00:58 +00:00
Mike Blumenkrantz 418ff1255b clear efm typebuf when something gets clicked, add external function for manually clearing typebuf
SVN revision: 74837
2012-08-03 10:32:12 +00:00
Mike Blumenkrantz ade7d802eb only change efm selection when using typebuf if the selection actually needs to be changed; fixes flickering and constant selection callbacks
SVN revision: 74836
2012-08-03 10:14:37 +00:00
Mike Blumenkrantz 1044ea8316 warn--
SVN revision: 74810
2012-08-02 16:25:53 +00:00
Mike Blumenkrantz 542d302108 e_fm2_parent_go() and e_fm2_has_parent_get() now behave as expected
ticket #1243


SVN revision: 74805
2012-08-02 12:25:58 +00:00
Mike Blumenkrantz a162da52bb fix efm list scrolling
ticket #1120


SVN revision: 74802
2012-08-02 11:58:33 +00:00
Mike Blumenkrantz 5c8525d1c9 efm now properly obeys link_drop in all cases, not just list view
SVN revision: 74799
2012-08-02 10:27:36 +00:00
Mike Blumenkrantz fe1033edb4 not sure what I was thinking here, too early in the morning I guess. redundancy--
SVN revision: 74797
2012-08-02 10:20:30 +00:00
Mike Blumenkrantz c47ea3ce2c autocreate favorites in thread on startup and any time they're deleted
SVN revision: 74794
2012-08-02 08:18:33 +00:00
Mike Blumenkrantz 2593a1c020 ensure favorites directory is always created
SVN revision: 74791
2012-08-02 08:03:13 +00:00
Mike Blumenkrantz 90e15a8678 move favorites setup code to efm
SVN revision: 74788
2012-08-02 07:55:41 +00:00
Mike Blumenkrantz b8cdf23f62 only create desktop paths when actually desktop directories
SVN revision: 74735
2012-08-01 12:29:18 +00:00
Mike Blumenkrantz 06b18f44c8 fix path resolution for desktop device which was broken while fixing path resolution for desktop device which was broken while fixing path resolution for desktop device
SVN revision: 74734
2012-08-01 12:28:14 +00:00
Mike Blumenkrantz 05fd34c8bd fix efm dnd when filemanager widget is not positioned at 0,0, an icon's statinfo is now based on its source in case of link and desktop files, allow dnd onto link/desktop files as though they were the actual directory
SVN revision: 74729
2012-08-01 11:51:49 +00:00
Mike Blumenkrantz 2dd460106c remove old/deprecated non-async file listing
SVN revision: 74724
2012-08-01 09:05:35 +00:00
Carsten Haitzler 12d1de00e1 clean up whole bunch of potential memory errors in e_fm.c
SVN revision: 74723
2012-08-01 09:00:22 +00:00
Mike Blumenkrantz 1280fd2364 fix efm dnd with list view
SVN revision: 74720
2012-08-01 08:49:04 +00:00
Mike Blumenkrantz 837e220d75 also optimize _e_fm2_icon_first_selected_find
SVN revision: 74718
2012-08-01 08:03:37 +00:00
Mike Blumenkrantz 10580953e4 optimize _e_fm2_icon_desel_any()
SVN revision: 74717
2012-08-01 08:01:38 +00:00
Mike Blumenkrantz 810b9282f5 add function for deselecting all selected icons in fm object
SVN revision: 74716
2012-08-01 08:00:21 +00:00
Mike Blumenkrantz 506b9ad8e6 whoops forgot this was a list of icons, not icon infos. unbreak!
SVN revision: 74654
2012-07-31 13:18:24 +00:00
Mike Blumenkrantz 89cdac7771 simplify e_fm2_selected_list_get
SVN revision: 74653
2012-07-31 13:09:05 +00:00
Mike Blumenkrantz 5488f9f047 when deleting an icon, we want to remove it from the selected list -- not add it
SVN revision: 74652
2012-07-31 13:07:54 +00:00
Carsten Haitzler bc3741963e and fix my desktop folder fix.. to not make Desktop- :)
SVN revision: 74645
2012-07-31 11:07:33 +00:00
Carsten Haitzler c98fe5be14 please don't break Desktop-1/2 ec. for multi-screen. thanks. :)
SVN revision: 74634
2012-07-31 09:50:27 +00:00
Mike Blumenkrantz 52a5c2c729 passing a path along with "desktop" device to efm should allow you to navigate relative to your desktop directory. now it does
SVN revision: 74591
2012-07-30 14:25:36 +00:00
Mike Blumenkrantz eada1e1347 add utility function for efm to map a dev+path into an actual path
SVN revision: 74585
2012-07-30 12:29:07 +00:00
Mike Blumenkrantz 904e298809 fix typebuf in efm to properly handle relative directory switching from arbitrary devices
SVN revision: 74354
2012-07-24 11:37:02 +00:00
Mike Blumenkrantz 4dc9ba50fe fix renaming files directly on the desktop canvas without a popup
ticket #117


SVN revision: 74318
2012-07-23 09:26:49 +00:00
Mike Blumenkrantz 5bb05f5864 prevent fileman typebuf from activating while renaming files
SVN revision: 74307
2012-07-23 07:58:52 +00:00
Mike Blumenkrantz 280cf2a008 simply return when a filemanager's config is re-set instead of crashing
SVN revision: 74231
2012-07-20 10:41:09 +00:00
Mike Blumenkrantz 11b99c6513 fileman's "Use Single Click" option now toggles a global config option which is picked up by fileselector widgets, also added a menu item to the right click efm menu to toggle this on a case-by-case basis
ticket #663


SVN revision: 74230
2012-07-20 10:25:02 +00:00
Mike Blumenkrantz 67db80b0bb fix efm typebuf globbing to work for trailing globs
SVN revision: 74219
2012-07-20 08:41:32 +00:00
Mike Blumenkrantz fa0e811cc8 fix tab completion and repeated typebuf navigation when using relative directories
SVN revision: 74218
2012-07-20 08:25:23 +00:00
Mike Blumenkrantz fe3f5c44e9 fix efm typebuf navigation when using relative directories instead of absolute paths, also fix tab completion
SVN revision: 74217
2012-07-20 08:15:50 +00:00
Mike Blumenkrantz f780d740ce prevent infinite looping while loading directory props in efm
SVN revision: 74214
2012-07-20 07:59:13 +00:00
Mike Blumenkrantz 3b3403b127 remove wildcard refs in efm typebuf on hide
SVN revision: 74208
2012-07-20 06:44:59 +00:00
Mike Blumenkrantz 5a42012102 more typebuf fixes for "favorites" in efm
SVN revision: 74207
2012-07-20 06:31:41 +00:00
Mike Blumenkrantz 50d1c1b5ee also prevent typebuf changes on "favorites" widgets
SVN revision: 74206
2012-07-20 06:27:27 +00:00
Carsten Haitzler 1d5f246de1 fix fm exec application remembering. :)
SVN revision: 74203
2012-07-20 04:48:59 +00:00
Mike Blumenkrantz 3c10733774 "when I was a boy, all the file managers did glob matching with their typebufs, and they could do it uphill both ways in the snow! barefoot!"
-rasterman (18 July 2012)


SVN revision: 74190
2012-07-19 13:40:11 +00:00
Mike Blumenkrantz 7f6de8b710 add method for setting the efm widget overlay clip to an external clipper
SVN revision: 74164
2012-07-19 08:16:42 +00:00
Mike Blumenkrantz 091e897f64 full, working tab completion for efm widgets, also slightly decrease typebuf hide timer to 3.5s from 5.0s: this was just way too long
SVN revision: 73967
2012-07-17 10:26:05 +00:00
Mike Blumenkrantz eaaa60e655 support "~/" in efm typebufs
SVN revision: 73966
2012-07-17 10:01:16 +00:00
Mike Blumenkrantz 644ff46ecd whoops, left some debug in
SVN revision: 73965
2012-07-17 09:50:38 +00:00
Mike Blumenkrantz 7d88737440 efm widgets now support realtime path evaluating/changing using the typebuf
SVN revision: 73964
2012-07-17 09:49:53 +00:00
Mike Blumenkrantz 1ec3f12805 use int(0) not Eina_Bool(0) to terminate a string, also we don't actually have to do all this freeing and reallocating
SVN revision: 73961
2012-07-17 08:54:33 +00:00
Mike Blumenkrantz 36048e5bee smart callback for efm widget typebuf change
SVN revision: 73958
2012-07-17 08:44:08 +00:00
Mike Blumenkrantz 8d479ed3b2 add functions for selecting first/last file
SVN revision: 73955
2012-07-17 08:31:39 +00:00
Mike Blumenkrantz a7bf8ae103 this use of timers in efm was not the smartest I've seen, and it caused an abort. spankies to someone
SVN revision: 73950
2012-07-17 07:02:27 +00:00
Chidambar Zinnoury 2ac1229261 e file manager: hide open menu items if there is no selection.
SVN revision: 73893
2012-07-15 20:05:58 +00:00
Christopher Michael d0ceff8feb E_FM: Fix uninitialized variables in e_fm.c. Fix Unused variable in
e_fm_device.c



SVN revision: 73872
2012-07-15 11:17:45 +00:00
Chidambar Zinnoury 40a79b6599 e fm: add plural support for the delete confirmation dialog.
Here the singular version is not used in english, but plural support is nonetheless needed for languages who have multiple plurals depending on the number of files.

 Bonus: add a complementary dialog for when you're trying to delete all the files in the folder.


SVN revision: 73868
2012-07-15 08:23:19 +00:00
Chidambar Zinnoury 3b7fd1afb9 e fm: first use of plurals!
SVN revision: 73865
2012-07-15 07:06:28 +00:00
Mike Blumenkrantz 64caa28ea9 switch efm edje icon group checking to fix display of theme previews
SVN revision: 73834
2012-07-13 23:01:50 +00:00
Mike Blumenkrantz 1d49687cd9 add smart callbacks to efm objects for mouse in/out on an icon object
SVN revision: 73615
2012-07-12 12:27:09 +00:00
Mike Blumenkrantz 06b9059148 add e_fm2_optimal_size_calc() which will attempt to calculate the optimal size for displaying an efm widget inside a bounded area
SVN revision: 73500
2012-07-09 11:43:56 +00:00
Mike Blumenkrantz 1fdc926ad9 add externally available getter for an efm widget's current view mode
SVN revision: 73490
2012-07-09 08:34:33 +00:00
Mike Blumenkrantz 2e8c03cf67 efm list view icons should always take up the full width of the fm widget now
SVN revision: 73484
2012-07-09 07:28:19 +00:00
Mike Blumenkrantz cdc51406e3 shift+arrow keys in efm now adds file to selection. crappy unexpected select path is due to efm's arrow navigation
ticket #1130


SVN revision: 73412
2012-07-06 13:09:38 +00:00
Mike Blumenkrantz fde9e1cf7c middle mouse button now selects/deselects files like ctrl+click in efm
ticket #280


SVN revision: 73404
2012-07-06 09:09:37 +00:00
Mike Blumenkrantz 82ee910b78 fix efm icon look in list view, breaks scrolling behavior
SVN revision: 73127
2012-07-02 07:58:25 +00:00
Mike Blumenkrantz 1f8cc4cd6d pressing escape on the desktop with file manager icons shown no longer causes the desktop to try going to the parent directory
SVN revision: 72932
2012-06-27 09:42:22 +00:00
Mike Blumenkrantz f8e53aca00 display current device detect/mount mode in fileman config
SVN revision: 72855
2012-06-26 07:32:11 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Mike Blumenkrantz 20a94946f4 macros can be confusing if you don't understand how they work.
fix super longstanding efm bug where shift+select selected way more items than it should have


SVN revision: 72481
2012-06-19 14:12:41 +00:00
Mike Blumenkrantz 6ba92ab323 some chucklehead doesn't know how shift/ctrl selection on click works and reversed the modifiers. I have now unreversed them
SVN revision: 72480
2012-06-19 13:51:30 +00:00
Mike Blumenkrantz b331eececb only set remembered custom dir pan if we're using an instance that has custom dir enabled
SVN revision: 72469
2012-06-19 10:24:09 +00:00
Mike Blumenkrantz 671feaa78c make list items expand to maximum width
SVN revision: 72468
2012-06-19 10:05:22 +00:00
Christopher Michael cacae5a9c0 Fix unitialized variable warning.
SVN revision: 72467
2012-06-19 09:59:31 +00:00
Mike Blumenkrantz fbda443407 fix crazy horizontal scrollbar flickering and resizing in file selector for efm
SVN revision: 72463
2012-06-19 09:48:36 +00:00
Mike Blumenkrantz df9b504499 unify efm smart object checking code into a macro
SVN revision: 72448
2012-06-19 07:25:26 +00:00
Mike Blumenkrantz 7f90125e32 no need to freeze here, we're already frozen
SVN revision: 72444
2012-06-19 07:06:13 +00:00
Mike Blumenkrantz 974c166778 efm now keeps a list of selected icons per window, also now pasting to a selected folder will paste inside the selected folder instead of to the current directory
closes ticket #618


SVN revision: 72385
2012-06-18 11:55:44 +00:00
Mike Blumenkrantz 32a3fd9f30 stderr was not meant to be an arg here
SVN revision: 72376
2012-06-18 09:20:21 +00:00
Mike Blumenkrantz f784bff213 replace e17 logging "system" with custom eina log domain
SVN revision: 72089
2012-06-13 15:17:23 +00:00
Mike Blumenkrantz e8157caac8 fix udisks fwin refresh when drive is previously mounted
SVN revision: 72025
2012-06-12 13:07:37 +00:00
Mike Blumenkrantz d07a3ff63c fix old mount provider check from when eeze mounting didn't exist; this fixes fwin refresh when opening a previously mounted volume
SVN revision: 72001
2012-06-12 09:19:04 +00:00
Mike Blumenkrantz 0e468b1d01 make e_fm.c readable
SVN revision: 71944
2012-06-11 10:18:25 +00:00
Mike Blumenkrantz 8a9a9dcbda use new efreet function to simplify desktop dir discovery, also ensure that we are always using the right desktop dir
ticket #617


SVN revision: 71820
2012-06-07 15:58:42 +00:00
Vincent Torri 2fff3dd83a E17: fix mixed declarations and code
SVN revision: 70975
2012-05-13 17:45:44 +00:00
Vincent Torri c30aaf8dde e17: remove some shadow variables
SVN revision: 70190
2012-04-15 08:09:56 +00:00
Carsten Haitzler 0078d30bdc segv's waiting to happen wrong api calls on wrong object types - check
to protect.



SVN revision: 66707
2011-12-31 14:35:05 +00:00
Carsten Haitzler 008668be55 oh dear.. more icon bottom space stuff in efm. fix!
SVN revision: 65648
2011-11-28 12:18:58 +00:00
Carsten Haitzler f32a029890 man that has annoyed me for AGES.. that uselss space at the bottom of
efm views! argh! fix! disable it!



SVN revision: 65594
2011-11-25 08:07:12 +00:00
Carsten Haitzler 1175a7b529 and remove printfs
SVN revision: 65593
2011-11-25 07:47:57 +00:00
Carsten Haitzler db3621837a lets drop icons correctly if efm view is not at 0,0
SVN revision: 65592
2011-11-25 07:46:50 +00:00
Hannes Janetzek f30111ae01 e17: workaround segv when mounting cdrom with udisk. btw opening devices in efm that are already mounted shows empty window
SVN revision: 63600
2011-09-25 06:53:58 +00:00
Mike Blumenkrantz 11186c9994 warn--
SVN revision: 62870
2011-08-26 18:17:37 +00:00
Boris Faure 6907da7f27 e: use '-' to separate multiple desktop dirs
reverts 62571

SVN revision: 62742
2011-08-24 14:18:09 +00:00
Carsten Haitzler c92b31afb7 umm - probably clear up some invalid reads/uninit values here.
SVN revision: 62615
2011-08-20 03:57:28 +00:00
Boris Faure b2d2229fdc e: show desktop according to XDG_DESKTOP_DIR if set
SVN revision: 62572
2011-08-18 19:11:34 +00:00
Boris Faure 413cbb8ae6 e: fix efm path map on desktop
SVN revision: 62571
2011-08-18 19:11:07 +00:00
Hannes Janetzek 56453bc0aa e17/efm: set e_icon_scale_size to render scalable icons with correct size
SVN revision: 62199
2011-08-08 11:20:30 +00:00
Christopher Michael ccd6c5aa1d E: e_fm: Fix unused label (fallback:). Add UNUSED where missing.
SVN revision: 61763
2011-07-26 14:11:28 +00:00
Hannes Janetzek 5412669200 e17/efm: revert, seems this was no fix
SVN revision: 61693
2011-07-25 13:05:49 +00:00
Hannes Janetzek 016fde39dc e17/efm: fix e_fm2_path_set: show contents of 'removable' mountpoints also when the device is already mounted
SVN revision: 61683
2011-07-25 10:14:37 +00:00
Hannes Janetzek bc5f550546 e17/efm: show mime icons when thumbnail failed
SVN revision: 61654
2011-07-24 20:36:52 +00:00
Christopher Michael 0c3e2d4576 E: E_FM: Fix lots of compiler warnings about comparison of signed and
unsigned ints.



SVN revision: 59593
2011-05-22 16:45:16 +00:00
Hannes Janetzek f8fc5f9f78 e17/fm: fix segv
SVN revision: 57399
2011-02-27 22:39:51 +00:00
Hannes Janetzek 0e59861be3 e17/fm: fix last commit.
it's possible that ic_next could be NULL


SVN revision: 57260
2011-02-23 10:37:17 +00:00
Hannes Janetzek af23edc941 e17/fm: select next item after deleting a file
SVN revision: 57258
2011-02-23 10:18:41 +00:00
Hannes Janetzek 8bf7b759a7 efm add keybindings:
- ctrl+h toggle show hidden files
- ctrl+1 icon view
- ctrl+2 list view
- ctrl+3 custom grid view


SVN revision: 56839
2011-02-09 13:12:38 +00:00
Hannes Janetzek f56fe34d97 do not crop labels at bottom: add extra space in icon-view mode
SVN revision: 56821
2011-02-08 21:30:48 +00:00
Hannes Janetzek b7cfdd21f1 fix loop in fm favorites view: delete .desktop for non existing device
SVN revision: 56715
2011-02-04 20:33:30 +00:00
Carsten Haitzler 5683f1b65c and fix mounty to be SAFE woth udisks.
SVN revision: 55994
2011-01-08 18:18:17 +00:00
Mike Blumenkrantz c2f5922c89 fix segv when using udisks to mount during ipc reads
SVN revision: 55989
2011-01-08 06:04:32 +00:00
Mike Blumenkrantz ef105564ba with this commit, udisks mounting is now fully functional (wfm!) and has a number of benefits over the HAL backend, such as being able to automount media that's in your fstab
dev notes: changes to efm were required for this to work since udisks doesn't report back a mount point upon executing a mount command, so the actual dir listing/display must
be delayed by another callback until we actually know where the disk is to avoid opening a random directory


SVN revision: 55916
2011-01-06 01:35:41 +00:00
Mike Blumenkrantz 23e9a844ff remove random semicolon?
SVN revision: 55901
2011-01-05 19:42:24 +00:00
Mike Blumenkrantz 6221397e99 fix annoying comparison is always true warning
SVN revision: 55862
2011-01-05 05:39:30 +00:00
Christopher Michael 27819e0780 Add missing UNUSED where needed.
SVN revision: 55769
2010-12-29 16:42:46 +00:00
Mike Blumenkrantz d3bcd46f2b avoid garbage deref
SVN revision: 55725
2010-12-23 00:24:16 +00:00
Sebastian Dransfeld 4d602b28e9 Listen for icon theme changes
SVN revision: 55683
2010-12-21 08:42:30 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

Actually I guess too much is exported as EAPI while they should be
EINTERN, but that would require manual investigation, while this patch
was basically created with sed + grep.



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Sebastian Dransfeld 3d1a299e06 Let efreet icon return const
We return a pointer to an internal cache, so no need to do strdup. I we
implement a cache, the pointer will be a return from a mmap'ed file, so
no need to do strdup.

A bit late to do an API break, but must be done.

SVN revision: 54372
2010-11-09 20:15:55 +00:00
Sebastian Dransfeld ea2d3ab0eb Cleanup icon up handling
It seems that originally the "selected" event wasn't to be fired on dirs
during single click. This makes it impossible for fwin to open a new
window when single clicking a dir, so some ugly hacks has been added.
"The right fix (tm)" is to always emit "selected", even on dirs, and let
the listener decide what to do with the file.

SVN revision: 54229
2010-11-06 15:15:21 +00:00
Sebastian Dransfeld 889876d851 Only call "selected" on dirs
This fixes bug #593

SVN revision: 54228
2010-11-06 14:44:37 +00:00
Sebastian Dransfeld 3c12d4daba __UNUSED__ last
SVN revision: 54193
2010-11-05 18:40:31 +00:00
Mike Blumenkrantz fc78801dd8 should fix desktop icon text shortening
SVN revision: 54137
2010-11-03 21:59:56 +00:00
Mike Blumenkrantz 745e9031ea more vars that should be ints
SVN revision: 54136
2010-11-03 21:46:10 +00:00
Mike Blumenkrantz a8fb965995 fix some vars that should be ints after all
SVN revision: 54135
2010-11-03 21:31:44 +00:00
Mike Blumenkrantz de632e8367 run #2 of ecrustify, plus a manual edit to correctly make a function pointer
* now aligns with function prototype name, a couple other tiny spacing fixes


SVN revision: 53798
2010-10-23 06:05:03 +00:00
Mike Blumenkrantz 475ab010c1 dunno how that snuck in
SVN revision: 53784
2010-10-22 20:36:38 +00:00
Mike Blumenkrantz 76224aeb9e this is a rather large stress test of the improved version of uncrustify+config that I have been working on
as far as I can tell, it's perfect for non-headers

header example following as soon as I finish making it space EINA_XYZ() args properly


SVN revision: 53774
2010-10-22 17:07:41 +00:00
Miculcy Brian dd641e9259 New categories for modules.
To be continued soon...


SVN revision: 53514
2010-10-17 17:33:44 +00:00
Mike Blumenkrantz 33f0bae5cb e_fm2_dbus prefix is now e_fm2_device for upcoming seamless integration with eeze
SVN revision: 53328
2010-10-13 02:53:25 +00:00
Carsten Haitzler 5f713c865b fix... gah. formatting mess there.. and the real problem
using str1 == str2 instead of strcmp assuming all strings are
stringshared. dont ASSUME this unless you 100% KNOW for sure they are.

bad disco stu!



SVN revision: 53128
2010-10-07 00:04:19 +00:00
Mike Blumenkrantz 04662b3565 complete rewrite of all includes and file splitting to completely abstract dbus out of efm
SVN revision: 53051
2010-10-05 06:33:23 +00:00
Mike Blumenkrantz 29336de90d more function protos to typedefs, add E_Fm_Cb(void *data, Evas_Object *obj, E_Menu *m, E_Fm2_Icon_Info *info) for casting
SVN revision: 53044
2010-10-05 06:32:59 +00:00
Mike Blumenkrantz 97f27a269c switch lots of efm vars to bool bitfields
SVN revision: 53042
2010-10-05 06:32:51 +00:00
Lucas De Marchi 25113159a5 Fix common misspellings
Some misspellings were manually reverted since in E there are tons of .po with
phrases in other languages. Other than that all the changes in the following
files were reverted:

 * src/modules/illume/dicts/English_(US).dic
 * src/modules/illume-keyboard/dicts/English_(US).dic


Following misspellings were fixed:

acquited->acquitted
adres->address
adress->address
alreayd->already
aquire->acquire
arbitarily->arbitrarily
cant->can't
Capetown->Cape
carefull->careful
causalities->casualties
Celcius->Celsius
certian->certain
commandoes->commandos
considerd->considered
conveyer->conveyor
dependant->dependent
didnt->didn't
discontentment->discontent
doesnt->doesn't
everytime->every
exemple->example
existance->existence
existant->existent
existince->existence
Farenheit->Fahrenheit
forbad->forbade
funguses->fungi
guage->gauge
guerilla->guerrilla
guerillas->guerrillas
happend->happened
hasnt->hasn't
heros->heroes
inbetween->between
independant->independent
inital->initial
intrusted->entrusted
irregardless->regardless
isnt->isn't
knifes->knives
layed->laid
loosing->losing
marrage->marriage
midwifes->midwives
miniscule->minuscule
monickers->monikers
mroe->more
noone->no one
occured->occurred
omre->more
paralell->parallel
payed->paid
planed->planned
quitted->quit
quizes->quizzes
seperated->separated
seperate->separate
shoudl->should
similiar->similar
simplier->simpler
specifiying->specifying
teh->the
toke->took
torpedos->torpedoes
Tuscon->Tucson
unecessary->unnecessary
useage->usage
usefull->useful
useing->using
waht->what
wanna->want
whith->with
wich->which
withing->within




SVN revision: 52006
2010-09-08 23:59:07 +00:00
Miculcy Brian 586632efd1 allow to directly edit .desktop files
SVN revision: 51761
2010-08-30 17:54:18 +00:00
Lucas De Marchi 63f07459a0 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:

code before patch               ||code after patch
===============================================================

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

func(a == NULL);                  func(!a);

func(a != NULL);                  func(!!a);

b = a == NULL;                    b = !a;

b = a != NULL;                    b = !!a;

b = a == NULL ? c : d;            b = !a ? c : d;

b = a != NULL ? c : d;            b = a ? c : d;


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
Christopher Michael 4804fe3eb3 Add UNUSED.
SVN revision: 51346
2010-08-18 20:59:17 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

* Remove leading blank lines:
 find . -name '*.[cxh]' -exec sed -i '/./,$!d'

If you use vim, use this in your .vimrc:
set ts=8 sw=3 sts=8 expandtab cino=>5n-3f0^-2{2(0W1st0



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Lucas De Marchi d8dc2a9511 Remove unneeded code with notnull.cocci script
This continues previous commit with more complex places, where it required
more than just removing some "ifs".



SVN revision: 50242
2010-07-14 02:20:30 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Mike Blumenkrantz 492178f1b2 add header, fix compile warning when printing int64 (use PRIi64)
SVN revision: 49388
2010-06-02 03:23:49 +00:00
Hannes Janetzek 702218034b check strings not null
SVN revision: 49230
2010-05-27 12:45:41 +00:00
Carsten Haitzler 12c8a33b11 fix segv with removable devices!!!! decode forced strdup/free etc... but rest
of code assumed stringshare.



SVN revision: 48546
2010-05-02 12:05:56 +00:00
Chidambar Zinnoury 94fe8e9020 EFM: on [↑] or [↓] key, use the same distance function for "normal" view modes as for "custom" view modes so that selection doesn't get jumpy.
SVN revision: 48542
2010-05-02 07:03:32 +00:00
Gustavo Sverzut Barbieri 4cd34cc5e8 NEVER, EVER should modify the stringshared pointer.
That is why stringshare returns "const char*".

ZMike, pay attention to these cases. I know this one was particularly
nasty to spot since you receive the "const char *path", but later on
you request strrchr(path..) and receive "char *p", the cast is done
implicitly by libC to make all the case works (C++ version fixed this
recently, but in C there is no way).

The crash that lead me to investigate it was spot by Lucas De Marchi
at advanced wallpaper dialog, but actually other places that uses efm
should be equaly broken.



SVN revision: 48508
2010-05-01 16:02:03 +00:00
Mike Blumenkrantz 9d40d66091 step 3: migrate all function and variable names to generic dbus naming
SVN revision: 48488
2010-04-30 19:14:20 +00:00
Mike Blumenkrantz 5c598d1a78 beginnings of the ukit migration. this time, in many many many small commits along the way to avoid breaking things! :)
step 1: migrate *hal* files to *dbus* files


SVN revision: 48463
2010-04-30 08:38:08 +00:00
Mike Blumenkrantz a6c5618f69 finish char* to const char* conversion
SVN revision: 48461
2010-04-30 08:17:53 +00:00
Mike Blumenkrantz 5aa48ed402 fix more broken stringshare stuff from ehal memory migration, including incredible lines such as
char *udi = eina_stringshare_del(udi);
my bad, I really fudged the bucket on this one guys.


SVN revision: 48416
2010-04-29 10:17:41 +00:00
Mike Blumenkrantz 97da075d67 ukit integration taking way longer than expected, so I'm fixing all the stringshares now. should be safe to use. hooray.
SVN revision: 48414
2010-04-29 08:58:38 +00:00
Carsten Haitzler aadcae0b20 be lenient on uri';s allow boring full paths.
SVN revision: 48380
2010-04-28 03:30:48 +00:00
Sebastian Dransfeld 02b6e4db39 Ecore_Str.h -> Eina
SVN revision: 45740
2010-01-30 22:11:11 +00:00
Sebastian Dransfeld c197d0c8a0 Only do "selected" cb when single_click_delay is 0
If single_click_delay is activated, _e_fm2_mouse_1_handler will handle
"selected" cb

SVN revision: 45631
2010-01-27 19:33:53 +00:00
Cedric BAIL 2fab25c3bb * ecore: Move ecore_job inside ecore.
Patch from Albin "Lutin" Tonnerre <albin.tonnerre@gmail.com>.


SVN revision: 45570
2010-01-25 21:59:21 +00:00
Sebastian Dransfeld 1715880d6a inplace open should not care whether we use single click or not, this is handeled by click handler
SVN revision: 45434
2010-01-22 07:21:03 +00:00
Sebastian Dransfeld 5109c0f8ea oops
SVN revision: 45365
2010-01-20 21:15:07 +00:00
Sebastian Dransfeld db6819ae2a Results from gettext aren't static
SVN revision: 45362
2010-01-20 19:49:39 +00:00
Sebastian Dransfeld 1526c18cd5 Desktop is localized
SVN revision: 45345
2010-01-19 21:19:38 +00:00
Sebastian Dransfeld 1271fb625d Desktop is localized
SVN revision: 45343
2010-01-19 21:11:36 +00:00
Sebastian Dransfeld b7f399d159 make clang happy
SVN revision: 45153
2010-01-14 23:48:59 +00:00
Sebastian Dransfeld 44b1509345 Fix "selected" emit
Only emit "selected" on mouse up if we are in single click mode and no
modifiers is set.
Need to check for single_click first, so that inplace_open isn't called
on doubleclick.

Fixes ticket 375

SVN revision: 45130
2010-01-14 20:55:04 +00:00
Christopher Michael a245fb11cf e_utils - Use PATH_MAX, not 4096.
e_fm.c - An idler is not a timer. Use proper variable type. Formatting.



SVN revision: 44700
2009-12-23 21:29:36 +00:00
Carsten Haitzler 672d1de1e3 fix more void * arith!
SVN revision: 44560
2009-12-19 00:15:16 +00:00
Christopher Michael d246d2e257 Fix some formatting problems.
SVN revision: 43320
2009-10-27 21:50:21 +00:00
Hannes Janetzek f682217fba e_fm:
- show theme folder icons again
- remove mime fallback function.this is already handled by efreets mime fallback


SVN revision: 42473
2009-09-14 00:26:56 +00:00
Hannes Janetzek ab9c3d8468 e_fm: find theme defined mime icons
SVN revision: 42436
2009-09-12 11:22:58 +00:00
Hannes Janetzek 47415c096d return icon.list size if icon.icon size is not set
SVN revision: 42392
2009-09-10 21:02:09 +00:00
Hannes Janetzek df0d471509 - show edje thumbnails in wallpaper and themes dialog again.
- use 48px for fdo icons in flist
- #if 0 unused code


SVN revision: 42389
2009-09-10 20:48:52 +00:00
Gustavo Sverzut Barbieri 58925e0232 Update to match new EINA init/shutdown.
SVN revision: 42301
2009-09-06 22:23:04 +00:00
Christopher Michael 6ab63682dd Fix API Inconsistency in regards to e_widget_min_size_* . Renamed to
e_widget_size_min_* . This Large commit should fix everything in svn that is
using those functions.



SVN revision: 42152
2009-09-01 13:34:42 +00:00
Cedric BAIL f8c05999e4 * e: Cleanup use of Eina data structure.
Patch from Peter van de Werken <pwerken-e@a-eskwadraat.nl>.


SVN revision: 41916
2009-08-21 15:08:49 +00:00
semernin 5d24f7948e 1. New field in E_Fm2_Op_Registry_Entry named dialog, that hold pointer
to error, abort or overwrite dialogs.
2. Glyph in fileman_opinfo theme that show have or not operation linked
   filemanager window.
3. When click on operation on fileman_opinfo, then linked efm window
   raised or attention dialog if error exist.


SVN revision: 41229
2009-07-01 18:35:26 +00:00
semernin 2f76dd5d99 List of changes:
1. Gadcon sities:
      -- 'E_Gadcon_Site' enum to list all available sities,
      -- added 'is_site' callback for distinguish gadcon sities,
      -- 'e_gadcon_site_is_*' helpers written to use in gadget modules,
      -- gadcon config dialogs modified to show only gadgets that appropriate
         to selected gadcon site,
      -- all gadget modules updated for using new callback.
      
      When callback is not provided in module, then gadget can be used in 
      any gadcon site.
      
   2. Filemanager:
      -- added error icon to unexisting path dialog,
      -- added callback 'func.abort' to 'E_Fm2_Op_Registry_Entry' to specify
         abort operation sequence (if not provided, then operation is not
         cancelable),
      -- added parameter to 'e_fm2_op_registry_entry_add' to specify abort
         method on construct 'E_Fm2_Op_Registry_Entry' or make non-cancelable
         operation if this function is not provided,
      -- added 'e_fm2_operation_abort' call to cancel efm2 operation,
      -- added method '_e_fm2_operation_abort_internal' that represent efm2
         default handler of operation cancelling,
      -- 'done' and 'total' fields of 'E_Fm2_Op_Registry_Entry' changed to
         off_t type, also all message handlers modified to work with it
         (to show progress for large files correctly),
      -- improved file operation progress processing,
      -- added cancel button to operation progress gadget in filemanager window,
      -- added delete file glyph to operation progress gadget,
      -- improved status message for efm2 operation progress.

   3. Filemanager slave:
      -- fixed critical bug in message handling via stdin/stdout,
      -- fixed critical bug in removing task from list,
      -- improved 'E_FM_OP_ABORT' handling,
      -- fix rollback counting on moving files.

   4. Fileman_opinfo module:
      -- a new theme writed: status string and gadget for view operation status
         in summary and detail modes,
      -- summary mode: operation glyph, state message, progressbar, abort button,
      -- detail mode: all for summary + from filename, to filename,
      -- summary/detailed button works as trigger,
      -- added source of module theme and used images.
      
   4. Pathbar module:
      -- non-critical fix, just for safety.

   Also patch contains several minor updates to serve main task.


SVN revision: 41224
2009-06-29 14:38:03 +00:00
Gustavo Sverzut Barbieri 00aa72ef47 e_fm2: avoid invalid mouse-up.
Here's another patch I've made for efm2 to fix an issue that I've
often experienced using it (in Illume) with a touch-screen
device (Freerunner).  It often happens a very strange thing: I
try to finger-scroll a bottom icon (it must be on the latest row)
moving my thumb up, well... The the scroller doesn't scroll, but
wherever and whenever I release my finger, the selected icon is
executed!

I don't really know to what is this due (the touchscreen seems to
perform correctly by the way), but I've never been able to
replicate it using a mouse in my PC.

Anyway to fix this issue, that could be specific, I've used a
workaround that I think that could be applied for all: it
basically checks if the mouse has been released in the area where
the clicked icon is, before sending a "selected" callback.

It needs the previously attached
e_fm2-single-click-delay-support.patch to be applied correctly.

Going deeply into the real issue I've made some tests, and I got
that this seems mostly due to an evas issue (I figure), since the
e_fm2's scrollframe never sets the evas event flag to:
EVAS_EVENT_FLAG_ON_HOLD
(that would avoid the un-wanted click).
After some debugging there, I've also seen that in this very
particular buggy case the _e_smart_event_mouse_up() and
_e_smart_event_mouse_move() callback functions are never
called (so I figure that evas doesn't add the callbacks at all
for the scrollframe, while they are added in the e_fm2).

Let me know what you think about this... I thing that the Om
users would need a fix like this.

By: Marco Trevisan (Treviño)



SVN revision: 41129
2009-06-20 15:54:52 +00:00
Gustavo Sverzut Barbieri 5fb986a05b avoid unwanted clicks on touch-screen.
avoiding the un-wanted clicks with touch-screen devices (especially if
they aren't so precise); it basically allows to set a time delay to be
awaited (pressing over an icon) before sending a "selected" callback.

Thanks to this, it could be needed a longer pressure to select an item
in the file-manager; useful for embedded/touch-based systems.

By: Marco Trevisan (Treviño)



SVN revision: 41127
2009-06-20 15:49:54 +00:00
Gustavo Sverzut Barbieri 2af9f44b4f efm2 hal handling API - full changes.
1. Added E_FM_OP_EJECT command to e_fm_main. It unmounts volume
   before eject, if it necessary.
2. Added timeouts of mounting/unmounting/ejecting media, and
   it's moved to slave e_fm_main.c. Each timeout will generate
   *_MOUNT_ERROR, *_UNMOUNT_ERROR and *_EJECT_ERROR message.
3. Added auto mount on insert media and auto showing efm2 window
   on mount volume options to filemanager config.
4. Added mounted/unmounted glyphs to efm2 icons and track state
   code. Now each removable device have "M" glyph on icon if mounted
   and "U" when unmounted.
5. Added mount/unmount/eject commands to icon dropdown menu.
6. Russian translation of mew messages.
7. Other bugfixes and improvements for co-operation.

Now, efm2 contains all code to mount/umnount/eject removable media and
all code to provide corresponding user interface.
It can working independently from 'places' or co-operate with it.

By: Sergey Semernin



SVN revision: 40928
2009-06-07 00:00:41 +00:00
Gustavo Sverzut Barbieri 97de98a66e Make fallback to parent dir when no permissions.
Now, when "open dirs in place" is active and user haven't permission to
open dir, efm2 fallback to parent directory. Also other events (for ex.
delete)
on dirs opened in efm will cause go to it's parents in efm windows.

Patch to ticket #273.

By Sergey Semernin.



SVN revision: 40711
2009-05-17 21:30:15 +00:00
Carsten Haitzler 87842cb5e7 several patches from sergey etc.
SVN revision: 40668
2009-05-15 11:47:28 +00:00
Carsten Haitzler 4fa7de4c9c 1. fm rename in-place patch. ok for now - probably should fix it up later
2. config module fix



SVN revision: 40508
2009-05-05 14:27:28 +00:00
Iván Briano 9dde4b37b2 White spaces
SVN revision: 40240
2009-04-19 20:18:36 +00:00
Gustavo Sverzut Barbieri 9cc29ad360 fix bug when there is no file extension.
This was spotted by a segmentation faults on systems where sprintf()
don't handle NULL as "%s" (Solaris, BSDs), but it makes no sense to
lookup "*(null)" as extension on Linux either.

Reported by: mcalamell



SVN revision: 40120
2009-04-16 22:17:50 +00:00
Gustavo Sverzut Barbieri e0040cefb9 major cleanup of path creation to $DATADIR and $HOME/.e/e
This cleanup replaces snprintf() usage with specific calls, they have
the benefit of being cleaner (so easier to grep), typing less and also
marginal speed up compared to the other (specially concat_static),
although those are rarely used in critical paths.

I'm testing it for some time and seems to not break anything, but let
me know of any problem. If you can review the patch and try to spot
incorrect names, please do.




SVN revision: 40014
2009-04-13 14:56:38 +00:00
Gustavo Sverzut Barbieri 619ed37fed eina_stringshare_replace() gets in!
I was replicating this code in many places, it should go into eina itself.

It's the right way to change strings that you don't know are
stringshared before, since it will first add a reference and then
remove, making it impossible to have references to go 0 and string
being released before adding new references, fixing the following
possible problem:

   x = eina_stringshare_add("x");
   replace(x, x);

   then:
   incorrect_replace(const char **b, const char *a) {
      eina_stringshare_del(*b); /* reference gets to 0 */
      eina_stringshare_add(a); /* BUG!!! */
      *b = a;
   }




SVN revision: 39903
2009-04-08 18:25:02 +00:00
Davide Andreoli ffd353ac39 * E_Fwin:
Ctrl+w -> close the window
Ctrl+a -> select all



SVN revision: 39865
2009-04-05 00:26:31 +00:00
Viktor Kojouharov 3805af7fcc files can now be dragged over destination files (not just subdirs). In that case, the source file will be sent to the directory that houses the dest file. No more seggies
SVN revision: 39829
2009-04-01 17:03:09 +00:00
Viktor Kojouharov e33ba2d5f0 ctrl+n duplicates the current fwin
SVN revision: 39826
2009-04-01 08:28:21 +00:00
Davide Andreoli 0f1775c8e8 Attach the fm object pointer to the menu generated from the efm.
So you can read the fm object if you hook into the menu.



SVN revision: 39803
2009-03-30 14:31:54 +00:00
Davide Andreoli 1bfc6fd633 * Better dialogs (rename, overwrite etc) for efm
SVN revision: 39788
2009-03-29 01:24:11 +00:00
Davide Andreoli 44883d6cf0 * e_fm_op_registry : rename duration to eta
* e_fm_op : report sizes (done and total) now refer to the whole task, not the single file
 * e_fwin : better operation monitor label (and add a delay on delete)



SVN revision: 39787
2009-03-29 00:26:43 +00:00
Carsten Haitzler 2e36885899 nuke segv in fm and leaks in menus.
SVN revision: 39644
2009-03-23 09:36:11 +00:00
Gustavo Sverzut Barbieri 3a79d6a21e fix drag&drop of multiple files and reduce variables scopes.
SVN revision: 39568
2009-03-19 01:45:58 +00:00
Gustavo Sverzut Barbieri b382153c0f move loop invariant sprintf() outside loop.
SVN revision: 39567
2009-03-19 00:50:35 +00:00
Gustavo Sverzut Barbieri 9a882b5124 enjoy stringshare benefits.
SVN revision: 39566
2009-03-19 00:36:12 +00:00
Gustavo Sverzut Barbieri ae0aa2ed8b less noise/debug.
SVN revision: 39547
2009-03-18 14:00:45 +00:00
Gustavo Sverzut Barbieri 92cab40cda add filemanager operation registry.
This huge commit will add e_fm2_op_registry, a central place that will
store all on-going operations. You will find that it will report when
operations are added, remove and when they change, for example when
they change progress.

Please notice that the recommended way to present information is to
add listener to specific entries, as opposed to use
E_EVENT_FM_OP_REGISTRY_CHANGED since it will be called immediately and
you do not have to filter which entry is being changed.

Entries will be associated with the e_fm object that originated
it. With that one can get the Ecore_X_Window and request the window to
be raised from somewhere else (ie: gadman/gadget). If object is
deleted (ie: window is closed), the pointer will be made NULL and it
will be a "windowless operation".

TO DO (I need someone to do those):

  - e_fwin: windows should present on-going operations as an overlay,
    Dave Andreolli already started such work, it's just a matter of
    using the new infrastructure.

  - create a new gadget that present all on-going operations and maybe
    a history. It would be nice to show the e_fwin of if the entry is
    clicked, as well as a cancel button and a progress bar. See
    "places" module, make them similar.




SVN revision: 39541
2009-03-18 01:33:06 +00:00
Hannes Janetzek 43fbd47070 added: _e_fm2_icon_next_find function used in _e_fm2_icon_sel_prev/next and _e_fm2_typebuf_match
- _e_fm2_typebuf_match has the new argument 'next'; one can now go to the prev/next match with up/down keys while typebuffer is active 


SVN revision: 39534
2009-03-17 19:49:12 +00:00
Hannes Janetzek 5f212bd64c some efm work:
- up/down key navigation for grid mode
- fixed next/prev functions for custom grid
- use 'key' instead of keyname


SVN revision: 39514
2009-03-17 01:40:50 +00:00
Cedric BAIL 46e8efcd8c Let me introduce you to Ecore_Input. The idea is to share as much as possible event
between all ecore graphic engine to ease porting of application and reduce the amount of
specific code per engine. This patch does just that.
	All your application should continu to work has previously, if it's not the case
please report any new behaviour regarding mouse and keyboard.


SVN revision: 39505
2009-03-16 16:24:43 +00:00
Davide Andreoli eb2d1db1dc Icon rename finished. Now we have a fully compliant icon theme :)
now I'm going to fix E-MODULE-EXTRA...


SVN revision: 39495
2009-03-15 17:41:46 +00:00
Davide Andreoli 3d41cbb20d More icon works, this commit include changes to the icons on the desktop.
You will probably loose desktop icons until you get a fresh profile. Or you can edit the
.desktop files in .e/e/fileman/favorites (new icons name are: user-desktop, user-home, computer and user-temp)

Sorry for bothering... the next commit should be the last ;)



SVN revision: 39419
2009-03-08 23:09:48 +00:00
Davide Andreoli 3d669d1177 * Rename the new function:
e_util_menu_item_fdo_icon_set to e_util_menu_item_theme_icon_set
As it looks for icons in e theme AND in fdo icon themes.
* Use the new function everywere instead of e_util_menu_item_edje_icon_set,
that is now marked as DEPRECATED

You should not see any difference with this commit. With the next few commit I'm
going to rename all the icons in the theme following fdo standard. I will not change
any icons, just rename them to match fdo ones.



SVN revision: 39370
2009-03-04 20:46:05 +00:00
Gustavo Sverzut Barbieri 8e66ce8605 symlink icons back!
SVN revision: 39357
2009-03-04 03:25:40 +00:00
Gustavo Sverzut Barbieri cb629d5a56 More FDO icons work, now able to choose which one has precedence.
SVN revision: 39355
2009-03-04 02:56:27 +00:00
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