Commit Graph

239 Commits

Author SHA1 Message Date
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
Gustavo Sverzut Barbieri 3475cb81c5 eina macros in menu loops
SVN revision: 39651
2009-03-23 12:28:15 +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
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 05402668aa e_menu: recursively delete children menus.
e_menu had this behaviour that submenus were not deleted
automatically, relying on the parent menu to hook to post_deactivate
and then delete them.

This was good because maybe you don't want to delete these children,
you might want to reuse them sometime.

But it ended that nobody was using this feature, and worse: most use
cases were failing to delete these children, causing memory leak.

This commit changes the default behaviour and thus remove all the
existing code that was replicating such work. If one want the old
behavior, just call e_menu_item_submenu_set(mi, NULL) and it will be
unbounded from the parent.

If you experience any problems with that, try adding some printf()
before _e_menu_free() and _e_menu_item_free() and print some relevant
information like m->category and m->header.title or mi->label in order
to figure out the problematic menu.



SVN revision: 38528
2009-01-10 07:02:32 +00:00
Cedric BAIL d068510da3 Remove warning generated when requesting data from hash without key.
SVN revision: 38347
2008-12-29 12:40:49 +00:00
Cedric BAIL 773d102291 This commit is huge. I did test it a lot on my computer, and it run fine here.
But is so big i fear i could have broken some piece of code. So report any wrong
behaviour to me (cedric on #edevelop).

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


SVN revision: 38185
2008-12-17 15:33:43 +00:00
Carsten Haitzler e9b740c27d use the loop_time - better synced anim timepoints and less overhead on
gettimeofday :)



SVN revision: 37393
2008-11-02 02:36:10 +00:00
Sebastian Dransfeld 6dc64c5559 Correct callback for eina_hash_foreach.
SVN revision: 37169
2008-10-26 20:48:44 +00:00
Cedric BAIL 1087de2397 Remove Evas list and replace them with Eina list.
No change for ->next and ->data access right now, as the patch is already
big enough.



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



SVN revision: 36679
2008-10-15 15:12:56 +00:00
Sebastian Dransfeld 2b6195add0 formatting
SVN revision: 35025
2008-07-08 03:50:16 +00:00
Hannes Janetzek befc9fdc78 patch to allow transparent themed menus - analog to e_popup
SVN revision: 34092
2008-03-22 17:59:52 +00:00
Christopher Michael f723e3499c Fix function protos & functions for recent Evas_Hash changes to remove
compiler warnings.
Fix some formatting in e_font.


SVN revision: 33719
2008-02-09 22:41:30 +00:00
Carsten Haitzler b70f5a0ecc e:
1. configure/build changes to allow cross-compiling painlessly
2. pager module namespace changes - this was still dirty afdter the namespace
cleanup, so clean it up
3. add a powersave subsystem - doesnt have an "automatic" way to turn on and
off right now, this i think is best provided by modules (that do things like
monitor acpi status's (eg close lid of laptop), AC power status etc. etc.
this allows e to nicely defer "power" expensive actions to avoid disk
spinups etc.
4. move to use the new ecore poller system  - discussed long ago as part of
power management/saving issues. now it exists
5. add a canvas idle flush call that helsp cope with the new shm greedy
software x11 engine stuff
6. use the new powersave subsystem where appropriate
7. fix non-zeroed/initted memory access in e_fm_main
8. fix mem leak for e menus
9. remove ipc handlers for changed/removed config values
10. use animaotr not timer for menu scrolls - then menu scrolls obey the fps
config
11. fix up timer/poll happienss of cursor idle stuff
12. remove avoid damage from popups for now - causing problems
13. change battery and temp readouts to b e shorter so they fit
14. pager can emit signals on focus change for mini-windows now
15. temperature module now uses a slave process and uses stdin/out to talk to
it and get output - this makes e smoother as in my expereicne i found getting
the temp on my laptop actually took like 200ms so e "hang" for 200ms while
reading the acpi files - so now the subprocess does it and just writesa back
to e when it gets it.

ecore:
1. add ecore_pollers. see the documentation on them in doxygen comments :)
2. fix timers to only go off when they have to - bug there that made e's
select time out a LOT more than it needed to. defensive coding hid the
problem. now fixed. e should be much more power friendly now.
3. formatting/niceness in ecore_exe stuff
4. some comments on comments with SIGIO ideas vs. select
5. add call to be able to add an idle enterer at the start of the list of
them, not just the end (as has been the default)
6. fix ecore_evas to support auto evas idler calls after 0.5 secs of idle in
all canvases - and to do it right
7. if argb destination - set the shape EVENT shape (to mask out events in
transparent regions much like shape does withotu translucency)
8. in ecore_x add support for the event shape

