Commit Graph

186 Commits

Author SHA1 Message Date
Michael BOUCHAUD 7743a24db2 e: make e_powersave values configurable
SVN revision: 70698
2012-05-03 20:16:34 +00:00
Thomas Gstädtner 6f55d529a3 From: Thomas Gstädtner <thomas@gstaedtner.net>
Subject: [E-devel] [PATCH] battery: add support for different suspend
methods

Allow the user to select what to do when the battery runs low:
Suspend, Hibernate or Shutdown.



SVN revision: 69623
2012-03-26 04:00:53 +00:00
Carsten Haitzler b164a4c0db fix some battery errant warnings and dump some info about decisions
made for battery warning alert



SVN revision: 67847
2012-02-11 10:44:51 +00:00
Leif Middelschulte 72e9ba4bca Cleanup desktop notifications in battery.
-Properly init and shutdown e_notify
-Use "Battery" as name for notification sender
-Use ui configurable timeout for notification
-Save "use desktop notification" for real

SVN revision: 67029
2012-01-11 01:40:13 +00:00
Leif Middelschulte 40b2ec83b7 Add desktop notifications to battery module.
SVN revision: 67027
2012-01-11 00:29:42 +00:00
Boris Faure 27264671d0 e/gadcon: label() returns a const char*
Original patch by Fabien Romano from OpenBSD

SVN revision: 65204
2011-11-14 21:46:57 +00:00
Vincent Torri 66f257b886 E17: add OpenBSD support for the battery module
patch by Jonathan Armani <armani@openbsd.org>


SVN revision: 64526
2011-10-30 16:47:50 +00:00
Carsten Haitzler 48f3614f96 make suspend on low power actually a hibernate - because yes,
hibernate makes more sense.



SVN revision: 63808
2011-10-04 14:17:28 +00:00
Carsten Haitzler 9e0032aabf and allow config to suspend even if on AC power (ie if disabled wont
suspend on blank if connected to AC)



SVN revision: 62656
2011-08-21 11:02:33 +00:00
Carsten Haitzler d88e160f25 as per e17 release todo:
|| LOW  || Power    || Add suspend/hibernate w/ screen blank or low battery config option ||             ||     || ||

:)



SVN revision: 62655
2011-08-21 10:44:23 +00:00
Hannes Janetzek 7f457f1911 e17: add option to have gadcon client settings menu in toplevel again.
added e_menu_item_new_relative(E_Menu, E_Menu_Item *rel) which appends 
 new item to rel or prepends it when rel is NULL.

changed e_gadcon_util_client_menu_append to to take only the gadget menu
 and returns the new toplevel menu that should be shown by gcc
 depending on the setting this is a new menu with gadget menu as submenu
 or the gadet_menu with gadget menu items appended

updated e-modules-extra comes in a minute


SVN revision: 57826
2011-03-17 17:08:36 +00:00
Miculcy Brian 87dcd15f58 typo
SVN revision: 52079
2010-09-09 15:20:23 +00:00
Miculcy Brian 2f8f31fbf5 This commit will change the shelf menu completly:
If you have a Gadget and open the menu over it, all gadget specific options are under a separate submenu. The menu items which the Gadget sets theirself can be put on the main menu tree or on the Gadget submenu.
If you don't see a reason for this, check the ibar menu _before_ and _after_. :)

This api change broke all modules but i already fixed them all. Hope everything works... I also shortend text strings, etc, etc.
Hope you like it! :)


SVN revision: 52041
2010-09-09 14:44:21 +00:00
Sebastian Dransfeld d1b854b9c1 cleanup battery module
- Only open one connection to dbus (e_dbus_bus_get) and then close it on
  shutdown.
- Fix autodetection of backend.

SVN revision: 51764
2010-08-30 19:57:36 +00:00
Lucas De Marchi 6638a10e20 FORMATTING
* Remove vim modelines:
 find . -name '*.[chx]' -exec sed -i '/\/\*$/ {N;N;/ \* vim:ts/d}' \{\} \;
 find . -name '*.[chx]' -exec sed -i '/\/[\*\/] *vim:/d' \{\} \;

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

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



SVN revision: 50816
2010-08-04 16:57:32 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Christopher Michael a34913ae56 Add fuzzy to config edd so udev 'fuzzy' mode can be saved.
SVN revision: 49779
2010-06-21 03:39:50 +00:00
Mike Blumenkrantz d4c70a863c globals declared in main now
SVN revision: 49760
2010-06-19 17:53:49 +00:00
Mike Blumenkrantz 97529addef match eeze changes, add init/shutdown calls to illume2 keyboard
SVN revision: 49130
2010-05-22 07:04:26 +00:00
Mike Blumenkrantz 9031bcbb6c make battery popup go away automatically when time goes above warning threshold
SVN revision: 49013
2010-05-19 17:57:17 +00:00
Mike Blumenkrantz a0dce1af21 popup tweak #2
SVN revision: 49012
2010-05-19 17:53:16 +00:00
Mike Blumenkrantz 1cfa2b2d8c fix annoying battery popups with 99% battery
SVN revision: 49011
2010-05-19 17:51:31 +00:00
Mike Blumenkrantz fb6a6462c9 udev: recalc last full charge on update in case battery loses maxlife between module restarts
all: do not display time if full && have power


