Commit Graph

186 Commits

Author SHA1 Message Date
Carsten Haitzler 6a7c68a45b b attery has option fo forcing hal or internal (batget). config ui is still
too big.



SVN revision: 38873
2009-02-01 03:26:46 +00:00
Carsten Haitzler b273fe10db use settings insetad of configuration. shorter.
SVN revision: 37742
2008-11-22 08:42:54 +00:00
Carsten Haitzler e5bc1dbf29 and accoutn for starting at -1!
SVN revision: 37687
2008-11-17 04:10:07 +00:00
Carsten Haitzler d6c689e422 and use last_full if there...
SVN revision: 37686
2008-11-17 03:57:32 +00:00
Carsten Haitzler c646bbdc51 alert popup wrong - if time_left < 0 then its unknown and shouldnt be used.
SVN revision: 37685
2008-11-17 03:42:21 +00:00
Carsten Haitzler de764df2a8 and make alert behave better
SVN revision: 37648
2008-11-15 04:25:09 +00:00
Carsten Haitzler 60827e2c96 battery module now will use hal - if it finds it, for battery info. tested by
killing hald and seeing if fallback to batget works. :) at least if hal is
runing and already monitoring power/battery and polling - e will just flow
along with it. pre-hal batget still is there.



SVN revision: 37646
2008-11-15 03:42:19 +00:00
Christopher Michael 4a70730d4a Width & Height are not needed here either.
SVN revision: 37540
2008-11-08 05:48:47 +00:00
Davide Andreoli 45cbf72298 * Gadcon API 3 *BREAK*
Version 3 add the *client_class param to icon(),label(),id_new(), id_del() 
 and the *orient param to orient().

All the modules (with a gadcon_client) need to be fixed...just add the new params 

to follow the EXTRA modules update.

SVN revision: 37450
2008-11-04 03:57:45 +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
Chidambar Zinnoury 21b4c9ef1f Work on battery module:
- popup texts are set by the module, not the theme;
- remove resize func as it does nothing more than default.


SVN revision: 36808
2008-10-19 10:59:20 +00:00
toma a3c3d2c23f Icon work. HUGE revision of icons and their names. This breaks the icon theme API so you might need to revise some themes. It does however, simplify a whole lot of stuff. You'll notice a lot more icons in menus. This bigger changes will come with the new theme once it is done. The missing icon names are put in b_and_w theme for now so if you need them, look them up. Also a bit of base work for EFM and the border icons in there. Commented out till the old icons are merged in. Message me if anything is screwed up.
SVN revision: 36591
2008-10-12 06:04:26 +00:00
Carsten Haitzler 7e4396ae33 remvoe stray \
SVN revision: 36231
2008-09-25 01:38:15 +00:00
Carsten Haitzler b3fa7a32d0 and remove more fake calls.
SVN revision: 36230
2008-09-25 01:37:38 +00:00
Carsten Haitzler aa87227505 fix battery module sizing and handle netwm activate messages.
SVN revision: 34950
2008-06-30 08:48:29 +00:00
Sebastian Dransfeld 72dcd1c169 Remove unused variables.
SVN revision: 34862
2008-06-19 12:18:59 +00:00
Christopher Michael 3b07a36398 little formatting fix.
SVN revision: 34821
2008-06-14 06:18:30 +00:00
Christopher Michael fd52c28a4d Fix formatting.
SVN revision: 34457
2008-05-03 22:18:35 +00:00
Nicholas Hughart a90333bbf4 Fix an issue with the auto popup hiding.
Reenable popup after reconfiguring the battery module.


SVN revision: 34456
2008-05-03 21:49:37 +00:00
Christopher Michael 5e4b4b1d3c Fix formatting issues.
Remove Whitespace.
Use E_FREE to free the inst struct (Ensures to null the pointer).


