Commit Graph

4846 Commits

Author SHA1 Message Date
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
victor 324e84908c From: victor <victor.scorpion@gmail.com>
Hi guys.

Here is my solution for #113 ticket request. This allows to transfer a
gadget to different locations. In short,

- any module can register arbitrary number of locations by invoking
e_gadcon_location_register().
- module is responsible to provide 2 functions, one for removing
particular gadget and one to add particular gadget class.
- module responsible to equip its gadcon(s) with reference to registered
location. If a gadcon contains non-NULL location reference, each gadget
contained by this gadcon can have submenu on its context menu. Template
function for constructing such submenu is provided
e_gadcon_client_add_location_menu. Gadgets can be moved from and to this
location by invoking menu items. Gadcons with NULL location reference
can accept transferred gadgets by module logic but can't send contained
gadgets to another module.
- module responsible to unregister location when gadcon is no more
available.
- menu items for context submenu is sorted by E_GADCON_SITE_XXX assigned
to that. Module can assign and change an icon for context menu item
corresponding to its location(s).
- Currently only shelves and gadman (desktop) used in gadget transfer
operations. I believe it is no trouble to ivolve any other
gadcon-capable module into the process. If you want to have that, please
just let me know.

Here the patch in attachmet. It even works, at least sometimes and at
least for me. Hope you'll find it useful.



SVN revision: 42121
2009-08-31 11:23:03 +00:00
Iván Briano c8e998c551 Make it possible to disable the auto gdb backtrace.
SVN revision: 42093
2009-08-30 00:19:10 +00:00
Hannes Janetzek 1e8112a09e remember the borders' .desktop file after restart
SVN revision: 42067
2009-08-28 09:25:36 +00:00
Hannes Janetzek b3c2986d55 e_exec: wait for openoffice to come an grab its icon
SVN revision: 42066
2009-08-28 08:37:07 +00:00
Carsten Haitzler e020fbb290 illume2 - work, toolbart - short labels, ok
SVN revision: 42030
2009-08-27 09:26:13 +00:00
Christopher Michael 01ba9b9df5 Use simpler method for testing disabled state vs what we want it to be.
SVN revision: 41996
2009-08-25 23:06:40 +00:00
Christopher Michael c6f9667e4b Formatting.
SVN revision: 41995
2009-08-25 23:04:22 +00:00
Christopher Michael a616287b1a Formatting.
SVN revision: 41973
2009-08-25 11:49:46 +00:00
Christopher Michael b877f2af7a Patch from victor to fix removing modules via the "Set Contents" dialog.
SVN revision: 41966
2009-08-25 06:06:26 +00:00
Cedric BAIL 6051d5f3a6 * e_gadcon.c: Fix Gadcon unpopulate. Thanks to Sachiel.
SVN revision: 41950
2009-08-24 09:17:54 +00:00
Christopher Michael b851ab4fc9 Don't center window when changing modes as the user may have moved it.
SVN revision: 41933
2009-08-23 03:40:25 +00:00
Christopher Michael ad84ddfb3e Formatting.
Whitespace Removal.
Fetch the windows evas once instead of multiple calls to e_win_evas_get.
Use E_FREE to free the config dialog structure.
Make sure the window is centered when switching between Basic & Advanced.



SVN revision: 41931
2009-08-23 02:03:30 +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
Christopher Michael f562bba47f Formatting.
SVN revision: 41908
2009-08-21 06:05:35 +00:00
Christopher Michael 58d99d1c1a Ooops, remove printf
SVN revision: 41892
2009-08-20 17:49:01 +00:00
Christopher Michael 0025bcaafc Not sure why, but this didn't seem to commit...
formatting/whitespace. Use E_NEW & E_FREE


SVN revision: 41891
2009-08-20 17:43:24 +00:00
Christopher Michael e5f2239266 Formatting. Use E_NEW & E_FREE.
SVN revision: 41890
2009-08-20 16:57:59 +00:00
Hannes Janetzek c345e7c8c8 e17: do not show shape of argb popups
SVN revision: 41867
2009-08-19 01:41:37 +00:00
Carsten Haitzler 13ced8509f move eval into 2 stages - much better for the illumes of this world.
SVN revision: 41835
2009-08-17 07:54:02 +00:00
Carsten Haitzler d58712dd80 lets sync on focus - just in case.. butit doesn't seem to help :/
SVN revision: 41834
2009-08-17 07:52:59 +00:00
Carsten Haitzler 2bf799d4da and fix dropshadow flash too.
SVN revision: 41809
2009-08-16 05:08:40 +00:00
Carsten Haitzler 5f821ec54f fix redraw flashes for popus.
SVN revision: 41808
2009-08-16 05:05:59 +00:00
Gustavo Sverzut Barbieri 30c9bc06ad widgets must emit "changed" even if they don't have parents.
this unbreaks all dialogs that were not enabling "ok" and "apply"
buttons.

bad raster, bad... =)



SVN revision: 41797
2009-08-16 00:23:38 +00:00
victor 80c339d9b0 From: victor <victor.scorpion@gmail.com>
shelf resize patch.  tnx!



SVN revision: 41789
2009-08-15 11:54:35 +00:00
Carsten Haitzler 072f4b664f fix evas error debug where passing in null objects is bad.
SVN revision: 41788
2009-08-15 11:32:32 +00:00
Iván Briano 7e4367102e Avoid blank entries in the Files menu.
Patch by manio


SVN revision: 41731
2009-08-13 03:07:17 +00:00
Christopher Michael 435f9b1272 Fix up formatting a little.
Add function prototype.
Add __UNUSED__ to function & prototype.



SVN revision: 41713
2009-08-12 17:38:17 +00:00
Christopher Michael 162bac4cef Fix function prototypes by adding missing __UNUSED__. For some reason, the
__unused__ was in the function declaration itself, but not the prototype.



SVN revision: 41712
2009-08-12 16:49:59 +00:00
Christopher Michael d07e0e19a3 Revert Victor's Shelf content placement patch as some people are
experiencing problems with it...strange, worked here, but eh ;)



SVN revision: 41672
2009-08-10 18:34:07 +00:00
Christopher Michael 7dc51a07c9 Victor's <victor.scorpion@gmail.com> patch for
'Shelf content placement on screen resize fix'.

Tested here, no adverse effects.



SVN revision: 41637
2009-08-08 01:39:30 +00:00
Christopher Michael f40bb247d6 Bump copyright year as it's now 2009 :)
SVN revision: 41627
2009-08-06 23:37:34 +00:00
Gustavo Sverzut Barbieri 23d3ff38d9 Use new eina_list_search_sorted_near_list.
Match new api.

