Commit Graph

239 Commits

Author SHA1 Message Date
Mike Blumenkrantz b0260e98cb revert zoomap stuff from menus 2013-04-16 13:51:50 +01:00
Mike Blumenkrantz bd7dc3783d use e_zoomap_child_resize() in menu 2013-04-16 12:37:32 +01:00
Carsten Haitzler 390964512a move del handler to wrap. 2013-04-16 20:27:36 +09:00
Mike Blumenkrantz a0240e9f56 fix infinite loop on menu zoomap deletion 2013-04-16 12:24:40 +01:00
Carsten Haitzler 42ec9ea089 dont resize if a cw is there... 2013-04-16 20:14:12 +09:00
Carsten Haitzler e0e513f457 add zoomap so we get back our zooming comp client things with.. menu
for today. popups need doing... anything that bypasses the comp native
surface stuff needs this. :)
2013-04-16 20:07:36 +09:00
Carsten Haitzler c66e21aa9a me. valgrind. happy fun times together. methinks we should hasve more
people do this.
2013-03-30 14:11:07 +09:00
Carsten Haitzler a0d4c33691 oops printf-- 2013-03-29 22:03:09 +09:00
Carsten Haitzler 9deb05a832 fix menu flipping/flickering when menu bigger than screen. 2013-03-29 21:57:55 +09:00
Mike Blumenkrantz 03f9e7d6e7 add event rect for menus to ensure that clicks outside the menu will dismiss the menu 2013-03-20 09:50:47 +00:00
Mike Blumenkrantz 5d16b3f092 automatically mouse-up the comp evas when a menu is activated so future mouse events will work 2013-03-14 09:11:13 +00:00
Mike Blumenkrantz f6dc33f6aa always deactivate all active menus when manually activating another window 2013-03-13 07:47:46 +00:00
discomfitor 0d16ba68cd giant comp rejiggering commit #3
* e menus are now drawn directly onto the compositor canvas

* menu theme now requires at least one part which allows mouse events in every menu group (YOUR MENUS WILL NOT WORK IF YOU ARE USING A THEME WHICH LACKS THIS!!!!!!!)

* menus now also report dangling/zombie menus with slightly more accuracy now
2013-03-11 05:20:52 +00:00
Mike Blumenkrantz bf9933a336 E_FN_DEL macro renamed to E_FREE_FUNC with param order swapped for consistency 2013-02-22 13:18:30 +00:00
Mike Blumenkrantz 8b28b2f2f1 revert previous few commits related to e_menu, not meant to go in yet
SVN revision: 84083
2013-02-19 08:22:46 +00:00
Mike Blumenkrantz 7b4783ec15 menus are now drawn directly onto the compositor canvas
SVN revision: 84078
2013-02-19 08:09:05 +00:00
Mike Blumenkrantz fd0f6557ed fix crash when activating menu from start gadget after locking screen from start gadget menu
ticket #cedric


SVN revision: 83811
2013-02-11 08:35:28 +00:00
Mike Blumenkrantz aa6a2d173d giant comp rejiggering commit because anything smaller would have broken something:
* remove xwin for container canvas: now drawn directly on the compositor canvas

* added SHAPE_DEBUG define for bored developers

* bindings now use new e struct for mouse/wheel events

* container+zone now get mouse events from smart callbacks instead of x events

* rename comp api namespace

* change comp underlay theme to have a swallow for the wallpaper

* add names to all zone/container/comp objects to make debugging much easier

* some minor related updates to go along with this

SVN revision: 83752
2013-02-07 13:20:07 +00:00
Mike Blumenkrantz 9e8e755cdf formatting: all at once
SVN revision: 82625
2013-01-11 10:34:29 +00:00
Mike Blumenkrantz f927968340 e_menu_category_callback create callback parameter order has changed to be consistent with the rest of the efl: data param always comes first
SVN revision: 82547
2013-01-10 10:36:41 +00:00
Lucas De Marchi 0675dd03a0 e: rename option use_composite to use_shaped_win
In order to move composite inside the core we need to kill the
use_composite option. However in some places it is being used to switch
between ARGB and shaped windows. It doesn't make much sense to keep the
advanced/engine dialog to let the user toggle this options if we have
composite always enabledm, but lets allow the user to shoot
himself on the foot (for now).

