Commit Graph

71 Commits

Author SHA1 Message Date
Mike Blumenkrantz 09ec213a31 remove e_util_zone_current_get() usage 2015-03-13 17:58:45 -04:00
Mike Blumenkrantz ba7c1ac49c remove E_Zone->comp member 2015-03-13 17:44:24 -04:00
Mike Blumenkrantz 34d906fa42 e_zone functions no longer require E_Comp param 2015-03-13 17:28:49 -04:00
Mike Blumenkrantz ed897a231e de-e_comp_get()ify e
mrw I remember how to regex http://i.giphy.com/dC9dujPVeAfIY.gif
2015-03-13 15:12:20 -04:00
Carsten Haitzler 2d9cc918ff shot module - dont allow another instance and keep the current one
this avoids a segv
2015-01-15 19:44:52 +09:00
Mike Blumenkrantz 2543821886 convert shot dialog to elm_layout 2015-01-15 03:05:20 -05:00
Mike Blumenkrantz c978a045e6 e_entry -> elm_entry conversion
another dice roll in the board game of enlightenment development. next, I will attempt to roll doubles to get out of jail.

 #teamborker

fix T1906
2015-01-11 12:20:46 -05:00
Carsten Haitzler 6510e8bd0e Revert "all dialogs are now resizable"
This reverts commit 9157ca8ca7.

this also makes all dialogs that have content in a toolbar that goes
off window at min size resizable - this is actually what you wanted ..
bgut this previous "all dialogs are resizable" thing was uber-lazy.

Conflicts:
	src/modules/bluez4/e_mod_main.c
	src/modules/conf_bindings/e_int_config_signalbindings.c
	src/modules/conf_theme/e_int_config_theme.c
	src/modules/mixer/conf_gadget.c
	src/modules/shot/e_mod_main.c
2014-12-22 23:02:05 +09:00
Carsten Haitzler 87baecb098 Revert "windows - allow close button to work again in internal wins"
This reverts commit 285951c8cb.
2014-11-23 13:54:14 +09:00
Carsten Haitzler 285951c8cb windows - allow close button to work again in internal wins
since the move to elm_win ... windows don't close with close button in
the titlebar. this fixes that in the simplest way - enabling autodel
on the window.
2014-11-22 18:46:10 +09:00
Mike Blumenkrantz 99589eb5af remove E_Win+e_canvas, convert all internal wins to use elm_win
known issues:

* keybindings for efm windows (eg. ctrl+w) are broken until the rest of the conversion is completed
2014-11-20 15:26:21 -05:00
Carsten Haitzler 784813ad4d whitespace/formatting cleanups in shot module 2014-07-01 19:51:04 +09:00
Cedric BAIL 3f9af38da2 edje: remove use of deprecated functions. 2014-06-07 21:10:55 +02:00
Gwanglim Lee af14a444c1 fix warnings
Summary: fix compilation warnings

Test Plan: N/A

Reviewers: zmike

CC: cedric

Differential Revision: https://phab.enlightenment.org/D922
2014-06-02 07:25:10 -04:00
Mike Blumenkrantz 9157ca8ca7 all dialogs are now resizable
any bug reports regarding issues resulting this will be ignored.
2014-05-14 13:00:35 -04:00
Daniel Kolesa 130d099c87 FreeBSD support for helpful error message in screenshot 2014-05-09 16:58:03 +01:00
Mike Blumenkrantz 1ac25835db screenshot now displays a helpful error message when it fails
now that larger xinerama setups are getting more common, it's also the case that shm creation is more likely to fail due to SHMMAX defaults only working on displays smaller than than 8,388,609 total pixels. in this case, we print a helpful error message so the user can (optionally) increase SHMMAX
2014-05-09 10:46:30 -04:00
Mike Blumenkrantz 4b58fa9a4e replace ev->keyname with ev->key
see efl 5ae4cfd1923e502731f4d8fc2bf67b1f536a9216
2014-03-13 13:03:34 -04:00
Mike Blumenkrantz 457a385fa7 clamp screen sizes to 1 to avoid impossible division-by-zero for window shots
CID 1040148
2014-03-13 12:50:56 -04:00
Mike Blumenkrantz cea010dce0 bugfix: don't crash when saving screenshots with no file extension
CID 1132744
2014-03-13 12:35:43 -04:00
Carsten Haitzler 8285b8ea6b shot - check zone null before using 2014-01-22 12:27:00 +09:00
Carsten Haitzler b399b6a9ca e shot - allow params to share/save now (also specify quality and screen) 2014-01-21 21:21:13 +09:00
Mike Blumenkrantz 86656e4df9 compositor rewrite / charlie-foxtrot situation
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
2014-01-14 20:22:02 -05:00
Mike Blumenkrantz 2ea6870f10 bugfix: check shot filename for actual file extension, not just extension string
T684
2013-12-24 20:52:59 -05:00
Mike Blumenkrantz 0d10bd1ab0 block window shot menu item when window is not visible
T478
2013-11-26 11:55:41 -05:00
Mike Blumenkrantz 505cec1d91 giant comp rejiggering commit #5:
* border frame/object now drawn directly on compositor canvas

* border shadows now in border theme with edje hint, non-updated themes still receive comp object shadows FOR NOW

* e_border MOVE/RESIZE pointer mode defines are now e_pointer.h enums

