summaryrefslogtreecommitdiff
path: root/src/bin/e_gadcon_popup.c
Commit message (Collapse)AuthorAgeFilesLines
* e gadgcon popup - actually for reals smooth out showCarsten Haitzler (Rasterman)2019-08-221-14/+14
| | | | now it actually does look smooth. i oopsed in my last attempt.
* gadcon popup - smooth out show just a little by deferring to next loopCarsten Haitzler (Rasterman)2019-08-181-0/+25
| | | | | | so this is kind of a hack, but a neat one - defer the object show until the next loop to skip the time involved in object creation thus starting nay animation after this has happened.
* enlightenment: Make E build again with EFL from gitChris Michael2015-05-071-6/+6
| | | | | | sed -i 's/EAPI/E_API/g' Signed-off-by: Chris Michael <cp.michael@samsung.com>
* __UNUSED__ -> EINA_UNUSEDMike Blumenkrantz2015-03-181-4/+4
| | | | this has been bugging me forever. __UNUSED__ is no longer a valid macro here.
* de-e_comp_get()-ify e_gadcon_popupChris Michael2015-01-271-2/+2
| | | | Signed-off-by: Chris Michael <cp.michael@samsung.com>
* improve gadcon popup sizing/positioningMike Blumenkrantz2015-01-151-8/+14
|
* e - gadcon popup - handle delection of content object properlyCarsten Haitzler (Rasterman)2015-01-151-0/+25
| | | | this fixes a popup crash nicely
* Fix gadcon popup to reposition correctly on size changesdavemds2014-08-311-0/+2
| | | | None was setting the visible flags, that is checked before reposition the popup
* edje: remove use of deprecated functions.Cedric BAIL2014-06-071-1/+1
|
* typoMike Blumenkrantz2014-06-021-1/+1
|
* lower popups created during nocompMike Blumenkrantz2014-06-021-1/+4
| | | | | | odds are that the user doesn't want to be disturbed by our bullshit at this point fix T1270
* silence some gadcon popup error messages from ibar menuMike Blumenkrantz2014-01-161-1/+2
|
* compositor rewrite / charlie-foxtrot situationMike Blumenkrantz2014-01-141-48/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | huge fustercluck commit because there wasn't really a way to separate out the changes. better to just rip it all out at once. * compositor and window management completely rewritten. this was the goal for E19, but it pretty much required everything existing to be scrapped since it wasn't optimized, streamlined, or sensible. now instead of having the compositor strapped to the window manager like an outboard motor, it's housed more like an automobile engine. ** various comp structs have been merged into other places (eg. E_Comp_Zone is now just part of E_Zone where applicable), leading to a large deduplication of attributes ** awful E_Comp_Win is totally dead, having been replaced with e_comp_object smart objects which work just like normal canvas objects ** protocol-specific window management and compositor functionality is now kept exclusively in backend files ** e_pixmap api provides generic client finding and rendering api ** screen/xinerama screens are now provided directly by compositor on startup and re-set on change ** e_comp_render_update finally replaced with eina_tiler ** wayland compositor no longer creates X windows ** compositor e_layout removed entirely * e_container is gone. this was made unnecessary in E18, but I kept it to avoid having too much code churn in one release. its sole purpose was to catch some events and handle window stacking, both of which are now just done by the compositor infra * e_manager is just for screensaver and keybind stuff now, possibly remove later? * e_border is gone along with a lot of its api. e_client has replaced it, and e_client has been rewritten completely; some parts may be similar, but the design now relies upon having a functional compositor ** window configuration/focus functions are all removed. all windows are now managed solely with evas_object_X functions on the "frame" member of a client, just as any other canvas object can be managed. *** do NOT set interceptors on a client's comp_object. seriously. * startup order rewritten: compositor now starts much earlier, other things just use attrs and members of the compositor * ecore_x_pointer_xy_get usage replaced with ecore_evas_pointer_xy_get * e_popup is totally gone, existing usage replaced by e_comp_object_util_add where applicable, otherwise just placed normally on the canvas * deskmirror is (more) broken for now * illume is totally fucked * Ecore_X_Window replaced with Ecore_Window in most cases * edge binding XWindows replaced with regular canvas objects * some E_Win functionality has changed such that delete callbacks are now correctly called in ALL cases. various dialogs have been updated to not crash as a result comp files and descriptions: e_comp.c - overall compositor functions, rendering/update loop, shape cutting e_comp_x.c - X window management and compositor functionality e_comp_wl.c - Wayland surface management and compositor functionality e_comp_canvas.c - general compositor canvas functions and utilities e_comp_object.c - E_Client->frame member for managing clients as Evas_Objects, utility functions for adding objects to the compositor rendering systems additional authors: ivan.briano@intel.com feature: new compositor removal: e_border, e_container, e_popup
* make gadcon popup cleanup slightly more correct when deleting objectsdiscomfitor2013-05-181-1/+2
|
* E_FN_DEL macro renamed to E_FREE_FUNC with param order swapped for consistencyMike Blumenkrantz2013-02-221-3/+3
|
* gadcon popups are now above most other objectsMike Blumenkrantz2013-02-211-0/+1
| | | | SVN revision: 84284
* more valgrind stuff... null deref?Carsten Haitzler2013-02-211-0/+2
| | | | SVN revision: 84273
* fix gadcon popup "swimming" animation resulting in now-incorrect use of e_popupMike Blumenkrantz2013-02-191-4/+3
| | | | SVN revision: 84094
* giant comp rejiggering commit #2: popups are now objects drawn directly onto ↵Mike Blumenkrantz2013-02-181-29/+71
| | | | | | | | | | | | | | | | | | the compositor canvas with no xwindows of their own * added a number of new e_comp functions and macros * options for disabling effects on objects: this option does not currently have any effect * all modules which used gadcon popups have been adjusted * all modules which used input windows to detect close events for gadcon popups have been adjusted to use new popup autoclose functionality * shelves are now always drawn on the compositor canvas, meaning objects will never get clipped by the shelf (ticket #1810) * shelves no longer have an event object SVN revision: 84060
* formattingMike Blumenkrantz2013-02-181-121/+113
| | | | SVN revision: 84059
* Dear all,Mike Blumenkrantz2012-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'm attaching a patch for some minor bugs in the e17. Please take a look at attached patch. 01. missing E_FREE(inst) File: src/bin/e_exec.c: 347 Function: _e_exec_cb_exec 02. missing null check File: src/bin/e_fm.c: 10173 Function: _e_fm_error_dialog I'm not sure, but all other codes always check the return value of e_fm2_op_registry_entry_get except here. 03. missing free(slave) File: src/bin/e_fm_ipc.c: 804 Function: _e_fm_ipc_slave_run 04. eina_list_remove after free File: src/bin/e_fm/e_fm_ipc.c :1325 Function: _e_fm_ipc_cb_fop_trash_idler 05. invalid check for _udisks_del, it might be _udisks_chg. File: src/bin/e_fm/e_fm_main_udisks.c : 162 Function: _e_fm_main_udisks_test 06. uninitialized gx and gy values File: src/bin/e_gadcon_popup.c: 172 Function: _e_gadcon_popup_position These could be changed in e_gadcon_client_geometry_get if gcc->o_base is null. 07. unnecessary code 'evas = e_win_evas_get(dia->win)' File: src/bin/e_import_config_dialog.c: 456 Function: e_import_config_dialog_show 08. missing free(sizes) src/bin/e_randr_11_serialization.c: 136 Function: _11_try_restore_configuration() 09. unnecessary variable output_info File: src/bin/e_randr_12.c: 560 Function: _output_property_change_event_cb 10. eina_list_remove after free File: src/bin/e_randr_12_serialization.c : 357 Function: _12_serialized_setup_update 11. no check of the return value of symlink. File: src/bin/e_widget_fsel.c: 84 Function: _e_wid_fsel_favorites_add 12. no evr->var check before comparing string values File: src/modules/conf_applications/e_int_config_defapps.c: 432 Function: _basic_apply 13. missing error message or check return value of edje_file_group_exists File: src/modules/conf_theme/e_int_config_theme.c: 333 Function: _open_test_cb Anyway, I've added e_util_dialog_show if failed. Is it okay? 14. missing index range check File: src/modules/gadman/e_mod_config.c: 153 Function: _cb_config It could read negative array index, because return value of e_widget_ilist_selected_get might be negative. BR, Gwanglim SVN revision: 80020
* fix gadget popup positioning bug for top/left shelvesMike Blumenkrantz2012-11-291-2/+2
| | | | SVN revision: 79801
* gadcon popups will no longer pop over the gadget if popping for a shelf in ↵Mike Blumenkrantz2012-11-261-0/+4
| | | | | | autohide mode SVN revision: 79719
* e: cleanup layer handlingSebastian Dransfeld2012-10-021-1/+1
| | | | | | | | | | | | It seems people put random numbers as layers, so it is better to define available layer numbers. This patch also puts popups below fullscreen windows, as it sucks to get popups during presentations. A better solution is maybe to put popups above fullscreen, but have a presentation mode to put fullscreen windows above popups? SVN revision: 77293
* fix wad of focus issues with click-to-focus and alt+tab + fullscreenCarsten Haitzler2012-08-181-1/+1
| | | | | | | | windows. SVN revision: 75399
* formattingMike Blumenkrantz2012-06-261-44/+50
| | | | SVN revision: 72875
* Add UNUSEDChristopher Michael2010-08-181-2/+3
| | | | SVN revision: 51321
* FORMATTINGLucas De Marchi2010-08-041-3/+0
| | | | | | | | | | | | | | | | * 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
* * e: prevent segv when reinserting the same object. Should never happenCedric BAIL2010-03-291-6/+9
| | | | | | | but better to not segv. SVN revision: 47558
* Fix API Inconsistency in regards to e_widget_min_size_* . Renamed toChristopher Michael2009-09-011-1/+1
| | | | | | | | | e_widget_size_min_* . This Large commit should fix everything in svn that is using those functions. SVN revision: 42152
* get zone from gadcon.Gustavo Sverzut Barbieri2009-06-211-3/+1
| | | | | | | | | | | | | | | | The old code that query the zone based on x,y was causing me segfaults. When battery module was in a hidden shelf, the position was outside any zone and then segmentation fault. As far as I understand, gcc->gadcon->zone should always exist and always be correct, but I don't have xinerama setup now to confirm that. If you know this is wrong, let me know! SVN revision: 41147
* remove all traces of the resize callback function. it iss not needed anymoreViktor Kojouharov2009-06-071-7/+5
| | | | SVN revision: 40940
* fix bugs of gadgets using incorrect zones.Gustavo Sverzut Barbieri2009-06-061-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I found strange behavior in my configuration (xinerama - two screens with two zones). When i select a Enlightenment->Restart from menu the popups for gadgets on desktop doesn't appear or appear wrongly. After some time i've found that this depends on on from what screen i am choosing this enlightenment->restart :) After some debugging i figured it out: When restarting enlightenment some gadgets (i.e. calendar) are calling e_gadgon_popup_new(). Inside that function, zone for popup window (this zone was used later in ecore_evas_move_resize) is calculated like that: {{{ zone = e_util_zone_current_get(e_manager_current_get()); and in e_manager_current_get is: ecore_x_pointer_xy_get() }}} ... so - i have my answer why restaring from one screen (cursor was on that screen) and from second screen i have different results... In other words: during initializing module like calendar - created zone for popup is assigned depending on current cursor position. In my patch i've chage this to obtain zone using the gadget position instead. But it solves the problem partialy. Next thing - in function: e_gadget_popup_show() (which is called later) when calculating popup position coordinates was calculated using zone: {{{ pop->gcc->gadcon->zone }}} which in my case was always the first (initial) zone - (of course it was wrong, because i put a gadgets on different screens for testing). so i changed it to zone of popup window (which was calculated before, in e_gadgon_popup_new()) and after that everythings works ok :) Zones for popups are correctly assigned and popups calculation are also ok - even after restaring enlightenment (tested with cursor on both screens). By: manio SVN revision: 40927
* e_gadcon_popup now responds to changes in the content's size hint changes, ↵Viktor Kojouharov2009-05-311-78/+107
| | | | | | | | | and resizes itself accordingly. with this, the resize func will no longer be needed, if users of the popup set the size_min hint of the content of the popup. SVN revision: 40864
* do full size calc when the content is set, not when it is shownViktor Kojouharov2009-05-241-23/+8
| | | | SVN revision: 40813
* never a good idea to place the popup origin at negative coordinatesViktor Kojouharov2009-03-021-0/+4
| | | | SVN revision: 39332
* added e_gadcon_locked_set: with this gadgets can lock the gadcon from Hannes Janetzek2009-01-241-18/+18
| | | | | | | | | vanishing, like with e_shelf_locked_set. gadcon providers set their own lock function with e_gadcon_util_lock_func_set, which is called by e_gadcon_locked_set. SVN revision: 38759
* oops, just lock shelf if configured to do so.Gustavo Sverzut Barbieri2009-01-101-3/+3
| | | | SVN revision: 38535
* gadcon popup should lock shelf.Gustavo Sverzut Barbieri2009-01-101-0/+35
| | | | | | | | | | | | | It's nasty to have shelf auto-hided when you have a popup like mixer or battery warning, so gadcon popups will now lock shelf while they're visible. Developers can go back to old behaviour setting the appropriate flag with e_gadcon_popup_shelf_lock_set(). SVN revision: 38530
* one too many breaksViktor Kojouharov2008-12-031-1/+0
| | | | SVN revision: 37917
* OK, in doubt, calculate dimensions anyway and call resize func after that. ↵Chidambar Zinnoury2008-10-201-8/+5
| | | | | | | | | Some modules expect them to be filled so that they can "correct" them. This will fix all of them. SVN revision: 36851
* Correct gadcon popup dimensions computation.Chidambar Zinnoury2008-10-191-3/+10
| | | | SVN revision: 36806
* fix gadcon popups across multiple zones.Carsten Haitzler2008-09-201-10/+11
| | | | SVN revision: 36120
* add in gadman for desktop. happy dave! :)Carsten Haitzler2008-05-191-0/+11
| | | | SVN revision: 34610
* Remove unused E_Gadcon_Popup->o_conGustavo Sverzut Barbieri2008-02-051-1/+0
| | | | SVN revision: 33680
* Avoid invalid read, remove useless calls.Gustavo Sverzut Barbieri2008-02-051-3/+1
| | | | | | | | | | | | | | | | e_object_del(E_OBJECT(pop->win)) will call ecore_evas_free() which calls evas_free() which deletes all the objects, making pop->o_bg a invalid read in its evas_object_del(). So it must be reordered, even better the evas_object_del(pop->o_bg) can be avoided. Since the window is deleted, no need to e_gadcon_popup_toggle_pinned() it. PS: need to check if there are users of o_con, if not, it should be removed too. SVN revision: 33679
* Handle corner cases where popup X may be less than the zone X.Christopher Michael2008-01-081-1/+7
| | | | SVN revision: 33396
* Center gadcon popups over their respective gadgets, not aligned to the left.Christopher Michael2008-01-081-2/+2
| | | | SVN revision: 33390
* Set popup layer == layer of the exebuf.Christopher Michael2007-12-131-3/+3
| | | | | | | Fix some formatting issues. SVN revision: 33124
* Fix formatting.Christopher Michael2007-11-161-41/+38
| | | | SVN revision: 32738