SVN revision: 34455
2008-05-03 20:12:57 +00:00
Nicholas Hughart 6d14620446 Add alert popup to battery module. Was broken after batget changes. Popup is now themeable and also a bit less intrusive.
SVN revision: 34454
2008-05-03 19:51:49 +00:00
doursse 1dfffe770b returning 0 stops the delete event to be called in the screenlock module.
So we return 1.

Patch from sECuRE_


SVN revision: 34077
2008-03-22 08:04:12 +00:00
Carsten Haitzler 167bc53a57 batery module now playes with e's powersave api :)
SVN revision: 33989
2008-03-12 05:43:36 +00:00
Carsten Haitzler 17d1bbe1a8 use new exe flag to make children die! die! die! kill the children... KILL!
...

child processes that is.
:)


SVN revision: 33975
2008-03-10 06:45:05 +00:00
Carsten Haitzler 930f53e765 fix batget restart on shelf re-config so it displays right
SVN revision: 33972
2008-03-09 17:31:12 +00:00
Carsten Haitzler 3d34b587af use either the min size set or calculate - as needed.
SVN revision: 33932
2008-03-05 06:00:25 +00:00
Carsten Haitzler be433bba00 and dont del exe if its not there
SVN revision: 33916
2008-03-04 11:35:00 +00:00
Carsten Haitzler 40a179e870 start batget only if there is a battery gadget and restart per gadget (likely
only 1) so that they get updated on shelf change.


SVN revision: 33913
2008-03-04 10:35:30 +00:00
Carsten Haitzler 6c8d35abf0 let's just put all things that multiply that could possibly be big numbers be
long long to avoid overflows. :)


SVN revision: 33911
2008-03-04 03:35:03 +00:00
Carsten Haitzler 55b40f3d3b seems to be behaving now.
SVN revision: 33906
2008-03-03 14:35:26 +00:00
Carsten Haitzler 16b851a43c move battery fetching/polling of info to its own sub process, pipe of stdout
to read like tempget. this means e cant hang hen polling - much better for
the mainloop. also clean up the code a lot. all battery specific "driver"
code is now in batget - this means it much nicer to later add hal battery
info fetching as that is also a remote service (and just not execute batget).
i also fixed up (in theory) the new 2.6.24+ /sys/class/power_supply parsing
to i think work better in more situations. i'm testing on a device i have
that does it - let me know if its wrong...


SVN revision: 33903
2008-03-03 09:48:37 +00:00
Carsten Haitzler 497281afaa fix sys battery reader to support lowercase bats too...
some other bugs and fixes


SVN revision: 33849
2008-02-26 09:47:51 +00:00
Nicholas Hughart e6acbda91b Add support for the new sysfs acpi power interface. With 2.6.24 kernels, the procfs inteface has been marked deprecated. Few people have tested without issues.
SVN revision: 33644
2008-01-28 20:37:00 +00:00
Carsten Haitzler b92a1a6e24 thumbscroll. the ability to scroll any widget (anything scrolled by the
scrollfram smart/widget) using your "finger" anywhere in the view. not useful
for desktops. useful for small screen devices - openmoko/n800 etc. are
perfect targets. just click and drag with your finger, release. drag fast and
releas and you get momentum and it continues for a bit while it slows down.
configurable via a new config module.


SVN revision: 33564
2008-01-23 09:04:56 +00:00
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
Christopher Michael 43cdb962de Allow battery to use it's own icon in Config Panel.
SVN revision: 32254
2007-10-31 15:15:33 +00:00
Carsten Haitzler 44fc6bc933 missed extra config calls
SVN revision: 32234
2007-10-31 12:44:40 +00:00
Carsten Haitzler 6840a4f977 boys and girls... animals and vegetables... pokemon and spatial anomolies
lend me your ears, for i come to break code, not to praise it!

module api getting kicked about. 1. modapi calls for config and about are gone
core module api call for about dialog gone (not needed anymore). use module
.desktops for about info in description. config should go via the config
panel calls to register stuff.... wherd... to... ma homieoes!