* added BD_CHANGED() util macro for setting bd->changed and printing a debug line to assist in finding places where this all-important flag is wrongly set

* bd->bg_win removed entirely

* bd->pointer objects moved to compositor object; now only one pointer object exists for each compositor

* resizing windows now shows a new and totally-intended scaling effect for window contents

* some additional retooling of border deletion/free callbacks

* fixed lurking potential bug where window could recieve focus from autoraise timer after border had been deleted

* more comp shape improvements/rewrites

* desk transitions are now BROKEN(ish)

* various modules updated to not be totally broken with these changes
2013-04-15 08:39:16 +01:00
Carsten Haitzler 5a86b057b8 remove azy code and build/configure checks. after zmike made it plain
azy will never become part of efl, and things like being able to do
http get/posts etc. should be part of efl itself as a core feature,
then we forever will have to choose ecore_con_url or some efl
mechanism OR azy.. or go implement both always, and implementing both
is just stupid. imlementing azy only means we add more dependencies
outside of efl and we repeat the mistakes of the past with the split
tree, or we implement the efl method only (ecore-con-url), so i'm
choosing the one with the least dependencies. call me if this position
on azy outside of efl changes.
2013-03-27 21:50:49 +09:00
Mike Blumenkrantz 7e1843207c update azyshot to new api 2013-03-25 08:24:35 +00:00
Mike Blumenkrantz 5a61d5f733 when azy is enabled, shot module now uses it (successfully!) for uploading 2013-03-15 13:35:46 +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
ChunEon Park 2eab902bc1 e/shot - removed unnecessary line
SVN revision: 83129
2013-01-23 09:07:02 +00:00
Maxime Villard 4a52c46268 From: Maxime Villard <rustyBSD@gmx.fr>
Subject: [E-devel] [e][PATCH] Optimizations v2
Date: Fri, 21 Dec 2012 22:17:32 +0100

Hi,
same patch as before: removed useless nullchecks and
switched some free()'s to E_FREE().



SVN revision: 81592
2012-12-21 21:31:13 +00:00
Carsten Haitzler 30fe9349c4 fix window screenshotting at least on nvidia... :/
SVN revision: 81466
2012-12-20 15:10:50 +00:00
Carsten Haitzler 1f745881d9 series of dialogs that were not resizable but should be, are now.
SVN revision: 81434
2012-12-20 10:07:30 +00:00
Massimo Maiurana 9f1d6e067e Store and handle action names correctly. (patch from Igor Murzov)
SVN revision: 81049
2012-12-16 16:58:17 +00:00
Mike Blumenkrantz 90659a081c "share" button on screenshot now has a confirm dialog because apparently "share" is too vague and we need users to explicitly waive their privacy rights
ticket #1985


SVN revision: 80959
2012-12-14 16:02:03 +00:00
Mike Blumenkrantz 8f0efbf740 fix possible crash in shot module
SVN revision: 80875
2012-12-13 14:56:53 +00:00
Carsten Haitzler b3b09ae9e0 actually us fdopen and hex, and random numbers for tmp shot file.
SVN revision: 80571
2012-12-10 07:13:55 +00:00
Mike Blumenkrantz 68e6b07cd7 all dialogs are no longer resizable
SVN revision: 80032
2012-12-03 09:24:12 +00:00
Mike Blumenkrantz c6a9c34e7f giant header overhaul which removes all the stupid one line function prototype headers and e_mod_main.h headers that contain nothing but unnecessary module api prototypes
SVN revision: 79908
2012-11-30 14:38:34 +00:00
Sebastian Dransfeld 2723076d62 e/shot: use mkstemps when template has ext
SVN revision: 79247
2012-11-13 21:35:40 +00:00
Mike Blumenkrantz 5231b6c6aa shot module improvements:
* no longer init curl every time a shot is uploaded
* disable share dialog's Cancel button once upload is complete


SVN revision: 79147
2012-11-12 10:28:00 +00:00
Mike Blumenkrantz cd4c26b0f5 use list handler macro
SVN revision: 79143
2012-11-12 10:00:08 +00:00
Mike Blumenkrantz 03b8d16952 clamp shots to correct geometry to prevent SIGFPE which hopefully nobody noticed
SVN revision: 78521
2012-10-26 10:45:24 +00:00
Mike Blumenkrantz b17f560116 fix taking window shots when window is partially offscreen by clamping shot to screen geometry
ticket #1667


SVN revision: 78519
2012-10-26 10:33:22 +00:00
Daniel Juyung Seo cbdffbc06b e17 shot: now escape closes screenshot window.
SVN revision: 77018
2012-09-22 14:13:31 +00:00
Gustavo Sverzut Barbieri 9022690ed6 shot: be loud about saving errors.
everytime I type "/tmp/bla.png" as save file I get errors and it's silent.



SVN revision: 76480
2012-09-11 23:01:32 +00:00
Mike Blumenkrantz 765c24f6c6 account for vertical multi-monitor layouts with screenshots
ticket #1157


SVN revision: 76192
2012-09-05 11:55:12 +00:00
Vincent Torri f17997b7cc E17: free the string after copying, not before
reported by Maxime Villard

SVN revision: 75717
2012-08-26 21:34:25 +00:00
Vincent Torri 837d3fa390 E17: fix FIXME's
patch by Maxime Villard

SVN revision: 75716
2012-08-26 19:41:34 +00:00