By: Tiago Rezende Campos Falcão



SVN revision: 41626
2009-08-06 22:35:45 +00:00
Christopher Michael b9a6167841 Remove useless variable and just use a direct object reference.
No need for _type_set to return an 'int' as we never check it anywhere, so
make the function return 'void'.


SVN revision: 41561
2009-08-02 21:10:52 +00:00
Christopher Michael 4371d3e9b8 Removed duplicated code. Use E_FREE to free pointer.
SVN revision: 41560
2009-08-02 20:44:04 +00:00
Christopher Michael c53fd6e204 Use E_NEW, E_FREE and EINA_LIST macros.
SVN revision: 41538
2009-07-29 19:31:41 +00:00
Christopher Michael 619fc7a98a Two patches from Peter van de Werken
- Hide eina_list internals by using eina macros
    - Cleanup some duplicate code

Patches slightly modified for formatting & whitespace removal.
Use eina_list internal macros in some places that were missed.



SVN revision: 41518
2009-07-28 01:33:08 +00:00
Gustavo Sverzut Barbieri f16d0a13ef fix bug with dialog resize.
This nasty bug was more evident with dialog reuse on configuration
Basic/Advanced toggle, on some resolutions like 1280x1024 it was
always reprodutible.

The problem spotted by Manio is that the dialog contents is resized
but the window is not. The bug follow is:

 * window is at some given size (640x512)
 * user toggles contents, calls e_dialog_show()
 * bg_object (window contents) is resized to MIN (!!!)
 * e_win_resize is called with MIN (so far, so good)
 * something calls e_util_win_auto_resize_fill(), size is back to 640x512
 * _e_border_eval() resizes to the last value 640x512, it's unchanged
   so _ecore_evas_x_resize() checks for size being the same and ignore,
   not even callking back fn_resize (user callback, _e_dialog_cb_resize).
 * window is at 640x512, while bg_object is at MIN, BUG!

One solution is to never change bg_object from outside
_e_dialog_cb_resize, like it's after this patch. The other is to
always call fn_resize even if it did not changed, which could lead to
lots of useless work.

By: manio
Confirmed: barbieri


SVN revision: 41515
2009-07-27 19:32:04 +00:00
Christopher Michael 33fe50ae6e Remove whitespace.
Use E_FREE for things created with E_NEW.
Add new function to clear the toolbar.
Add new function to return the number of the selected item.



SVN revision: 41501
2009-07-27 00:30:06 +00:00
Gustavo Sverzut Barbieri dd6ec8ed02 fix #217: enlightenment_start -profile <profile> blocks further profile changes.
We should just set E_CONF_PROFILE from command line option or e_config
startup if we did not had this set before. This is because
ecore_app_restart() will use the same parameters and profile will be
there yet.



SVN revision: 41500
2009-07-26 17:01:42 +00:00
Christopher Michael 5569d56971 Give the Send To Desktop submenu the same bg previews that the main menu has
for Virtual Desktops.


SVN revision: 41494
2009-07-25 04:59:35 +00:00
Christopher Michael dcdad3e57d Remove useless printf.
SVN revision: 41491
2009-07-24 18:31:05 +00:00
Christopher Michael c71049539c Formatting.
SVN revision: 41485
2009-07-24 01:56:00 +00:00
Christopher Michael f6b5cdb13c Cleanup the OBJECT_PARANOIA_CHECK issue wrt execinfo.h. Now we always
include execinfo.h



SVN revision: 41476
2009-07-22 19:38:14 +00:00
Christopher Michael 4de27170c4 Use E_NEW and E_FREE for creating & deleting E_Theme_Result.
SVN revision: 41455
2009-07-20 14:47:40 +00:00
Christopher Michael e31f28d677 Since we are not using the returned pointer from eina_hash_find here, we can
remove the variable as eina_hash_find will return NULL is nothing is found.


SVN revision: 41444
2009-07-20 01:58:43 +00:00
Christopher Michael 230b89e8da Formatting & Whitespace Removal
SVN revision: 41443
2009-07-19 20:30:33 +00:00
Christopher Michael b0a07a8ac6 Use E_FREE for things created with E_NEW.
Formatting & Whitespace Removal