SVN revision: 32231
2007-10-31 12:21:02 +00:00
Sebastian Dransfeld ac35054634 We need id's for gadgets which are independent of shelves, so if we move
a gadget from one shelf to another it will keep the same config. Since the
id is mainly for the module to find the appropriate config for a gadget,
the module is now responsible for creating id's for gadgets config. One
problem is that we no longer can trust the id of a gadget, so we need to
store a reference between a gadget and its config after startup. No big
deal.


SVN revision: 31727
2007-09-16 00:02:53 +00:00
Eric Schuele 323620e492 Allow module to fire its alarm given a percentage remaining threshold.
SVN revision: 30039
2007-05-20 05:20:04 +00:00
Sebastian Dransfeld 5c9c68298a Remove stale code.
SVN revision: 29160
2007-03-25 22:46:21 +00:00
Sebastian Dransfeld c129c20ab6 Update icon name.
SVN revision: 29059
2007-03-24 23:12:23 +00:00
Sebastian Dransfeld 1bffed5388 Check if we still are within the string.
SVN revision: 29011
2007-03-24 15:07:55 +00:00
Sebastian Dransfeld cba29bd250 Revert to old e_gadcon_client_new, some modules require id to be set on
the gadcon client after this func returns.


SVN revision: 27684
2006-12-30 23:32:25 +00:00
Sebastian Dransfeld 805315670b Clean up some gadcon config code.
Make id unique for each gadcon.


SVN revision: 27673
2006-12-30 17:54:27 +00:00
Carsten Haitzler a9757fa04b i'm cleaning up dnd. fixed leaks. made dnd more convenient - less work to do
(it returns x,y coords relative to the drop target geom, not the screen,
start putting in all the necessary stuff in fm2 - can dnd 2 file now (drop
has no effect though)...


SVN revision: 25950
2006-09-18 03:49:45 +00:00
Carsten Haitzler 34d6645d66 lots of freaky stuff.
1. cleaned up actions for restart and exit
2. made main menu cleaner in just using the actions
3. added ilits unselect calls for ilist smart and widget
4. patch for cpufreq to set all cpu clocks
5. fix battery module to handle broken acpi impl's that don't report drain rate
6. add e_sys subsystem - for executing system sensitive stuff like halt, reboot
   suspend, hibernate etc. this also covers exit, restart and logout. logout
   is currently dormant and just an action - not bound or in a menu. not
   complete anyway (no code for it). halt and reboot should probably use
   logout logic to shut down apps - i will recycle it. i added a suid root
   binary to do the actions - uses a system config (default one supplied that
   is secure - root will need to modify it to allow things).
7. fixed suid install hook for cpufreq
8. added sysconf dir to build for sys config file.
9. pants on


SVN revision: 25395
2006-09-03 08:51:32 +00:00
David Walter Seikel 1255baa040 Converted to use .desktop file.
SVN revision: 25386
2006-09-03 07:42:06 +00:00
rephorm d0a3102a4a and the modules...
SVN revision: 25060
2006-08-23 04:02:03 +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
codewarrior 12cc414daa battery hasnt been working on my fbsd laptop for a couple monthes, couldnt be bothered fixing, just did.
SVN revision: 24901
2006-08-19 09:07:33 +00:00
Carsten Haitzler a9e7340190 you're all goign to kill me :) but here goes - i broke the dialog and config
dialog api's - added name and class params so u can set the name and class -
so users can later use things like rememebr to rememebr where a dialog will
go for usability and convenience.


SVN revision: 24691
2006-08-14 15:22:46 +00:00
essiene e4b80ce483 Update core modules to use new default view settings
SVN revision: 24493
2006-08-09 06:38:35 +00:00
sebastid db452b14ac Fix warnings.
SVN revision: 24421
2006-08-06 02:21:07 +00:00
Christopher Michael a0f661695a Cleanup: Fix return value for modapi_init.
SVN revision: 24185
2006-07-25 04:09:41 +00:00
Christopher Michael 17475003db Module about dialogs now show the module icon in the dialog, and the border.
Note: This breaks e_modules until I get them fixed.


SVN revision: 23660
2006-07-02 18:55:33 +00:00
Carsten Haitzler 97eec41ad9 patches that i said were in - commit. (see my reply emails)
also finish off a TODO item or 2


SVN revision: 23267
2006-06-07 23:30:15 +00:00
Christopher Michael 2c98a4e7ea Revert back to void for e_modapi_init, HandyAndE is correct.
SVN revision: 23219
2006-06-06 15:19:36 +00:00
Christopher Michael ac459c4c81 Fix e_modapi_init to return int, not void.
SVN revision: 23208
2006-06-06 09:59:16 +00:00
Carsten Haitzler 3a2144cad0 nice little overhaul of module related stuff. moduels now finally RELY on
module.eap files being installed - and using the e_apps api to load them and
ask for a name. Also icon is expected to be in this file too and i have
removed the info func call from modules as well as config_menu, module menus,
and other cruft in moduel structs. this also means revving the module api
version and saving users from a "if i recompile it will work" thing. :)
moduels need serious updates, not just a recompile for this. your modules
WILL break.


