Commit Graph

185 Commits

Author SHA1 Message Date
Michael BOUCHAUD 69624a7f82 e: react on the good event, and don't ignore it
SVN revision: 70237
2012-04-16 18:27:48 +00:00
Vincent Torri c30aaf8dde e17: remove some shadow variables
SVN revision: 70190
2012-04-15 08:09:56 +00:00
Tom Hacohen c2b3f17a6f E desklock: Fix password replace char to work correctly with unicode.
The correct fix would actually be using textblock there and not TEXT object
as we already have edje_entry... I guess whoever did it had it motives
(or possibly edje_entry didn't exist yet at that time). But anyhow,
edje_entry already supports replacement chars.

SVN revision: 65519
2011-11-22 15:59:54 +00:00
Carsten Haitzler ec2dbe6751 use sizeof for buffers - safer for modifications.
SVN revision: 62191
2011-08-08 06:10:36 +00:00
Hannes Janetzek a2ac69cd09 e17: raise desklock window above again when other windows try to raise. if someone has a better solution, go ahead!
SVN revision: 61194
2011-07-10 10:16:51 +00:00
Carsten Haitzler f09e917e18 fix case where we could have x fatal stuff happen during shutdown or
we try use x on shutdown when x io fatal conditions have happened.
x_fatal flag around for that now too. tested. seems to now be happy
and not cause aborts on shutdown when x has gone.



SVN revision: 57075
2011-02-16 05:20:13 +00:00
Carsten Haitzler bbab244193 desklock - dont ret 1 on failure to auth. only on failure to init!
SVN revision: 55923
2011-01-06 03:58:58 +00:00
Lucas De Marchi 546f8d20c3 Fix exit values
Exit status is a value between 0 and 255.



SVN revision: 55846
2011-01-04 15:29:50 +00:00
Lucas De Marchi c77ad75e83 Fix desklock
Revert r55711!

discomfitor: SPANK! SPANK! SPANK!



SVN revision: 55762
2010-12-27 16:17:12 +00:00
Mike Blumenkrantz f97f4f5d60 avoid null deref
SVN revision: 55711
2010-12-22 22:54:22 +00:00
Gustavo Sverzut Barbieri 6f2213cb25 convert init/shutdown to EINTERN, move some to _update().
Do not abuse the concept of e_*_init(), make them call-once and those
that needed multiple call are renamed to e_*_update(). To make sure
convert them to EINTERN so the symbols are not exported.

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



SVN revision: 54795
2010-11-22 15:21:32 +00:00
Gustavo Sverzut Barbieri d374b7ccb8 utility to query for fullscreen in current/all zones.
keeping local count of borders is too error prone, instead query
it. Right now the count is being done for the current zone only, I
guess this is the best policy.



SVN revision: 54793
2010-11-22 15:21:17 +00:00
Gustavo Sverzut Barbieri 07f4fc0cd3 desklock_init() should be called only once, poller does the job.
SVN revision: 54792
2010-11-22 15:21:06 +00:00
Lucas De Marchi 25113159a5 Fix common misspellings
Some misspellings were manually reverted since in E there are tons of .po with
phrases in other languages. Other than that all the changes in the following
files were reverted:

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


Following misspellings were fixed:

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




SVN revision: 52006
2010-09-08 23:59:07 +00:00
Lucas De Marchi 63f07459a0 Convert (hopefully) all comparisons to NULL
Apply badzero.cocci, badnull.coci and badnull2.cocci

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

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

return a == NULL;                 return !a;

return a != NULL;                 return !!a;

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

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

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

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

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

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


other cases:

a == NULL                         !a
a != NULL                         a




SVN revision: 51487
2010-08-21 13:52:25 +00:00
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
Christopher Michael 5a7b450c04 Patch from rubenbb to fix ticket #562 (dpms being turned off by
fullscreen windows).

I modified this patch slightly. Removed some unused handlers. limits.h
is already included in e.h, so no need to reinclude it. Fixed formatting.