Next step will be to move the comp module files to core so user can't
unload it anymore.



SVN revision: 82433
2013-01-09 03:21:25 +00:00
Mike Blumenkrantz 4a01ee16a0 add option for disabling icons in menus
ticket #2168


SVN revision: 82333
2013-01-07 09:35:30 +00:00
Mike Blumenkrantz 1bbcf1abb0 added function to hide all active menus, always hide menus when desklocking
SVN revision: 81925
2012-12-31 07:47:51 +00:00
Carsten Haitzler 2bcb066ccb oh this was always broken - mh simply was never set and being used...
until the 2nd loop. by then it ws too lae as ms was screwed.



SVN revision: 81895
2012-12-30 10:53:29 +00:00
Carsten Haitzler 7483f4bee9 allow for primary toplevel menus > screen height (or width) and
autoscroll them correctly. also raise the limits for menu sizes up to
30k or 2x zone height for menu item cutoff...



SVN revision: 81778
2012-12-28 03:28:25 +00:00
Carsten Haitzler ddbf106d6e ensur emensu dont go futzing about whileu use them... allocate
POTENTIAL space for submenus later. :)



SVN revision: 80751
2012-12-12 11:06:40 +00:00
Carsten Haitzler da9336c9dd fix menu box packing for submenu itms so when set up in specific
orners with a pre callback... its packed WITH fill



SVN revision: 80661
2012-12-11 14:37:17 +00:00
Mike Blumenkrantz 5a60f9dad8 further clamp menus to zone size
ticket #1895


SVN revision: 80138
2012-12-04 09:08:19 +00:00
Mike Blumenkrantz bd19ea1330 fix max menu size clamping
ticket #1691


SVN revision: 79800
2012-11-29 03:02:16 +00:00
Mike Blumenkrantz 36af3ea6bb only post-adjust menu position for non-submenus
ticket #1802


SVN revision: 79403
2012-11-16 22:09:48 +00:00
Mike Blumenkrantz 6d3694d4a9 improve menu positioning for menus which have not yet generated items at the time that they are made visible
SVN revision: 79326
2012-11-15 09:20:28 +00:00
Mike Blumenkrantz ca2501c4a1 move menu sizing to after menu actually gets sized to prevent multiple resizes
SVN revision: 79323
2012-11-15 08:57:01 +00:00
Mike Blumenkrantz 0bc2c8a7d8 only size/swallow menu icons once
SVN revision: 79278
2012-11-14 10:35:38 +00:00
Mike Blumenkrantz 0c0605da1e pack before thaw so we don't calc twice
SVN revision: 79277
2012-11-14 10:27:27 +00:00
Mike Blumenkrantz 0cb7e8e3f3 finally fix annoying submenu offset bug
ticket #1691


SVN revision: 78854
2012-11-02 11:56:32 +00:00
Mike Blumenkrantz 523597cdcb create default apps menu on init, don't free efreet menus on shutdown to prevent race condition triggered by people with superhuman menu navigation abilities
SVN revision: 76895
2012-09-20 08:57:36 +00:00
Mike Blumenkrantz 52c94bac89 app menus now generate themselves (top-most menu anyway) in threads to eliminate annoying stutter when scrolling through main menu
SVN revision: 76849
2012-09-19 10:15:03 +00:00
Mike Blumenkrantz 491c03fcfe prevent menus without any items from realizing at all
SVN revision: 76848
2012-09-19 10:05:41 +00:00
Mike Blumenkrantz 9574de56de fix stringshare usage in menu items
SVN revision: 76846
2012-09-19 07:20:26 +00:00
Mike Blumenkrantz 0baad3fe70 simplify extension checking
SVN revision: 76845
2012-09-19 07:16:54 +00:00
Mike Blumenkrantz 414db11d31 add some hacks to prevent spurious mouse movement events from breaking the universe when generating menus
ticket #1492