SVN revision: 23045
2006-06-01 06:44:37 +00:00
sebastid 7c51b35764 Add const
SVN revision: 23023
2006-05-31 16:19:11 +00:00
Carsten Haitzler 7dc5dc0753 add icon provision for gadcon classes and label provider functions. also add
all the data, update and add new icons etc. etc.


SVN revision: 22495
2006-05-09 13:02:48 +00:00
Carsten Haitzler 811083bcba more paranoid cleanup of menus
SVN revision: 22283
2006-04-21 15:54:11 +00:00
codewarrior d21058c7b2 fix battery + freebsd
SVN revision: 22262
2006-04-20 11:52:40 +00:00
Carsten Haitzler c01f66c725 ef -> battery_config
bsd mis-port fix


SVN revision: 22261
2006-04-20 11:48:42 +00:00
Carsten Haitzler fbd972cdb9 e packages build again - also not much point having an enlightenment-data as
it's built as an arch specific package and it is intrinsically required by e
and cannot work without it nor is the data shared betwene e and other apps
unless e itself is installed too


SVN revision: 22260
2006-04-20 11:30:25 +00:00
handyande 00330faaf9 Move the manipulation of user specified policy flags (ALLOW_OVERLAP and ALWAYS_ON_TOP (not used yet)) to the gadman edit menu, saves a LOT of code inside modules
SVN revision: 21226
2006-03-12 16:12:59 +00:00
xstasi ed715bb41a fixed bug on ibooks that would display -0% battery - now it displays all info correctly
SVN revision: 21002
2006-03-04 12:36:42 +00:00
Christopher Michael 3c8fe5f76f Nicer menus...shhh ! :)
SVN revision: 20642
2006-02-20 19:11:22 +00:00
Carsten Haitzler 47e7c5f243 cross-compile fixes, (odd that this didnt screw up before when i did some
cross-compiling of e for arm), illogict patches too :)


SVN revision: 20552
2006-02-18 04:35:35 +00:00
Carsten Haitzler 5f71f7acf5 2 pending patches in my inbox.
1. "allow overlap" patch for modules - needs better names in the gui (Allow
windows to overlap maybe - as allow overlap is very vague)
2. itray module (buggy - buggy - beware. i know why. beware i said!)
3. TODO items