SVN revision: 41442
2009-07-19 20:26:10 +00:00
Christopher Michael 0df3f4e2d9 Formatting & Whitespace Removal
SVN revision: 41441
2009-07-19 20:16:49 +00:00
Christopher Michael e79f4205ea Add cast to char ** for wd->value to cleanup compiler warning.
SVN revision: 41440
2009-07-19 20:09:38 +00:00
Christopher Michael 94a3bcae16 Cleanup compiler warning on e_signals.c:
execinfo.h (which contains the backtrace* functions is only included
        if OBJECT_PARANOIA_CHECK is defined so add an #ifdef around those calls.


SVN revision: 41439
2009-07-19 20:08:38 +00:00
Christopher Michael ac691eb2d1 Don't need these includes here. They are already included via e.h
SVN revision: 41438
2009-07-19 19:59:39 +00:00
Christopher Michael a5051f30d9 Remove manual eina_shutdown call as it's now popped from E's shutdown stack.
SVN revision: 41431
2009-07-19 09:29:52 +00:00
Christopher Michael 9e0827a761 Formatting & Whitespace Cleanup (No Code Changes).
SVN revision: 41430
2009-07-19 09:13:39 +00:00
Christopher Michael 7b2158cfe6 Oops. Use exit(-1) instead of my tested _e_main_shutdown(-1). My Bad :(
SVN revision: 41429
2009-07-19 09:03:49 +00:00
Christopher Michael 69a0f8c84f Add missing eina_shutdown to E's main shutdown stack.
Fix formatting.
Remove Whitespace.



SVN revision: 41428
2009-07-19 08:59:20 +00:00
Christopher Michael 43e8b47bb3 Fix minor typo in comment. Nothing serious.
SVN revision: 41425
2009-07-19 02:24:12 +00:00
Christopher Michael 72f10aab04 Remove annoying printf. If you are using this to debug something, please use
#if 0 around it.


SVN revision: 41422
2009-07-18 21:10:27 +00:00
Carsten Haitzler cb99a78862 fix placement to actually respect overlay allow of shelves
SVN revision: 41376
2009-07-17 01:42:37 +00:00
Vincent Torri d5ca129dfc rename ECORE_EVAS_ENGINE_SOFTWARE_X11 to ECORE_EVAS_ENGINE_SOFTWARE_XLIB
SVN revision: 41331
2009-07-14 21:19:30 +00:00
Miculcy Brian 8e9a06ea44 no, we can't try to kill a window on request and then expect that it is killed and hide the border...
SVN revision: 41317
2009-07-13 00:24:15 +00:00
Gustavo Sverzut Barbieri e9942f09de e_config_dialog: reuse e_dialog on changes between basic and advanced.
This patch will reuse the same e_dialog and thus window while changing
contents between basic and advanced. The benefit, among many, is to
avoid titlebar flashing like hell when you click the toggle button.

By: manio


SVN revision: 41314
2009-07-12 00:24:11 +00:00
Gustavo Sverzut Barbieri 9da81cfce6 fix e_border handling of without_border flag.
Ooops! My last changes to introduce without_border broke things, often
unnoticed but it was in the way when we requested resize of existing
window, done in the patch to reuse the e_dialog while toggling between
basic<->advanced by manio.

Thanks manio for spotting and Sachiel for the time help debugging it.


SVN revision: 41313
2009-07-12 00:21:28 +00:00
Gustavo Sverzut Barbieri 117998f8f1 gadman: use one gadcon per zone.
Before gadman was using a single gadcon for all zones, that lead to
problems like popup menus being incorrectly placed.

The correct solution is to mimic shelves and have one gadcon per zone,
including the top layer.

By: manio



SVN revision: 41312
2009-07-11 20:46:55 +00:00
Gustavo Sverzut Barbieri f3c1679442 make it easy to run e under valgrind and debug crashes.
this should help us in near future:

  * -valgrind[=MODE], to run under valgrind and toggle interesting
     options as we often request users to give us valgrind logs but
     they're often running valgrind on wrong binaries and with wrong
     parameters. See enlightenment_start -help for more, but in sort:
     -valgrind=all should give us enough information.

  * -valgrind-log-file=path, so the log will not mix with lots of
     output we do.

  * debug: on crashes, always list traceback (execinfo/glibc
    functions) and check if gdb exists, if so ask it to print out
    traceback of all threads to stdout. gdb will be detached as soon
    as messages were printed and everything should work without gdb as
    well.



SVN revision: 41309
2009-07-11 16:27:37 +00:00
Hannes Janetzek 315133303e e17 exehist: do not add file params to exhist
SVN revision: 41268
2009-07-07 17:38:42 +00:00
Carsten Haitzler 00819897b6 wallpaper2 - select wallpaper that is used on start
version config - literally keep the last 9 config revisions (10 including the
current) and if config gets corrupted...it auto-falls back to the last good
one.



SVN revision: 41252
2009-07-06 09:43:58 +00:00
Christopher Michael 584a95b6ad Fix comment spelling.
SVN revision: 41250
2009-07-04 19:15:34 +00:00
Christopher Michael c37b22a39f Fix ticket #343 (autoscroll and resizable not being set after restart).
Formatting.
Whitespace Removal.
Variable cleanup.
Add missing 'static' declaration on private function.
Move EAPI functions to be together in the source before local functions.



SVN revision: 41246
2009-07-04 01:44:34 +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
Cedric BAIL b4c393ccea * e: Remove not correctly initialized warning.
SVN revision: 41225
2009-06-30 09:27:03 +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
Davide Andreoli 6efe302d22 * Also load icons from a given full path, not only by the theme-name.
This fix some (not showed) icons, expecially with the configmenu module.

SVN revision: 41177
2009-06-23 20:52:04 +00:00
Gustavo Sverzut Barbieri 413729a142 get zone from gadcon.
The old code that query the zone based on x,y was causing me
segfaults. When battery module was in a hidden shelf, the position was
outside any zone and then segmentation fault.

As far as I understand, gcc->gadcon->zone should always exist and
always be correct, but I don't have xinerama setup now to confirm
that.

If you know this is wrong, let me know!



SVN revision: 41147
2009-06-21 21:18:44 +00:00
Gustavo Sverzut Barbieri c00f5c9b06 Let's at least check for NULL pointer.
SVN revision: 41145
2009-06-21 21:14:49 +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
Cedric BAIL c82f19e052 * e: Remove all reference to Evas_Data and move to Eina_Bool.
SVN revision: 41080
2009-06-17 13:46:54 +00:00
Gustavo Sverzut Barbieri be4f4af8a9 Do not evaluate deleted borders.
This bug was showing when fast toggling between advanced<->basic in
config dialogs.

Note, however, that there are a remaining alien bug with fast
toggling. It's aborting due adding evas object as member of another
from other canvas, which is not allowed. I tried to debug it and it's
REALLY weird, the advanced or basic create_widgets() are being called
twice, from inside the same function, like if the create_widgets() was
calling itself, but the code do not do that, I traced some that would
happen from e_widget_button_add()!!! Like if we had threads of were
being preempted from nowhere, really strange... seems like a stack
corruption :-(


SVN revision: 41038
2009-06-15 01:33:41 +00:00
Gustavo Sverzut Barbieri 2406757ec9 fix annoying bug with config dialog window layout.
as spotted by manio, toggling between "Basic" and "Advanced" mode was
making the window move (just open Theme dialog and toggle).

Manio suggested a fix by keeping window center between both modes, but
I think that given our top-left to bottom-right reading (LTR) we
better keep the title bar (x,y) intact and avoid full rescan. This can
be weird in small screens where the dialog will not be centered
anymore and that will show easily, but on regular screens this should
not be an issue.

Also spotted that it was wrong when trying to avoid window overflow
(using x instead of y).

PS: I wonder why we destroy and create the window all over again! This
is really annoying, title bar will show the focus animation and you
get lost (need to rescan it again).




SVN revision: 41004
2009-06-10 22:53:00 +00:00
Gustavo Sverzut Barbieri f6af66808f do not segv on executables that return non-zero.
if an executable returns non-zero a dialog will be present with
information, if it was a .desktop file, then it would use the "Name"
field to name the log and all.

However, the .desktop reference was deleted and the dialog would use a
bogus pointer. Now we take a reference insidethe dialog and just
release it on dialog deletion.

Found by manio, fix by me.



SVN revision: 40987
2009-06-09 16:45:59 +00:00
Gustavo Sverzut Barbieri b5d5b3378c do not segfault on empty filename to escape.
Avoid case where e_exec (and possible others) gives
e_util_filename_escape() a NULL parameter, actually another bug, but
does not hurt to safe guard this one.

By: manio



SVN revision: 40979
2009-06-09 10:25:25 +00:00
Gustavo Sverzut Barbieri 537a6e62ca use auto-resize instead of fixed dialog size.
this will help with dialogs in languages with larger labels/text.



SVN revision: 40975
2009-06-08 17:40:46 +00:00
Miculcy Brian d66efb7a84 fix typo
SVN revision: 40957
2009-06-07 22:07:05 +00:00
Gustavo Sverzut Barbieri 310ce61a7e resize first, show last.
This was showing on languages with larger strings, like french.

By: Vincent François.


SVN revision: 40956
2009-06-07 21:25:34 +00:00
Viktor Kojouharov c1dd656e64 remove all traces of the resize callback function. it iss not needed anymore
SVN revision: 40940
2009-06-07 08:56:16 +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 987192c54d fix bugs of gadgets using incorrect zones.
I found strange behavior in my configuration (xinerama - two screens
with two zones). When i select a Enlightenment->Restart from menu the
popups for gadgets on desktop doesn't appear or appear wrongly. After
some time i've found that this depends on on from what screen i am
choosing this enlightenment->restart :)

After some debugging i figured it out:

When restarting enlightenment some gadgets (i.e. calendar) are calling
e_gadgon_popup_new(). Inside that function, zone for popup window
(this zone was used later in ecore_evas_move_resize) is calculated
like that:

{{{
zone = e_util_zone_current_get(e_manager_current_get());
and in e_manager_current_get is: ecore_x_pointer_xy_get()
}}}

... so - i have my answer why restaring from one screen (cursor was on
that screen) and from second screen i have different results...

In other words: during initializing module like calendar - created
zone for popup is assigned depending on current cursor position.

In my patch i've chage this to obtain zone using the gadget position
instead.  But it solves the problem partialy.

Next thing - in function:

e_gadget_popup_show() (which is called later) when calculating popup
position coordinates was calculated using zone:

{{{
pop->gcc->gadcon->zone
}}}

which in my case was always the first (initial) zone - (of course it
was wrong, because i put a gadgets on different screens for testing).
so i changed it to zone of popup window (which was calculated before,
in e_gadgon_popup_new()) and after that everythings works ok :) Zones
for popups are correctly assigned and popups calculation are also ok -
even after restaring enlightenment (tested with cursor on both
screens).

By: manio



SVN revision: 40927
2009-06-06 23:40:58 +00:00
Gustavo Sverzut Barbieri 128126a732 fix typo that would use the incorrect window border icon.
SVN revision: 40906
2009-06-05 18:50:05 +00:00
Viktor Kojouharov 293b3d41dd e_gadcon_popup now responds to changes in the content's size hint changes, and resizes itself accordingly.
with this, the resize func will no longer be needed, if users of the popup set the size_min hint of the content of the popup.


SVN revision: 40864
2009-05-31 15:48:26 +00:00
Christopher Michael 15bfce009e Use E_FREE for _xdnd, created with E_NEW.
SVN revision: 40836
2009-05-26 16:02:49 +00:00
Christopher Michael 7c78ec900e Formatting. Add missing void in function declaration.
SVN revision: 40835
2009-05-26 14:44:19 +00:00
Viktor Kojouharov 0c1f13b9c3 do full size calc when the content is set, not when it is shown
SVN revision: 40813
2009-05-24 10:02:56 +00:00
Gustavo Sverzut Barbieri 804f59e6e5 fix problem with e_gadcon_provider_register() being called from e_modapi_init().
if e_modapi_init() called e_gadcon_provider_register() the module
gc_init() would be called immediately, becore e_modapi_init() finished
and thus mod->data was unset (it's set by E when that function
returns).

most modules did not show this problem since they keep lots of globals
around and use them, but not mixer module. Mixer module did check for
global mixer_mod to be set and also mixer_mod->data, thus exposed this
problem, with "mixer is not able to show on desktop/gadget" but did in
shelves, since it would refuse to load immediately but would be loaded
later at e_shelf_config_new()->e_gadcon_populate().

Now gadcons are populated from an idler, avoiding all these problems
and probably will impact user's perceived load time since it will do
less work before getting to main loop and being able to process
events.


SVN revision: 40714
2009-05-17 23:43:02 +00:00
Gustavo Sverzut Barbieri f583aca207 fix xinerama monitor sorting.
xinerama monitor sorting should consider position and not just size.

Patch by manio, modified to handle y axis as well.



SVN revision: 40712
2009-05-17 21:35:01 +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
Christopher Michael d3573bb3da Remove unneeded variables.
SVN revision: 40706
2009-05-17 16:01:41 +00:00
Christopher Michael e56d841f6a Remove need for extra variables. Use E_NEW & E_FREE.
Cleanup Formatting. Remove Whitespace.


SVN revision: 40682
2009-05-15 19:53:25 +00:00
Christopher Michael 898b6f3cae Fix typo, Thanks Viktor :)
SVN revision: 40681
2009-05-15 18:25:55 +00:00
Christopher Michael 6fd36aa8b4 use E_NEW & E_FREE macros
SVN revision: 40680
2009-05-15 18:11:41 +00:00
Christopher Michael 3f11b601c6 Remove some unneeded variables. Formatting & Whitespace removal.
SVN revision: 40679
2009-05-15 17:59:02 +00:00
Carsten Haitzler 87842cb5e7 several patches from sergey etc.
SVN revision: 40668
2009-05-15 11:47:28 +00:00
Carsten Haitzler 3036531147 mount by label first - more useful in real life
SVN revision: 40566
2009-05-09 10:26:12 +00:00
Viktor Kojouharov 648d75caab Larger backgrounds can now be set to scroll whenever a E changes between desks. Kind of like a transition, but uses only one (the first desk's), larger wallpaper instead of several wallpapers for all desks, and it overrides the transition settings if activated.
The option can currently be activated from Virtual Desktops Settings -> Advanced. A better home and preview would be better for these settings.

In more detail, this option can make a wallpaper, larger than the geometry of the zone, scroll appropriately with each desk change. Consider a nice panorama picture, which is as wide as the total desks' width. Then, at most, E will scroll the background by 1 / (number of desks) for each desk change. The direction of the scrolling is dependent on the desk change itself. Also, the user can specify a coefficient of maximum scrolling for each axis. If the coefficient is 0, the wallpaper will not move.

More advanced animations can be constructed with edje. The data item "directional_freedom" "(1|0) (1|0)" can toggle the actual wallpaper scrolling done by E for each axis. A message with the current x/y position, panning w|h, and zone w|h is sent to the background edje with each desk change animation tick. An example embryo script that handles the message, and changes a hypothetical "a1" part in the "e/desktop/background" group is shown below:

         public message(Msg_Type:type, id, ...) {
            if (type == MSG_INT_SET) {
               new x = getarg(2);
               new y = getarg(3);
  //	     new max_x = getarg(4);
  //	     new max_y = getarg(5);
  //	     new w = getarg(6);
  //	     new h = getarg(7);
               custom_state(PART:"a1", "default", 0.0);
               set_state_val(PART:"a1", STATE_FILL_POS, 0.0, 0.0, -x / 4, -y / 4);
               set_state(PART:"a1", "custom", 0.0);
            }
         }




SVN revision: 40543
2009-05-07 18:39:55 +00:00
Gustavo Sverzut Barbieri 080c0be517 minor improvements to dialogs asking to enter presentation mode.
SVN revision: 40521
2009-05-06 12:00:19 +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
Massimo Maiurana 586ef62d8d another little typo to fix
SVN revision: 40461
2009-04-29 15:39:00 +00:00
Massimo Maiurana 153904f98d fixed a little typo
SVN revision: 40460
2009-04-29 15:36:12 +00:00
Viktor Kojouharov d9f453e443 improvements to the tabbed e_fwin. changing tabs will not cause a reload, since each tab holds its own fm object.
ctrl+w will close the current tab. if there are no more tabs, the window will be closed


SVN revision: 40447
2009-04-28 17:38:09 +00:00
Massimiliano Calamelli 5f4f968653 Added #define _POSIX_HOST_NAME_MAX for OSes that don't know it (NetBSD in detail)
SVN revision: 40445
2009-04-28 15:50:32 +00:00
Christopher Michael 022e23f4cb Formatting & Whitespace removal
SVN revision: 40417
2009-04-27 15:42:43 +00:00
Gustavo Sverzut Barbieri ddd175a2f2 Ask to enter presentation mode.
If you deactivate screensaver (ie: move mouse) or unlock desklock
within some given threshold, ask user if he would like to enter
presentation mode or even if should increase timeout to next event.

This is also useful when at the office and you quickly move mouse in
order to keep your explanation. If you know your explanation is short,
just hit "increase timeout", otherwise "Yes" to increase timeout.

Increase timeout is a multiplier that will increment the factor on
each dialog answer.

There is an option to stop asking. This can be changed in "Advanced"
versions of screensaver and desklock dialogs.



SVN revision: 40414
2009-04-27 02:54:43 +00:00
Gustavo Sverzut Barbieri f7b1ad0f9b Option to enable desklock after screensaver timeout.
This option will make it possible to lock the screen after some
seconds screensaver started.

It is useful in cases you want a short screensaver and uses screenlock
but often need to unlock it quickly (ie: was talking to someone at the
office, screensaver starts and you would like to quickly avoid
desklock, otherwise need to stop talking, unlock and continue).



SVN revision: 40413
2009-04-27 02:49:50 +00:00
Gustavo Sverzut Barbieri b045f6a244 fix typo.
SVN revision: 40388
2009-04-25 22:12:13 +00:00
Gustavo Sverzut Barbieri 04b88fea5f actions to toggle new modes.
SVN revision: 40385
2009-04-25 20:54:12 +00:00
Gustavo Sverzut Barbieri 7120b06df7 proper alignment when there is non-autohide shelves.
SVN revision: 40384
2009-04-25 18:49:39 +00:00
Gustavo Sverzut Barbieri 8f923e67c1 new special case for desklock wallpaper.
desklock now can use the same wallpaper as desktop, this is what I use
and was annoyed to have to remember to change in both places.


SVN revision: 40383
2009-04-25 18:32:34 +00:00
Gustavo Sverzut Barbieri d2be2c99a7 dpms, screensaver and desklock now respect "presentation" mode.
Wow, no need to go to "Settings" and then 3 dialogs to do my presentations!


SVN revision: 40381
2009-04-25 16:49:53 +00:00
Gustavo Sverzut Barbieri 3cbfbd69d9 add "modes" configuration, now "presentation" and "offline".
They are presented as a submenu with check items. Need to implement
support in modules, so they'll check for these variables.

DESIGNERS: could you please provide the following icons:

   * preferences-modes: contain the other icons

   * preferences-modes-presentation: system is in presentation mode,
     no screensaver, locks and dpms will be available.

   * preferences-modes-offline: system is offline, modules that keep
     polling internet services (weather, forecasts, ...) should stop
     and show "I'm offline" emblem. When network systems (network
     manager, connman, exhalt...) are integrated, they will change
     this state as well.



SVN revision: 40375
2009-04-25 16:07:45 +00:00
Chidambar Zinnoury 60244fba6c Try to use FDO icons as some modules (screensaver, for instance) use them.
SVN revision: 40363
2009-04-25 08:03:53 +00:00
Gustavo Sverzut Barbieri be6a6ba639 improvements to e_border positioning.
* e_border_center() will center window in a better way, accounting
   the shelves/panels instead of just centering on the screen. This is
   better and most noticeable if screens are small and a big shelf on
   just one edge.

 * e_border_move_without_border(), e_border_resize_without_border()
   and e_border_move_resize_without_border() will assume the given
   values do not acount border/decorations (client_inset) and will do
   automatically. As stated in documentation, this is specially useful
   when it is a new client and thus have no decorations when it is
   positioned, when decorations are added window would be placed at
   wrong position. One can try this by adding efwin window overflowing
   the bottom-right corner, closing it and when reopen fileman would
   try to make it inside the screen, this would not work well with
   part of the window still being outside.

 * e_win_move(), e_win_resize() and e_win_move_resize() will now use
   new e_border functions.



SVN revision: 40307
2009-04-23 02:24:59 +00:00
Viktor Kojouharov 6ca152fef8 From: Viktor Kojouharov <vkojouharov@gmail.com>
This little patch adds 'tabs' to the fileman module window. The tabs are
implemented using the toolbar widget. Currently you can add tabs and
switch between them. The only problem right now is that when adding more
than two tabs, the toolbar/scrollbar area is moved off the canvas for
some reason, until the user resizes the window - raster though it might
be a problem with the toolbar widget itself, but he didn't see the
patch, so it might as well be something on my side.



SVN revision: 40306
2009-04-23 02:12:55 +00:00
Christopher Michael 0d71d18f12 Remove redundancy
SVN revision: 40294
2009-04-22 16:47:20 +00:00
Christopher Michael e6be301fed Formatting & whitespace removal.
SVN revision: 40291
2009-04-22 16:08:32 +00:00
Massimiliano Calamelli bdd744efc0 Syscon module
- allow to action buttons to be traslated when the language is changed

Settings panel
- fix compiler warnings
- allow categories and items to be translated when the language is changed
 


SVN revision: 40276
2009-04-21 20:45:38 +00:00
Christopher Michael 2206f3134c Formatting & Whitespace removal
SVN revision: 40273
2009-04-21 17:57:38 +00:00
Christopher Michael b530e3914a Formatting
SVN revision: 40272
2009-04-21 17:53:43 +00:00
Massimiliano Calamelli 9185371532 Fix compiler warnings about attribute warn_unused_result
SVN revision: 40264
2009-04-21 09:51:54 +00:00
Christopher Michael 7481612296 Formatting & whitespace removal
SVN revision: 40259
2009-04-21 02:07:06 +00:00
Christopher Michael 831356e1c9 Formatting
SVN revision: 40255
2009-04-20 21:37:45 +00:00
Gustavo Sverzut Barbieri 496d229e89 don't segfault, by lmunch
SVN revision: 40254
2009-04-20 20:57:02 +00:00
Christopher Michael 4bc2ca60b0 Put comment in correct place...just something I noticed while browsing.
SVN revision: 40250
2009-04-20 17:37:49 +00:00
Iván Briano 9dde4b37b2 White spaces
SVN revision: 40240
2009-04-19 20:18:36 +00:00
Gustavo Sverzut Barbieri c85b67c7c0 remove double-separator for non-resizable dialogs.
SVN revision: 40206
2009-04-19 06:32:28 +00:00
Gustavo Sverzut Barbieri 8b22937367 usability: sort menus, always keep same order.
maybe this is too much for a feature freeze phase, but this is
annoying for users, sometimes your menu looks one way, sometimes
another. Now it will always look the same, alphabetically ordered.

If it breaks anything before Monday revert!


SVN revision: 40205
2009-04-19 06:21:35 +00:00
Gustavo Sverzut Barbieri 3b733a2081 fix some problems with eina_hash usage.
SVN revision: 40204
2009-04-19 05:18:01 +00:00
Gustavo Sverzut Barbieri 69821ee547 proper cleanup on icon/edje failure.
SVN revision: 40201
2009-04-18 23:45:26 +00:00
Gustavo Sverzut Barbieri 84a4e7a5e5 ooops! my mistake with missing parenthesis around math!
SVN revision: 40200
2009-04-18 23:13:33 +00:00
Gustavo Sverzut Barbieri 855f5080af export function to get useful area of zone.
This should be used by other parts of e17, like window placement.


SVN revision: 40197
2009-04-18 21:44:21 +00:00
Gustavo Sverzut Barbieri 99eb6ec409 better way to calculate good window size.
Instead of blindly use 1/3 of zone, now it will account shelf sizes
and will try some proportions before giving up.



SVN revision: 40179
2009-04-18 18:16:02 +00:00
Gustavo Sverzut Barbieri a16a2e3d73 config modules now have better size.
it will now fit into 640x480 and also will look better since
horizontal size will be a bit bigger.



SVN revision: 40178
2009-04-18 18:14:03 +00:00
Gustavo Sverzut Barbieri 8638cc125a shelf style previews are now smaller
SVN revision: 40169
2009-04-18 14:03:31 +00:00
Carsten Haitzler 4ebb2f6385 -lm -- and printf--
SVN revision: 40168
2009-04-18 13:53:23 +00:00
Carsten Haitzler b592a9176f 1. fix thumb to not use preload thread - i spotted bugs. concurrency ones.
2. also write a sort id (harmless - doesnt affect anything). useful for...
sorting.




SVN revision: 40166
2009-04-18 13:52:24 +00:00
Gustavo Sverzut Barbieri ce2009b32b list of autohide-dependent widgets should not be global.
SVN revision: 40165
2009-04-18 13:47:29 +00:00
Gustavo Sverzut Barbieri c0365b4b2d shelf "shrink to contents" is not related to its size.
SVN revision: 40164
2009-04-18 13:43:05 +00:00
Gustavo Sverzut Barbieri 6c7e4540e2 shelf ignore mouse_out when going to children windows.
this solves an annoyance with systray: the bounce-on-mouse-over (mouse
over systray would make shelf hide, but after the animation starts the
shelf get mouse-in again and abort the hide, then starts again). But
it will introduce another annoyance: if systray open a menu and you
navigate to it, shelf will not get mouse-out event and thus will not
autohide.

I'm leaving this behavior as it is less annoying. I discussed a bit
with rasterman and solving this is not easy, we'd need to poll for
mouse position and query window tree, this would waste cpu and keep
timeout rate high, draining battery.



SVN revision: 40128
2009-04-17 04:56:54 +00:00
Gustavo Sverzut Barbieri 3aae39faec fix shelf autohide after changing its settings in advanced mode.
shelf should be hidden if it was recreated (restart == 1) and autohide
is set.



SVN revision: 40127
2009-04-17 03:15:27 +00:00
Gustavo Sverzut Barbieri b94960c645 fix shelf autohide on zone geometry changes.
when xrandr/xinerama changes zone (screen/output) geometry, the shelf
needs to update its hide_origin and also do hide animation if it was
hidden already.



SVN revision: 40126
2009-04-17 02:54:56 +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
Andreas Volz cf1e0172cf usability improvement
-> shrink and autohide widgets are only enabled if checks are set


SVN revision: 40117
2009-04-16 21:03:43 +00:00
Iván Briano e5478eb0e3 Don't leak.
SVN revision: 40100
2009-04-16 04:48:46 +00:00
Carsten Haitzler c5680c811c and handle premapped windows
SVN revision: 40075
2009-04-15 04:52:40 +00:00
Andreas Volz c72e584ebf theme enabled/disabled support for label widget
SVN revision: 40058
2009-04-14 21:18:16 +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
Vincent Torri 0e6ad24c60 remove useless subwindow code
SVN revision: 39975
2009-04-11 08:33:44 +00:00
Gustavo Sverzut Barbieri 886a0bca01 move batch directory creation to ecore_file.
as suggested by raster, this could be abstracted into ecore-file and
other applications could use it as well.



SVN revision: 39965
2009-04-11 07:10:12 +00:00
Carsten Haitzler 51eff88b13 allow for system startup .orders... not great - but simple.
SVN revision: 39963
2009-04-11 06:20:11 +00:00
Gustavo Sverzut Barbieri 689146ef39 Alternative version for those legacy systems without atfile-source
atfile source is posix 2008, but some legacy systems seems to not ship
with those, in that case use slower version.



SVN revision: 39958
2009-04-11 05:40:18 +00:00
Sergey Semernin 5c62d98898 From: Sergey Semernin <sergey.semernin@gmail.com>
In E_Dialog space key grabbed before than keydown event reach to entry widget
in E_Entry_Dialog.
Thus, I forced ungrab space key in e_entry_dialog_show constructor.
Moreover, I added escape key handling in _e_entry_cb_key_down callback.

I do not delete space key grub in E_Dialog, because, I think, it may be
usefull here, 
when we need selecting controls with space. Or not?




SVN revision: 39936
2009-04-10 14:21:36 +00:00
Vincent Torri 7506655ca9 ecore_x_window_del -> ecore_x_window_free
SVN revision: 39924
2009-04-10 09:57:57 +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
Christopher Michael 3836c7ba2b Remove erroneous widget_data_get call
SVN revision: 39902
2009-04-08 18:02:27 +00:00
Carsten Haitzler 9b244804e9 add a cmd-line opt to skip format test...
SVN revision: 39891
2009-04-08 08:30:13 +00:00
Daniel Kolesa d2975ac947 Make profiles working again. Thanks to Sachiel for the fix :)
SVN revision: 39889
2009-04-07 18:29:13 +00:00
Viktor Kojouharov 9a303630ae shorten some strings
SVN revision: 39886
2009-04-06 21:22:12 +00:00
Gustavo Sverzut Barbieri d68e3158cf minor speedups.
the e_main.c change might prove useful as it will minimize path
resolution a lot, something that is not that cheap, even more durin e
startup where disc is still spinning due other tasks
starting. HOWEVER, it might bring problems to those using pre
GLibC-2.4 (we're at 2.9 these days) and maybe people using Solaris or
BSD, let's see if they have any trouble.



SVN revision: 39880
2009-04-06 12:59:58 +00:00
Christopher Michael 9533dd4543 Formatting, Whitespace Removal, Remove useless return in one function,
Initialize variables to NULL.


SVN revision: 39872
2009-04-05 17:07:18 +00:00
Christopher Michael 794ef7748f Formatting
SVN revision: 39870
2009-04-05 16:58:49 +00:00
Carsten Haitzler cbe9342be3 for e_thumb.. use preload!
SVN revision: 39866
2009-04-05 03:49:16 +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
Christopher Michael 6d1cdc0e47 Remove silly return at end of function.
SVN revision: 39861
2009-04-04 19:40:00 +00:00
Carsten Haitzler 634485d2bc and properly hide windows that ask to be iconified on start!
SVN revision: 39853
2009-04-04 07:18:55 +00:00
Davide Andreoli 3553055573 Scale dialogs icons with e_scale
SVN revision: 39846
2009-04-03 22:05:18 +00:00
Gustavo Sverzut Barbieri 1532f064cb use scaled icon size.
SVN revision: 39843
2009-04-03 21:45:33 +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
Cedric BAIL c1363b97e3 * e_box: Prevent the reuse of a free memory adress.
SVN revision: 39821
2009-03-31 16:05:05 +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 f71eea73b2 * Add a new menu api call :
EAPI void
e_menu_item_disabled_set(E_Menu_Item *mi, int disable)

Setting the menu item 'disabled' will gray it out and will make it unselectable.



SVN revision: 39802
2009-03-30 13:59:56 +00:00
Davide Andreoli 95de5b13a2 * e_fm_operation_registry : Add a new api call: EAPI int e_fm2_op_registry_count(void)
* Add the new simple module fileman_opinfo

The module provide a gadget that show the efm operations in progress. It is just a button
with a dynamic label atm, a better interface to come...

To compile the module you need to add it to configure.ac and src/modules/Makefile.am ... I have those
files too much hacked atm to commit :P

k-s: can you commit the 2 files for me please? just add the new module.

Hope you like it
Dave



SVN revision: 39794
2009-03-29 15:33:26 +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
Davide Andreoli c6a575a15f another enlightenment/error icon reference (that icon never exists :/ )
SVN revision: 39785
2009-03-28 22:18:17 +00:00
Davide Andreoli 7e1d04f5d0 * Fix e_util_dialog_internal() icon
* Scale better the efm progress



SVN revision: 39784
2009-03-28 22:16:12 +00:00
Gustavo Sverzut Barbieri 2dde72e9f8 oops, missing free.
SVN revision: 39783
2009-03-28 21:40:33 +00:00
Gustavo Sverzut Barbieri 092f3e4974 turn off composite on segfault.
one of the most annoying problems while using bling is that when E
segfaults it will launch an alert window, but since composite manager
is using the same process/connection as e17, it will not die and e
will not compose as required, so you basically end with a black
screen.

this patch will forcely turn off manual redirection and you'll get the
white-screen-of-death, being able to restart e17.

future: if we really do composite in e18, then please handle this in a
better way.



SVN revision: 39741
2009-03-27 02:23:13 +00:00
Christopher Michael bf4237f22c Remove this because it's just silly.
SVN revision: 39722
2009-03-26 00:47:36 +00:00
Christopher Michael 1987894874 Fix some formatting (still a lot more to fix). Remove whitespace. Make
sure int variables are initialized to a value.


SVN revision: 39699
2009-03-24 21:11:03 +00:00
Christopher Michael 474463ef6c Add missing menu_realize for POP_DIRECTION_RIGHT.
SVN revision: 39698
2009-03-24 20:13:50 +00:00
Viktor Kojouharov 30b11d23c8 add a urgent show function on the gadcon level and use that
(p.s. it's a good idea to recompile any extra module that you might use)


SVN revision: 39686
2009-03-24 16:08:37 +00:00
Christopher Michael 0f501d7228 Remove useless variable in ecore_evas_resize callback. No reason to
fetch data if it's not going to be used.


SVN revision: 39660
2009-03-24 00:20:38 +00:00
Carsten Haitzler 834952304f ghost windows-- ?
SVN revision: 39655
2009-03-23 13:39:24 +00:00
Carsten Haitzler 7657cb3644 lost windows.. back!
SVN revision: 39652
2009-03-23 13:04:02 +00:00
Gustavo Sverzut Barbieri 3475cb81c5 eina macros in menu loops
SVN revision: 39651
2009-03-23 12:28:15 +00:00
Viktor Kojouharov fb323cef74 temporarily show the shelf on urgent windows (ibox)
SVN revision: 39649
2009-03-23 12:14:31 +00:00
Gustavo Sverzut Barbieri 811f193535 use safe version to free sub menus.
SVN revision: 39648
2009-03-23 11:46:14 +00:00
Carsten Haitzler bf37a93c2e more leak--!
SVN revision: 39646
2009-03-23 10:19:13 +00:00
Carsten Haitzler 2e36885899 nuke segv in fm and leaks in menus.
SVN revision: 39644
2009-03-23 09:36:11 +00:00
Carsten Haitzler a5de46f4c2 use new timer add func - for when u want the timer to be relative to the loop
tick time - not "now".



SVN revision: 39639
2009-03-23 02:14:10 +00:00
Viktor Kojouharov 6927a37b23 normalize away spurious percent arguments in the executable
SVN revision: 39608
2009-03-21 11:48:45 +00:00
Viktor Kojouharov d19e0ba2dc exehist exe normalization
SVN revision: 39602
2009-03-20 19:05:27 +00:00
Gustavo Sverzut Barbieri 377a9332df export api to be used in e_sys_action and other places.
use this call in order to check for existing on-going operations.



SVN revision: 39595
2009-03-20 00:57:57 +00:00
Cedric BAIL 74c6251db7 * e_actions: Use some eina macro.
SVN revision: 39591
2009-03-19 19:03:35 +00:00
Cedric BAIL 9865485664 * Ecore_Input: Make it generic.
SVN revision: 39577
2009-03-19 13:06:16 +00:00
Gustavo Sverzut Barbieri 51fe41f439 have all exits and restarts to use e_sys_action_do()
SVN revision: 39569
2009-03-19 02:08:09 +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 b34c8995b9 proper cleanup of drop_handlers.
SVN revision: 39565
2009-03-19 00:19:12 +00:00
Gustavo Sverzut Barbieri 00e98a4851 cleanup memory usage, add stringshare, fix bug.
* h->active_type was referring to xdnd->type, that could be freed
   already. Now it's a reference to that string.

 * strcmp() are now direct pointer comparison since strings are shared.

 * no more extra "types" allocated member, make it a variable array at
   the end of the structure.



SVN revision: 39564
2009-03-19 00:14:57 +00:00
Gustavo Sverzut Barbieri 375f695e8f constness
SVN revision: 39562
2009-03-18 23:39:03 +00:00
Gustavo Sverzut Barbieri 9429c53cf1 move loops to eina macros.
SVN revision: 39561
2009-03-18 23:34:29 +00:00
Cedric BAIL 1ef42062db * e_theme: Cleanup and use sorted list for faster looking.
SVN revision: 39551
2009-03-18 16:49:20 +00:00
Gustavo Sverzut Barbieri 15b8d85967 e_fm_op: fix simpe operations report.
SVN revision: 39549
2009-03-18 14:07:34 +00:00
Gustavo Sverzut Barbieri e636f913c5 e_fm_op: cleanup and fix memory leaks.
* reduce variable scope to avoid bugs.

 * add missing free(d)

 * move invariant snprintf() out of loop



SVN revision: 39548
2009-03-18 14:06:22 +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 4598a292ed use ECORE_EVENT_MODIFIER
SVN revision: 39538
2009-03-17 21:55:33 +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
Viktor Kojouharov 7626cc04eb sorted exehist
SVN revision: 39533
2009-03-17 19:39:14 +00:00
Cedric BAIL e6d3c12f76 e/keybinding: Some cleanup using more Eina feature.
SVN revision: 39527
2009-03-17 13:58:38 +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
Christopher Michael 590137f924 Fix up some formatting
SVN revision: 39499
2009-03-15 19:26:09 +00:00
Christopher Michael 30936df4a3 Fix "return with no value in function returning non-void"
SVN revision: 39498
2009-03-15 19:22:37 +00:00
Christopher Michael be28e1636b Formatting & Whitespace fixes. Also, don't segfault when removing menus.
SVN revision: 39497
2009-03-15 19:12:50 +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
Hannes Janetzek 2422e04b20 delete submenus of main menu afterwards. this fixes the issue with borders
not getting unreffed


SVN revision: 39494
2009-03-15 17:06:18 +00:00
Cedric BAIL c979b3f9d5 * e_widget_ilist_add now expect a stringshare.
SVN revision: 39447
2009-03-11 15:13:42 +00:00
Cedric BAIL 3c9f7d712c * e_ilist.c: Reduce list walk.
SVN revision: 39446
2009-03-11 15:12:33 +00:00
Cedric BAIL 72d23b4b0c * e_widget_ilist.c: Ok, this is a quick fix (disable queue for now). A better fix would
be to propagate the delete operation to e_ilist.c and mark the selected entry to be
	deleted and update code listing selected item to not return to be deleted item.

	NOTE: Is it really usefull ? Doesn't evas/edje delay the destruction of Evas_Object anyway ?



SVN revision: 39445
2009-03-11 13:16:01 +00:00
Viktor Kojouharov 4c31250530 this option is more suitable for all actions, not just the desk flip one
SVN revision: 39442
2009-03-10 21:34:41 +00:00
Cedric BAIL 8eef516595 * e_configure.c: Use EINA_LIST_FOREACH.
SVN revision: 39433
2009-03-10 16:19:02 +00:00
Cedric BAIL 65e6e035c0 * e_configure.c: White space removal and more indent.
SVN revision: 39432
2009-03-10 16:16:42 +00:00
Cedric BAIL 1117cb228d * e_configure.c: Fix indentation.
SVN revision: 39431
2009-03-10 16:14:24 +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
Viktor Kojouharov 4d1fea4705 add fullscreen state remember
SVN revision: 39414
2009-03-08 10:35:05 +00:00
Davide Andreoli 49fecd25b7 More icons renamed
SVN revision: 39400
2009-03-06 22:18:15 +00:00
Davide Andreoli dea8871acd Fix icon in dialogs
SVN revision: 39398
2009-03-06 19:30:29 +00:00
Davide Andreoli 1101c58d9f more icons renamed
SVN revision: 39396
2009-03-06 19:17:12 +00:00
Hannes Janetzek ee1a0e9220 remove redundant case from last commit
SVN revision: 39390
2009-03-06 08:32:57 +00:00
Hannes Janetzek 72b7a4bff1 shelf: fix autohide bug in last commit
SVN revision: 39389
2009-03-06 08:25:33 +00:00
Hannes Janetzek 2270cc87bd hide shelf also on mouse out triggered by deskflip
SVN revision: 39388
2009-03-06 07:48:27 +00:00
Hannes Janetzek 3966901163 shrink the shelf dialog a little
SVN revision: 39387
2009-03-06 02:07:51 +00:00
Hannes Janetzek 71458465fb shelf: fixed size of style selector, better fitting var name
SVN revision: 39386
2009-03-06 01:56:09 +00:00
Hannes Janetzek 640e4c6d55 shelf: small update to last commit
SVN revision: 39385
2009-03-06 00:33:49 +00:00
Hannes Janetzek e94484b0d1 refactored shelf autohide animation code
SVN revision: 39384
2009-03-05 23:49:01 +00:00
Davide Andreoli fc66fc7c73 More icon renamed, for more info look at default.edc (around line 22650). I'm keeping there a mapping between e old names and fdo ones.
SVN revision: 39374
2009-03-05 02:39:50 +00:00
Davide Andreoli 2904ca6d46 ICON: enlightenment/themes -> preferences-desktop-theme
SVN revision: 39373
2009-03-04 23:53:28 +00:00