evas:
1. fix cache to work properly and not just always fill up (as it seemed to
like to think cahce useage dropped below 0 when it didnt and thus just
over-fill)
2. software x11 engine now ONLY uses shm segments - no ximages over the
socket. this ximage hack was there to avoid the 2 round trips involved in
setting up an shm image - now i mitigated that wih an shm image cache pool.
it keeps shm images around and repurposes them for new update regions if
appropriate. this means many fewer shm creates (about 1/100th the number) and
since we recycle the memory less 0 memory page filling by the kernel - in the
end, i recorded about a 10-20% speedup over the old software x11 engine.
simple tests i have seen up to 120% speedups. idle flush now does something -
it frees all the cached shm segments. it has a hard-coded limit of 4mb worth
of shm segments (or 32 segments - whichever comes first) to keep around. once
can never complain much about speedups methinks :). also evas will defer sync
until the NEXT frame is written - this means evas can calculate the next
frame of data while x dma's/copies the images to the screen at the same time
(if you hve a dual core or multi-cpu machnike or your xserver is able to use
DMA to copy image data to the screen/video ram then this should see a decent
speedup).


SVN revision: 33448
2008-01-11 07:33:57 +00:00
Sebastian Dransfeld f6dc1dc1cc Remove stale code.
Fix comments.


SVN revision: 29159
2007-03-25 22:45:00 +00:00
Sebastian Dransfeld 076fcd4be7 Formatting.
SVN revision: 27760
2007-01-03 16:53:48 +00:00
Sebastian Dransfeld 5c4c704dea #if 0 unused code.
SVN revision: 27598
2006-12-28 14:15:10 +00:00
Carsten Haitzler 7cdf9af46b metrics keynav patches in
SVN revision: 26416
2006-10-08 08:25:08 +00:00
Carsten Haitzler 7005802eb6 call deactivate if activate fails
SVN revision: 26411
2006-10-08 06:43:31 +00:00
Carsten Haitzler a19329ea92 set menu zone further up to avoid segv
SVN revision: 26410
2006-10-08 06:12:25 +00:00
Carsten Haitzler 04d99e3df8 main menu cleanups.
sys actions check error/status etc. logout implemented, and used. need to
have status for reboot/halt and for suspend and hibernate.


SVN revision: 25656
2006-09-09 07:00:14 +00:00
Carsten Haitzler 8c003ef92f patches from the world - fixes and todo's
SVN revision: 25578
2006-09-07 10:33:57 +00:00
David Walter Seikel 5a1799c941 Icons back in menus again.
SVN revision: 25401
2006-09-03 11:32:13 +00:00
David Walter Seikel fbd37bb027 More icon tweaking. I have started to simplify and rationalise this as
it was starting to get silly.  Searching the icon class in the wm theme
first, then searching fdo icon themes sometimes ends up with a less
specific icon.  Menus make life tricky, as things are deferred there,
but not enough to avoid delays.  Lots more tweaking to come, but this
commit should result in more icons on menus.


SVN revision: 25324
2006-09-02 04:20:10 +00:00
David Walter Seikel d3de4f4e95 Beginning to drag all the basic "show this icon for this app" code
together in one place to make it easy to keep it consistant.


SVN revision: 25273
2006-09-01 09:01:52 +00:00
rephorm 462bda0f22 another chunk
all group names prefaced by e/
its entirely possible i missed a few small places in this, so there may be some growing pains in the next day or two

also, spectrum content -> e.swallow.content


SVN revision: 25057
2006-08-23 03:39:02 +00:00
David Walter Seikel 7705dfc9b1 Added Drag'n'Drop from application menus to ibar and anything else that
can accept an E_App drop.


SVN revision: 25034
2006-08-22 08:38:24 +00:00
rephorm a5c71890d4 ****** MAJOR THEME REWORKING -- BREAKAGE *********
Almost every signal and required part name has changed. This means that ALL themes other than the default one are now broken. Sorry, but this had to happen.

I have a list of mappings from old to new at http://rephorm.com/files/dump/e_theme_map.txt

There will probably be a little more cleanup on this in the coming days. Then I'll write it all up in a nice theme spec.