SVN revision: 50356
2010-07-18 19:06:00 +00:00
Cedric BAIL c6a118d738 * e: remove warning due to Ecore API change.
SVN revision: 49833
2010-06-24 16:19:12 +00:00
Gustavo Sverzut Barbieri 9e581982f7 Do not activate DPMS, Screen Saver or Locker if there is a fullscreen window.
I guess there is nothing more annoying than having a fullscreen window
to watch a quick movie, read some text or webpage or whatever and have
the DPMS to show, or the screensaver to be activated or your screen to
be locked.

This patch uses the new border signal and counts, if there is at least
one fullscreen border, then avoid doing these annoyances.

I'm not accounting for any border parameter/property, like if it is in
a visible screen or desktop. I hope this is fine, otherwise let me know.

I also asked and common sense at IRC (at least to me and englebass) is
that there is no need to configure such behavior, so there is no
configure option for it.

I'm also thinking about maximized windows to have a configurable
behavior to match this, but I'm not sure.



SVN revision: 49262
2010-05-28 22:13:20 +00:00
Gustavo Sverzut Barbieri ba79908621 non-resiable "presentation mode" dialogs and -Wextra/trailing whitespace cleanups.
SVN revision: 47060
2010-03-09 00:31:44 +00:00
Boris Faure 1060dfbd2e e: check whether fork failed
SVN revision: 46787
2010-03-02 15:07:03 +00:00
Sebastian Dransfeld 02b6e4db39 Ecore_Str.h -> Eina
SVN revision: 45740
2010-01-30 22:11:11 +00:00
Sebastian Dransfeld b7f399d159 make clang happy
SVN revision: 45153
2010-01-14 23:48:59 +00:00
Christopher Michael 8dbdeb73da Check event handlers are valid before trying to delete them.
Use PATH_MAX.
Fix formatting/whitespace.



SVN revision: 44990
2010-01-08 20:17:07 +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
Gustavo Sverzut Barbieri 080c0be517 minor improvements to dialogs asking to enter presentation mode.
SVN revision: 40521
2009-05-06 12:00:19 +00:00
Massimo Maiurana 153904f98d fixed a little typo
SVN revision: 40460
2009-04-29 15:36:12 +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 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
Vincent Torri 7506655ca9 ecore_x_window_del -> ecore_x_window_free
SVN revision: 39924
2009-04-10 09:57:57 +00:00
Hannes Janetzek 4598a292ed use ECORE_EVENT_MODIFIER
SVN revision: 39538
2009-03-17 21:55:33 +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
Sebastian Dransfeld 10396e6085 Use strlcpy
SVN revision: 37237
2008-10-27 12:34:35 +00:00
Carsten Haitzler 523dadc323 oops. i was on drugs that day. wrong call (right parameters!)
good catch



SVN revision: 37178
2008-10-26 22:44:57 +00:00
Sebastian Dransfeld ea5245d2f3 Add comment about wrong code usage.
SVN revision: 37176
2008-10-26 20:50:09 +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
Carsten Haitzler 534bac9233 desklock silliness with login box geometry fixed.
make about ands theme about use object dialog windows. save code and
centralise.
make object windows be able to accept shaped and borderless hints.



SVN revision: 36836
2008-10-20 06:50:57 +00:00
Nicholas Hughart 654ba6ac5c Add some more fallbacks that seem to work on other OS.
SVN revision: 35377
2008-08-07 12:04:44 +00:00
Carsten Haitzler bca780d0b5 beber desklock patches.
SVN revision: 35022
2008-07-07 21:28:22 +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 37051c3531 Various patch bits from Brett Nash. Still going through the rest of them.
SVN revision: 31701
2007-09-13 21:09:12 +00:00
Carsten Haitzler 371504515f abstract config dialogs more - include params.
SVN revision: 30588
2007-07-04 11:11:03 +00:00
Carsten Haitzler 88bb37a1cb start abstracting out config dialogs a bit...
SVN revision: 30573
2007-07-03 15:19:09 +00:00
Sebastian Dransfeld 4f836fd57e Single event for show/hide desktop.
SVN revision: 30126
2007-05-28 11:15:04 +00:00
Sebastian Dransfeld 3c4fb5395a Add desklock show/hide event.
SVN revision: 30125
2007-05-28 11:08:36 +00:00
Carsten Haitzler 3a9b34fd07 and defer the del in other places too. anywhere where a canvas free might
delete widgets that end up calling hooks that delete other objetcs that may
already be freed - this is an issue. use it.