SVN revision: 48985
2010-05-18 20:15:11 +00:00
Mike Blumenkrantz f7f417298b udev mode enabled in battery module (--enable-device-udev) with polling time supported. udev times are extremely accurate AT THE TIME THAT THEY POLL.
I have added what I call "fuzzy mode", which (in udev mode only) averages the past 10 polling times to give a somewhat more readable measurement.
bugs: none that I know of?
todo: make fuzzy mode average the previous 10 times without resetting except on state change, fix "fuzzy mode" checkbox to only enable when udev is selected


SVN revision: 48973
2010-05-18 10:39:30 +00:00
Mike Blumenkrantz bafe1c825f more udev battery progress, seems like a good stopping point for tonight.
still no functionality changes.


SVN revision: 48943
2010-05-17 08:57:47 +00:00
Mike Blumenkrantz e65da68f57 split battery module device backend into separate files to make it more manageable. main.h now has more function protos. dummy conditional added to configure for later use with makefile source file selection.
still no functionality change


SVN revision: 48940
2010-05-17 07:17:59 +00:00
Mike Blumenkrantz e07ccccdab incremental commit towards udev. no functional changes made, udev support still not implemented
SVN revision: 48939
2010-05-17 05:14:50 +00:00
Carsten Haitzler 8692498308 hmm i wonder who broke batget - changed it from 5 to 4 params.
SVN revision: 48915
2010-05-16 15:00:35 +00:00
Sebastian Dransfeld 3b79d0352a battery: add const
SVN revision: 48823
2010-05-13 20:24:36 +00:00
Sebastian Dransfeld 3722782353 battery: stringshare string
SVN revision: 48814
2010-05-13 19:40:12 +00:00
Carsten Haitzler 818ce4694a patch from seb - fix leaked strings.
SVN revision: 48811
2010-05-13 15:28:34 +00:00
Sebastian Dransfeld 6c19119975 revert stringshare code for e_hal
SVN revision: 48673
2010-05-07 18:07:11 +00:00
Sebastian Dransfeld c5109d9b59 e: eina_stringshare_del to clean up
SVN revision: 48672
2010-05-07 18:07:00 +00:00
Mike Blumenkrantz b25f91128f add stringshares, fix dbus return handling to avoid ref loss
SVN revision: 48671
2010-05-07 16:49:46 +00:00
Sebastian Dransfeld c31e108c14 e/modules/battery: match strdup with free
SVN revision: 48656
2010-05-06 20:51:31 +00:00
Sebastian Dransfeld bf511e235c e/modules/battery: need to stringshare
SVN revision: 48655
2010-05-06 20:51:20 +00:00
Mike Blumenkrantz 5593cdfe91 step 5: migrate battery module with properly #ifdef-ed code
SVN revision: 48496
2010-05-01 01:13:38 +00:00
Mike Blumenkrantz 97da075d67 ukit integration taking way longer than expected, so I'm fixing all the stringshares now. should be safe to use. hooray.
SVN revision: 48414
2010-04-29 08:58:38 +00:00
Gustavo Sverzut Barbieri 4a4faa95b5 module overhaul, passes -Wextra and reports more errors.
* check_changed for both basic and advanced dialog modes;

 * disable sliders and other widgets that depend on the checkbox;

 * smaller sliders;

 * ensure there is a timer if alert is set;

 * check all fgets() return, report error if format was not expected,
   simplify some cases.



SVN revision: 46802
2010-03-02 21:42:59 +00:00
Sebastian Dransfeld f2c243f91e make clang happy
SVN revision: 45191
2010-01-15 19:36:00 +00:00
Carsten Haitzler 6916f42c84 make error replyies not seegv dbus... why error tho?
SVN revision: 43348
2009-10-30 12:28: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
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
Davide Andreoli eb2d1db1dc Icon rename finished. Now we have a fully compliant icon theme :)
now I'm going to fix E-MODULE-EXTRA...


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

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



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

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



SVN revision: 39370
2009-03-04 20:46:05 +00:00
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 465f232867 Remove compiler warnings.
SVN revision: 38947
2009-02-05 02:35:46 +00:00
Gustavo Sverzut Barbieri 82edc2c6da Remove annoyance.
When e starts in systems under heavy load, it might not get reply from
HAL before we need it, so detect batteries that still do not have
filled properties and avoid calling _battery_update() if nothing is
known.



SVN revision: 38946
2009-02-05 02:34:20 +00:00
Carsten Haitzler efc07de04f and kill batget when forcing hal mode.
SVN revision: 38874
2009-02-01 03:29:22 +00:00