SVN revision: 76459
2012-09-11 11:55:08 +00:00
Mike Blumenkrantz b45316163f add menu function to activate currently active menu item
SVN revision: 76108
2012-09-04 07:01:09 +00:00
Mike Blumenkrantz 18fa14a855 add menu function for returning current active menu item
SVN revision: 76107
2012-09-04 06:17:38 +00:00
Mike Blumenkrantz 9a03e0085d fix longstanding-but-unnoticed issue where submenus would not always be freed, also related issue where active menus would be freed in the wrong order, resulting in double frees in very rare circumstances
SVN revision: 75839
2012-08-30 07:04:53 +00:00
Mike Blumenkrantz cb7dd887b4 fix annoying flickering of submenus when moving mouse between submenu and parent
SVN revision: 75789
2012-08-28 12:52:17 +00:00
Mike Blumenkrantz fd1f67375e add missing consts
SVN revision: 75777
2012-08-28 10:54:58 +00:00
Mike Blumenkrantz 09387b5106 add missing const to menu functions
SVN revision: 75548
2012-08-22 13:02:08 +00:00
Carsten Haitzler a3df76badf limit menus to 2048x2048 due to them now being abused for filemanager...
SVN revision: 74992
2012-08-08 06:15:49 +00:00
Mike Blumenkrantz 7c004097f6 unbreak menus again
SVN revision: 74910
2012-08-06 08:39:39 +00:00
Mike Blumenkrantz b270841119 revert all menu idler work: it greatly improved responsiveness but had too many corner cases where things look weird, so I guess we can all just deal with slow menus
note: this mainly affects the Files submenus


SVN revision: 74906
2012-08-06 08:16:14 +00:00
Mike Blumenkrantz cba00ee07f don't reposition menu in idler if it's a submenu
SVN revision: 74874
2012-08-04 08:33:21 +00:00
Mike Blumenkrantz 03a92c1ad9 disable menu idler drawing behavior when compositing to prevent slowdown from pixmap resizing
reduce e menu object resize count to 2: an initial guestimate extrapolated from first-drawn menu item sizes, then the final resize at the end once all the items are actually drawn
this should dramatically improve performance (again) and eliminate the "animation" that some users were seeing over the past couple days, which was really just the idler resizing the menu as it drew the items. now we populate the items on the idler without resizing the menu until the very end, which should produce the intended effect of "populating" the menu for very large/slow menus
lastly, there's still a fun positioning bug that I'm hunting down which will (rarely) make VERY large menus jump around a bit. it's very unlikely that anyone will spot this before I have fixed it


SVN revision: 74873
2012-08-04 08:20:01 +00:00
Mike Blumenkrantz 652422bce6 adding/deleting submenu item after menu item exists now properly updates the realized item
this should fix misleading items in the Files menu


SVN revision: 74828
2012-08-03 09:11:15 +00:00
Mike Blumenkrantz 370614345e force menu to always draw some items during idler, also greatly improve menu positioning
SVN revision: 74822
2012-08-03 08:33:57 +00:00
Mike Blumenkrantz 031fc80e2f clean up my earlier gadcon/menu idler work to be functional, thanks to jeffdameth for pointing it out
SVN revision: 74786
2012-08-02 07:20:51 +00:00
Mike Blumenkrantz 51ce8b4519 menus now realize their items using idlers to improve responsiveness when loading large/complex menus
SVN revision: 74713
2012-08-01 07:08:06 +00:00
Mike Blumenkrantz c760aad6b2 actually apply menu title changes when they occur
SVN revision: 74628
2012-07-31 09:11:23 +00:00
Mike Blumenkrantz 524a6da1f7 on e menu thaw, redraw the menu; this may work better as an idler
SVN revision: 74589
2012-07-30 14:04:07 +00:00
Mike Blumenkrantz d456775996 allow submenus to call their activation functions if they exist
SVN revision: 74588
2012-07-30 13:40:30 +00:00
Mike Blumenkrantz 7caeaff237 not sure why we're searching menu items twice here
SVN revision: 74587
2012-07-30 13:30:08 +00:00
Mike Blumenkrantz d706d72905 add const to param
SVN revision: 74582
2012-07-30 11:55:43 +00:00
Mike Blumenkrantz cfe425367a fix keyboard navigation of menus where the first item of a submenu is disabled
SVN revision: 72599
2012-06-21 12:09:08 +00:00
Mike Blumenkrantz 5bac59d8e3 formatting
SVN revision: 72568
2012-06-21 07:11:47 +00:00
Vincent Torri c3b0637802 e17: whitespaces--
SVN revision: 72561
2012-06-21 06:19:43 +00:00
Cedric BAIL 2d0970da9a e: warning--.
SVN revision: 70751
2012-05-04 02:34:56 +00:00
Christopher Michael 5047abf5a6 E: Properly use __UNUSED__ in menu code.
SVN revision: 69569
2012-03-22 18:11:48 +00:00
Carsten Haitzler cdb864ed8e remove all traces of selecting engine in e17 - wont actuallly ever be
needed beyond compositor. :)