SVN revision: 29848
2007-05-04 16:21:53 +00:00
rephorm b2d64063f6 send signal to indicate that password is currently being checked
send signal in the event that an invalid password has been entered
update text to indicate current state
don't accept text input while authenticating (as the text gets whiped out if it was wrong once pam returns)


SVN revision: 29593
2007-04-19 03:44:47 +00:00
Carsten Haitzler be86d5d352 ravenlock screensaver stuff
SVN revision: 29344
2007-04-04 11:43:36 +00:00
Carsten Haitzler 108ad19a65 remove idle timer hack in desklock - not reliable anyway. no poitn fixing it.
rely on e_manager to trigger desklock from scrensaver events.


SVN revision: 29336
2007-04-04 10:18:19 +00:00
Sebastian Dransfeld f6dc1dc1cc Remove stale code.
Fix comments.


SVN revision: 29159
2007-03-25 22:45:00 +00:00
Christopher Michael 369d5107c0 Fix the ecore_timer callback function.
Some formatting fixes.


SVN revision: 28650
2007-03-11 05:01:49 +00:00
Christopher Michael 7a3f2f0ed2 Ravenlock's combined dpms/screensaver patches and new config dialogs.
Nice work :)


SVN revision: 28346
2007-02-13 16:33:35 +00:00
Carsten Haitzler d4ee59efc3 fix e if pam is NOT built so desklock aborts with a dialog.
add in a system pam profiel detector


SVN revision: 27842
2007-01-07 09:22:21 +00:00
Carsten Haitzler c34bae6064 working on fm prop dialog. i don't like how i am getting the icon info for a
file. i think i ned to abstract that much mroe cleanly.
also desklock SHOULD have else-if's


SVN revision: 27841
2007-01-07 09:01:47 +00:00
Sebastian Dransfeld 26296cdb16 Formatting.
SVN revision: 27633
2006-12-29 05:42:04 +00:00
Carsten Haitzler 29b6afd096 1. remove ld_lib_path from all things e17 executes EXCEPT its own specific
tools.
2. custom screensaver patches


SVN revision: 27628
2006-12-29 02:56:26 +00:00
Carsten Haitzler 621a58de48 patches (see devel list) :)
SVN revision: 26725
2006-10-21 02:32:14 +00:00
Carsten Haitzler 412da4cdb2 do this without a #ifdef
SVN revision: 25974
2006-09-19 12:26:31 +00:00
sndev 4c69644ea7 Give fbsd users a possibility to use desklock. system-auth profile is not presented on
fbsd, but login is there.


SVN revision: 25973
2006-09-19 09:59:03 +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
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
sebastid 3a7b3efa8f Remove const on variable which will be modified.
Remove double looping.


SVN revision: 25003
2006-08-21 16:00:43 +00:00
sebastid 7a7701d90c Remove unnecessary char * cast.
SVN revision: 24995
2006-08-21 15:35:17 +00:00
sebastid 5d1b63007e SIG_DFL is a handler, not a sigaction
SVN revision: 24766
2006-08-15 20:20:33 +00:00
Carsten Haitzler f56f6cae67 * desklock personal password disabled - security risk.
* desklock tries other comon pam profiles first that are more appropriate
* xrandr detect actually pops up the "no xrandr" dialog now


SVN revision: 24592
2006-08-12 13:25:29 +00:00
Carsten Haitzler 87f257bb30 more paranoid memset 0 of desklock passwd (and comment them) - this way once
you have authed your passwd wil not live on in memmory 1 cycle longer than it
needs to to get the pam auth done. security nuts shoudl be happy with that.
still need to fix the personal password though...