SVN revision: 25033
2006-08-22 07:39:11 +00:00
Viktor Kojouharov d0751b3258 removed e_menu_item_icon_object_set as it could have never worked properly.
now, the menu icon can be set properly upon realization with the e_menu_item_realize_callback_set function. rewrote the clients menu to use the border icon, and be sorted like the winselector.


SVN revision: 25026
2006-08-21 20:03:09 +00:00
David Walter Seikel 3d29c9caf7 Actually display the FDO icons referenced from the FDO .desktop files.
Theme icons and .eaps are searched first.

Still needs some work and a lot of testing.  Also needs optimising,
which will come when I go over the caching code later.

Ibar and ibox modules read the .eap directly, so I need to convert them
seperately.

Next I'll spend some time with valgrind, things are leaking.


SVN revision: 24795
2006-08-16 09:37:14 +00:00
sebastid 9d81bc08ce Menu titles
SVN revision: 24507
2006-08-09 15:24:34 +00:00
sebastid a9df9076db Enough to keep track of active menu item.
SVN revision: 24506
2006-08-09 13:56:23 +00:00
sebastid 9d4a400dcc Keep track of active menu and active menu item.
SVN revision: 24505
2006-08-09 13:52:52 +00:00
Viktor Kojouharov b8706da78d function for adding evas objects as icons in the menus
SVN revision: 24281
2006-07-28 23:22:57 +00:00
sebastid 3efb09077b Remove unneeded function.
SVN revision: 24263
2006-07-28 10:56:21 +00:00
Carsten Haitzler 50063cad9c new thumbnailer system. works a bit more like epsilon - launches a
special-purpose executable and hands off workd to do via ipc (well the exe
connects back to e's ipc port actually but either way - same thing). it can
actually launch any numebr of thumbnailers - the default is 2, but this means
it can make full use of smp systems. i need to make this # of thumbnailers
configurable and add a config dialog for it. this does mean thew bg/theme
etc. dialogs pop up much faster as they dont load all the thumbs to start -
its farmed off and ipc tells us when they are ready (and if already generated
- thats pretty damn fast). :) anyway - now thumbnailing works reliably
(thoguh i think the queue handling isnt quite that good - well when it comes
to interacting with efm... but i'll check into that later. dont worry though
- it does actually generate all the thumbs - it just may be busy generating
ones you don't see while it catches up).


SVN revision: 23750
2006-07-08 09:18:04 +00:00
Carsten Haitzler 706c846e92 bug--
SVN revision: 23510
2006-06-20 13:10:08 +00:00
sebastid 179ea47d07 Fix name
SVN revision: 23296
2006-06-08 19:01:32 +00:00
Carsten Haitzler 2bc5d52739 illogict patches (minus a few that will break config despite fixing a typo)
SVN revision: 22405
2006-04-30 04:31:42 +00:00
Carsten Haitzler daccad473b more gadcon work... oooh getting close.
SVN revision: 20383
2006-02-10 12:21:22 +00:00
Carsten Haitzler b30f189e6f illogicit patches for:
>e_int_config_focus_missing_options.patch: adds refocus last focused window on
desktop switch and revert focus when hiding or closing a window options.
>e_menu_various.patch: (up-to-date) adds several things...
 - support KeyPad equivalent for keybindings (numbers as well as
 directions).
 - add [home] [end] support : will go to the first/last menu item
 - 0 will go to the last menu item instead of going to the 10th one.
 - corrected the bug when the first menu item was activated *twice* when
 creating a POP_DIRECTION_DOWN menu with keyboard <- passed a long time
 on this trying to figure why it was happening
 - do not activate an already active menu item
>e_int_border_menu_consistency.patch: do not show items that will ne be taken
into account anyway.


SVN revision: 20223
2006-02-03 06:16:25 +00:00
Carsten Haitzler 7ce12cd800 fangies work!
SVN revision: 19658
2006-01-08 16:38:01 +00:00
sebastid 792e1868df Clean warnings.
SVN revision: 19615
2006-01-07 17:38:13 +00:00
sebastid 6a638a7806 Fix EAPI warnings.
SVN revision: 19597
2006-01-07 10:39:46 +00:00
codewarrior d3c1a4a4a0 -Efm:
- cleanups
- patch from Jose for menus.
- patch from Mista for Open With and other misc.


SVN revision: 19581
2006-01-06 23:45:13 +00:00
Carsten Haitzler 78d729a57b make symbol hiding actually work - fix some bugs, fixme's adjust bugs and
TODO, add exe history and actually use it etc.


SVN revision: 19313
2005-12-27 17:16:58 +00:00
Carsten Haitzler d8c635f964 more stringshare work
SVN revision: 18816
2005-12-03 15:39:25 +00:00
Carsten Haitzler 9f9468645d 1. centralise canvas creation.
2. allow xrender to be (*hard-coded) chosen.


SVN revision: 17126
2005-10-03 07:36:23 +00:00
sebastid 880a2f20e8 IF_FREE -> E_FREE
SVN revision: 16573
2005-09-05 15:24:07 +00:00
Carsten Haitzler b7caf97fd3 auto scroll menu controls
SVN revision: 16266
2005-08-22 05:50:49 +00:00
Carsten Haitzler 744dfc58ff one way or the other i'm forced to add timestamps to events - i cant avoid it
anymore. sorry guys. really no way around it. :(


SVN revision: 15891
2005-07-25 09:55:47 +00:00
Carsten Haitzler da5943abc5 1. id3 album cover loader patches
2. i reduced list note memory usage by 20% - shoudl work better with malloc
as ti is now a power of 2 as well
3. optimised evas internals to make use of event freezes to make e17'sw menu
popups a LOT snappier
4. fixed using last member of list nodes - bad - shoudl use api as this is
private stuff really
5. added config profile stuff to e17  u can literally maintain multiple
config profiles and choose which one at any time etc.


SVN revision: 15864
2005-07-22 10:28:11 +00:00
Carsten Haitzler a6ec307a80 minimise cpu hape use if shape hasnt changed
SVN revision: 15542
2005-06-27 10:08:53 +00:00
Carsten Haitzler 91091f83e5 grabinput handling that allows winlist to pop up FROM the menu etc. hmm -
maybe i should have a stack of these too in grabinput that sends the input
back to the previous owner if its still there... and also actually send pings
around to clients every 10 seconds or so - if they dont respond, we have a
function that can do something - but right now it does nothing. shoudl mark
the window as "hung"


SVN revision: 15445
2005-06-20 08:56:54 +00:00
Carsten Haitzler c646581114 fix menu popups to behave mroe sanely with click-release-browse
SVN revision: 15363
2005-06-16 09:12:44 +00:00
Carsten Haitzler 5efe075ba2 speed things up a little more
SVN revision: 14961
2005-05-26 15:30:10 +00:00
Carsten Haitzler 18d40fac35 pagers, desktops and zones seem to work just fine on first start. though
"primary zone" is not known so it keeps querying the mouse - fix that and
only use the first zone when startng the first time.


SVN revision: 14866
2005-05-20 06:30:26 +00:00
Carsten Haitzler 242e7b4744 shorne's patch
SVN revision: 14861
2005-05-20 03:09:44 +00:00
Carsten Haitzler 20ad23ab6c fix remote type
start module actualyl has a semblance of working well... :)


SVN revision: 14835
2005-05-18 10:18:02 +00:00
Carsten Haitzler 039d7a57bf mark items to be broken out to ipc
fix menu fast mosue mvoe detection again
todo


SVN revision: 14724
2005-05-12 09:28:58 +00:00
Carsten Haitzler 1b6f59e253 properly virtualize ecore_evas setup
SVN revision: 14644
2005-05-07 13:50:38 +00:00
Carsten Haitzler 51e37d3be5 start on popup generic system... (menus coudl be popups - as would error
dialogs, resize/move indicators - maybe they should be ported - well not
menus - they are special, but definitely resize/move stuff)


SVN revision: 14630
2005-05-07 04:34:26 +00:00
Carsten Haitzler 46e410368f fix evas object warnings - and fix dropwshadow bug
SVN revision: 14618
2005-05-06 06:22:22 +00:00
Carsten Haitzler 1ff0a027ee allow mosue to pop down key activated menu
SVN revision: 14568
2005-05-03 08:29:26 +00:00
Carsten Haitzler c5fab74cbf a whole wad more bindings... i'll stop here. it's now a matter of slow, over
time, expansion of actions and systems to hook in.


SVN revision: 14512
2005-04-30 07:03:35 +00:00
Dan Sinclair 5d3d45ebc9 - Without this e would segv if I created a sticky window on a desktop other
then the first. Not sure if this is the correct fix or not, but it works.


SVN revision: 14429
2005-04-27 23:29:12 +00:00
Carsten Haitzler 31caefbbe8 fix a leak! :)
SVN revision: 14403
2005-04-27 08:28:34 +00:00
Carsten Haitzler 9015e17739 fix dropshadow bug
make e_theme stuff check contents of edje files for group requested, if not
there, fallback
fix shading of windows with shaped windows