SVN revision: 66513
2011-12-26 06:24:59 +00:00
Hannes Janetzek 91907d749d e17/menu: set icon scale size
SVN revision: 63200
2011-09-05 14:52:32 +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
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
Mike Blumenkrantz 94578724bd avoid possible strlen(NULL)
SVN revision: 56144
2011-01-16 01:11:46 +00:00
Carsten Haitzler 94137e3247 fix edj icon in menu :)
SVN revision: 56018
2011-01-10 06:35:04 +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
Sebastian Dransfeld 3c12d4daba __UNUSED__ last
SVN revision: 54193
2010-11-05 18:40:31 +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
Christopher Michael 12521ce427 Fix another case of unused paramater.
SVN revision: 51456
2010-08-20 00:45:45 +00:00
Christopher Michael a0e94dcf3c Add __UNUSED__ where needed.
SVN revision: 51303
2010-08-18 17:29:26 +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
Carsten Haitzler 77cd6f5b18 check here too
SVN revision: 49768
2010-06-20 11:13:31 +00:00
Tiago Rezende Campos Falcao fa956101a7 Adding selection API to E_Icon
SVN revision: 49755
2010-06-18 22:39:00 +00:00
Gustavo Sverzut Barbieri df86cee4f0 proper solution for 48487, just order was wrong.
SVN revision: 48518
2010-05-01 19:28:27 +00:00
Mike Blumenkrantz de43538b12 check for hash table before freeing it which cause eina to get angry on e restart. don't make eina angry. you wouldn't like eina when it's angry.
SVN revision: 48487
2010-04-30 19:13:30 +00:00
Sebastian Dransfeld 080b8eda6c formatting
SVN revision: 47189
2010-03-13 21:56:25 +00:00
Sebastian Dransfeld 78b294c4a8 make clang happy
SVN revision: 45176
2010-01-15 11:29:50 +00:00
Carsten Haitzler 79dcd015f8 lots of work on compositor stuff. looking slick and nice internally too.
SVN revision: 45159
2010-01-15 04:41:20 +00:00
Christopher Michael 5970c2685d Remove a bunch of wasted whitespace.
Fix some formatting.
Fix compiler warning wrt e_icon.



SVN revision: 43275
2009-10-25 18:42:47 +00:00
Carsten Haitzler 88d2d262e5 1. for some reason the po's needed a lot of updates - msgmerge thiks so
2. use preload for icons a lot.



SVN revision: 43191
2009-10-22 06:47:02 +00:00
Hannes Janetzek bdec662049 identify shelf and menu windows as such for compositing managers
SVN revision: 42299
2009-09-06 20:04:20 +00:00
Christopher Michael bc639c764d More API Inconsistency fixes:
e_box_min_size_* to e_box_size_min_*
e_box_max_size_* to e_box_size_max_*



SVN revision: 42161
2009-09-01 16:29:46 +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
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
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 69821ee547 proper cleanup on icon/edje failure.
SVN revision: 40201
2009-04-18 23:45:26 +00:00
Vincent Torri 0e6ad24c60 remove useless subwindow code
SVN revision: 39975
2009-04-11 08:33:44 +00:00
Vincent Torri 7506655ca9 ecore_x_window_del -> ecore_x_window_free
SVN revision: 39924
2009-04-10 09:57:57 +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
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