SVN revision: 24339
2006-08-01 04:14:34 +00:00
Carsten Haitzler a8a734f3ad formatting
SVN revision: 24262
2006-07-28 06:45:00 +00:00
Carsten Haitzler 3c612bf4e8 fix segv on desklock unlock (valgrind caught it) :)
SVN revision: 23823
2006-07-10 19:33:00 +00:00
Carsten Haitzler 609a510a21 maxime's leak fix patches
SVN revision: 23508
2006-06-20 11:35:15 +00:00
sebastid 79191a8fd7 Add return value. The return value seems to not mean anything???
SVN revision: 23302
2006-06-08 19:11:54 +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 748c9d3690 and general code formatting, layout, organisation and namespacing - be mroe
consistent.


SVN revision: 22190
2006-04-18 03:14:29 +00:00
Carsten Haitzler 624b88dda7 1. fix formatting. come on guys. formatting!
2. do pam auth in forked child - this way pam cant screw any signal etc.
settings of the parent process. use exit code for error detection or auth
success etc.


SVN revision: 22187
2006-04-18 03:08:43 +00:00
sndev df2ea4c01e PAM support for Desklock is added. Now system-wide authentication is available and one
can use its user password instead of setting just desklock password. However, the possibility
to set a personilized password is still available. If somebody think that it is
not neccesarily to have it now, please write :)

Moreover, the desklock dialog is updated. Now, the advanced tab includes all the settings
that are on the basic tab.


SVN revision: 21631
2006-03-31 17:26:38 +00:00
sndev 6429bf3307 some russian translation.
SVN revision: 21338
2006-03-16 12:53:40 +00:00
sndev 2df7ab1a6a * Fixing missing 'return 1' in e_grabinput.c
SVN revision: 21003
2006-03-04 12:38:18 +00:00
Carsten Haitzler b089c7d1e3 add a preview widget (includes a livethumb for live downscaling - notice
previews of animated bgs's... animate now). fixed problems with image widget
withleaks and other stuff... also desklok tries to abord if grabs fail and
agressively tries to disable existing grabs


SVN revision: 20987
2006-03-04 04:11:51 +00:00
Carsten Haitzler 9ab2777707 desklock lets you auto-lock if the screensaver kicks in and set the timeout
for the screensaver (optionally).


SVN revision: 20937
2006-03-03 06:00:18 +00:00
sndev a63ac36dff Some work on desk lock configuration dialog and possible options.
* desklock background can be configured
* the position of the login box(for xinerama users) can be configured as well
* E config version is increased, since new items appeared.

.. and more

* just small fix to e_widget_entry. This fix drops the input cursor
to the end of the text, when widget gets focus.


SVN revision: 20927
2006-03-03 00:02:32 +00:00
Carsten Haitzler 62ca6a2cbc de-uglify desklock gfx - make it ask for your passowrd if you havent set one
up (config dialog instead of lock) and make it a menu item for obvious access
:)


SVN revision: 20808
2006-02-27 06:35:56 +00:00
sndev 6491c0bad9 More work on Desktop Locking.
* now multiple zones are supported.


SVN revision: 20806
2006-02-26 21:42:19 +00:00
sndev 6f947b507c More work on Desktop Locking:
* the config dialog is created. Now every one can set his/her personal password to
  unlock the desktop. Pam support is comming soon also.
* a little bit redesined look and feel.
* the config version is increased, since the new item is introduced.

Some bug fixes in Keybinding config dialog.


SVN revision: 20731
2006-02-22 14:35:04 +00:00
sndev 7df1d76c4b A little bit more work on Desktop Locking:
- an look and feel of the desklock window is desined. However, it requires
a little bit work on alligments.


SVN revision: 20655
2006-02-21 00:19:56 +00:00
sndev 55c53d456c Some initial work, just initial enviroment, on Desktop Locking:
-a new action, desk_lock, added
  -a new key binding added
  -a e_popup, which actually locks the desktop, added.


SVN revision: 20599
2006-02-19 23:53:35 +00:00