SVN revision: 14307
2005-04-23 05:16:25 +00:00
Carsten Haitzler f0b0f6f614 add theme finder/class/category wrapper - handles finding theme files for
specific categories, and falling back if not found. it cant check specific
parts in edjes though - maybe i should add that? :)


SVN revision: 14278
2005-04-21 10:09:28 +00:00
sebastid 051790f17c Move windows between desks
SVN revision: 14274
2005-04-21 08:06:24 +00:00
sebastid 7379bc005c Call submenu_post_cb on deactivate
SVN revision: 14273
2005-04-21 07:45:39 +00:00
sebastid 0e445560db Add hooks to support submenus on the fly.
SVN revision: 14272
2005-04-21 07:19:49 +00:00
Carsten Haitzler 0939b44ff7 start of shaped client/border/menu support ... dropshaodw is SLOW with this.
SVN revision: 14173
2005-04-13 15:52:34 +00:00
Carsten Haitzler ce7f854ec7 optimise rednering.; e17 was over-drawing too much! this just about doubles
the speed of initial window/menu/dialog shows :)


SVN revision: 14042
2005-03-31 15:38:26 +00:00
tsauerbeck 28b6407d93 Edjes now use 'edj' as the filename extension
SVN revision: 13856
2005-03-22 19:31:01 +00:00
Carsten Haitzler 338e742693 font path centralised (just noticed it everywhere)
SVN revision: 13690
2005-03-11 11:05:52 +00:00
sebastid 6b50c58bfa Make sure loop ends.
SVN revision: 13395
2005-02-16 11:30:32 +00:00
sebastid 587530a216 We created the menu_items, so e_object_del() them.
Shutdown menu properly!