SVN revision: 19911
2006-01-20 04:04:14 +00:00
sebastid 6a638a7806 Fix EAPI warnings.
SVN revision: 19597
2006-01-07 10:39:46 +00:00
Christopher Michael b1d75321d1 If a module has a config dialogue, destroy it on module shutdown
SVN revision: 19575
2006-01-06 21:30:53 +00:00
Christopher Michael acb5e591ce Fix Config call for current container. Better trapping
SVN revision: 19425
2005-12-30 14:10:35 +00:00
Christopher Michael ebc84f1d30 Remove unused variables.C++ comments are bad, mmmkay?
SVN revision: 19390
2005-12-29 16:31:00 +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
Christopher Michael 0affc3ee5c Remove unused protos. Cleanups
SVN revision: 19287
2005-12-24 20:01:03 +00:00
Christopher Michael 517eb4c9cf Rename e_int_config calls to avoid E namespace conflicts
SVN revision: 19105
2005-12-18 06:33:14 +00:00
Carsten Haitzler 71040b0586 module config dialog
SVN revision: 19089
2005-12-17 11:21:54 +00:00
Christopher Michael af567f9581 Removed unused function
SVN revision: 19047
2005-12-15 22:05:58 +00:00
Christopher Michael 76c17f4207 Add missing include
SVN revision: 19034
2005-12-15 04:28:23 +00:00
Christopher Michael a8f6f0a453 Change Config Dialog To Configuration :)
SVN revision: 19033
2005-12-15 04:03:04 +00:00
Christopher Michael 8ddbb33327 Battery Config Dialog
SVN revision: 19020
2005-12-14 22:46:51 +00:00
technikolor 4cac22613e Patch submitted by Devon O\'Dell <devon.odell@gmail.com>. A fix for FreeBSD/AMD64 which lacks APM.
SVN revision: 18392
2005-11-09 07:56:20 +00:00
sebastid 4cb6863149 Remove sscanf
SVN revision: 17956
2005-10-25 10:51:58 +00:00
sebastid 05757dcf2f Better code structure.
SVN revision: 17255
2005-10-06 23:49:09 +00:00
sebastid 7d5b20f5b2 The data from ecore_file_ls is free'd when destroying the list.
SVN revision: 17247
2005-10-06 19:31:13 +00:00
sebastid f4498d11a3 New modapi!
If a module fails to load, don't unload it. Mark it with an error flag,
and ask the user if he wants to unload it.


SVN revision: 16918
2005-09-24 13:42:05 +00:00
sebastid 74f0aa00c7 Move module api check to module loader.
SVN revision: 16873
2005-09-23 17:13:47 +00:00
Dan Sinclair 9288298ae8 - move the common code to a function in the e_modules file.
SVN revision: 16851
2005-09-22 18:17:18 +00:00
sebastid ad4feaa85e E-codingstyle.
SVN revision: 16825
2005-09-21 06:57:36 +00:00
Christopher Michael 78e3b8efed Changed module to use e_dialog instead of e_error
SVN revision: 16820
2005-09-21 01:18:30 +00:00
sebastid e5406feda5 comments
SVN revision: 16666
2005-09-08 05:03:28 +00:00
sebastid 35b45b9e92 Support /proc/pmu
Check if mem allocation succeeds.


SVN revision: 16429
2005-08-30 12:15:36 +00:00
sebastid de9cde27b6 Don't need to check for . and .. ecore_file_ls removes them.
SVN revision: 16428
2005-08-30 11:29:24 +00:00
rbdpngn da9e2162d2 Touch up some of the output values.
SVN revision: 16231
2005-08-18 06:09:43 +00:00
rbdpngn c92592433e Preliminary OS X battery support.
SVN revision: 16230
2005-08-18 05:35:02 +00:00
Carsten Haitzler c7fd8821f3 asus no rate acpi info fix
SVN revision: 16078
2005-08-09 07:13:55 +00:00
stffrdhrn c69a5ef492 don't try and compile BSD stuffs in linux
SVN revision: 15997
2005-08-02 15:05:48 +00:00
Carsten Haitzler 4bc83ed144 formatting
SVN revision: 15994
2005-08-02 09:55:03 +00:00