SVN revision: 13369
2005-02-15 11:49:24 +00:00
Carsten Haitzler 4f54c588e1 seb's patch...
SVN revision: 13222
2005-02-07 13:51:09 +00:00
rbdpngn b6c300dd69 Add type checking for the various E objects.
SVN revision: 13053
2005-01-22 06:58:34 +00:00
Carsten Haitzler bee332a2f4 and menus now work by zones...
SVN revision: 12900
2005-01-11 13:43:01 +00:00
Carsten Haitzler 75c635290d a temperature monitor module for acpi... it's simple... and really only
handles 1 temperature guage - but it's useful. fixed stuff in battery
modules, added config menus... ibar size change menu only works after a
restart for now.. need to fix that.


SVN revision: 12676
2005-01-02 02:39:44 +00:00
Carsten Haitzler 2d5aa1d0b7 fix some png's.. that seem to get screwed if loading into gimp. also move to
making some of the menu icons int he left click menu edjes... and emit
signals to them... play with it :)


SVN revision: 12575
2004-12-24 04:30:58 +00:00
Carsten Haitzler 1fa0714cfc clean up a lot of wranings.
SVN revision: 12564
2004-12-23 06:38:27 +00:00
handyande 4f7683b206 Set client list to fit better with rasters master plan, now client menu can be at any depth :)
demonstrated by putting a clone where it was origionally entered


SVN revision: 12549
2004-12-22 10:41:03 +00:00
Carsten Haitzler da12976d32 update to new extended event stuff
SVN revision: 12460
2004-12-14 03:32:25 +00:00
Carsten Haitzler 7562a08b5a fix up config code so i can do lists and structs etc.
SVN revision: 12357
2004-12-05 07:43:51 +00:00
Carsten Haitzler 5e2388c886 _ _ _ _ _____ ___
| | | | ___| | | |  ___| __ ___  ___ _______  ___   / _ \__   _____ _ __
| |_| |/ _ \ | | | |_ | '__/ _ \/ _ \_  / _ \/ __| | | | \ \ / / _ \ '__|
|  _  |  __/ | | |  _|| | |  __/  __// /  __/\__ \ | |_| |\ V /  __/ |
|_| |_|\___|_|_| |_|  |_|  \___|\___/___\___||___/  \___/  \_/ \___|_|


I put E17's wm code into cvs. Hell is freezing over. Duke Nukem Forever will
be out next week. Snowballls take up residence in Hell. The Fat Lady sings.
The End is nigh...

:)


SVN revision: 12247
2004-11-25 03:37:45 +00:00