Commit Graph

176 Commits

Author SHA1 Message Date
Lucas De Marchi 0000e87ffc e/modules: delete old Makefile.am's
SVN revision: 78983
2012-11-07 21:50:53 +00:00
Lucas De Marchi 92eee9068a e: use AM_CPPFLAGS instead of INCLUDES
Get rid of warnings like below with recent automake (1.11 and newer):
src/bin/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/bin/Makefile.am: installing './depcomp'
src/modules/access/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')



SVN revision: 78720
2012-10-31 20:40:40 +00:00
Massimo Maiurana 6f4591eed2 updating russian translation
SVN revision: 78648
2012-10-30 12:10:17 +00:00
Christopher Michael 222c3326fd E Randr: Don't show outputs which are not connected.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78388
2012-10-24 06:28:01 +00:00
Christopher Michael 00fb03ce4c E (RandR): Remove unused function & prototype.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78188
2012-10-18 13:00:48 +00:00
Christopher Michael 461c733145 E (RandR): Use a "normal" resolution (640x480) not (640x640).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78187
2012-10-18 12:59:44 +00:00
Christopher Michael 4a09315601 E (RandR): Better monitor movement/snapping.
NB: Still not 100%. There are some corner cases where things fall
through :( If someone wants to jump in and help finish this off, that
would be great :) It's very close to being done.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78186
2012-10-18 12:59:32 +00:00
Carsten Haitzler c824b1a1e1 fix segv's in randr dialog. :)
SVN revision: 77943
2012-10-13 03:18:58 +00:00
Christopher Michael cd0ad11fa8 E (RandR): After we have applied the changes for a monitor, tell it to
'reset'.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77891
2012-10-11 14:29:20 +00:00
Christopher Michael 44a95f2797 E (RandR): Add function to 'reset' a monitor's changes. This is used
after any user modifications have been applied so that we an reset the
'original' values to the 'currently applied' values. This helps to
keep the Apply button in sync.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77890
2012-10-11 14:29:17 +00:00
Christopher Michael c063ed25ac E (RandR): Add function prototype to reset monitor changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77889
2012-10-11 14:29:13 +00:00
Christopher Michael 39bb5b2bbd E (RandR): Skip monitor during apply if no changes were made.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77888
2012-10-11 14:29:10 +00:00
Christopher Michael 79339fb431 E (RandR): Remove dead code lines.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77887
2012-10-11 14:29:07 +00:00
Christopher Michael 1756c3de92 E (RandR): Remove dead comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77886
2012-10-11 14:29:04 +00:00
Christopher Michael e0bb649b07 E (RandR): Reduce potential variable usage in geometry_get function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77885
2012-10-11 14:29:01 +00:00
Christopher Michael 931a9f4d05 E (RandR): Remove dead code line.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77884
2012-10-11 14:28:58 +00:00
Christopher Michael 24d5040564 E (RandR): If we have a crtc when getting monitor geometry, then use
that for width & height.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77883
2012-10-11 14:28:51 +00:00
Christopher Michael 62644089e9 E (RandR): Setup defaults before we assign output & crtc.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77882
2012-10-11 13:51:39 +00:00
Christopher Michael c9edc0c734 E (RandR): If the monitor does not have a CRTC because it was
disabled, try to find an available one so that we can re-enable the
monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77881
2012-10-11 13:51:33 +00:00
Christopher Michael bc3d8d18e2 E (RandR): Fix case where a disabled monitor would show up with no
mode, or size.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77879
2012-10-11 13:01:04 +00:00
Christopher Michael 888e820aca E (RandR): Remove dead debug code. Reenable crtc check to avoid
potential segv.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77877
2012-10-11 12:49:47 +00:00
Christopher Michael 33952ef188 E (RandR): Remove dead debug code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77876
2012-10-11 12:49:44 +00:00
Christopher Michael 6e89ed1e0c E (RandR): Rework Applying the randr settings. Now we will only need
to apply what has changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77874
2012-10-11 12:42:40 +00:00
Christopher Michael c59e752325 E (RandR): Add function to get if randr widget changed.
Rework the "changed" code so that now Apply will enable/disable
correctly based on what changes are in the monitors.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77873
2012-10-11 12:42:37 +00:00
Christopher Michael f7ee5261b9 E (RandR): Add function prototype to get if randr widget changed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77872
2012-10-11 12:42:34 +00:00
Christopher Michael 71eeb7c458 E (RandR): Whitespace removal.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77871
2012-10-11 12:42:31 +00:00
Christopher Michael e005f0d4bf E (RandR): Add some internal functions to reduce duplicated code
(background set, modes_fill, etc.
Add structure to smart_data so we can store original values and
current values. This allows us to selectively apply changes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77870
2012-10-11 12:42:29 +00:00
Christopher Michael 21bf9173f5 E (RandR): Add function prototype to get any changes from the monitor.
Add enum so that we can keep track of exactly what has changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77869
2012-10-11 12:42:26 +00:00
Christopher Michael f4cc7d989d E (RandR): Use monitor function to get proper output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77868
2012-10-11 12:42:23 +00:00
Christopher Michael 23fb072172 E (RandR): Add function to retrieve monitor's output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77867
2012-10-11 12:42:20 +00:00
Christopher Michael 2ab321cf3b E (RandR): Add function prototype to retrieve monitor's output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77866
2012-10-11 12:42:00 +00:00
Christopher Michael 01edd96d74 E (RandR): Fix issue where disabled monitors would not show up
correctly.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77761
2012-10-10 12:59:56 +00:00
Christopher Michael dbc528c0f9 E (RandR): Create monitors based on outputs, not crtcs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77760
2012-10-10 12:59:53 +00:00
Christopher Michael 18432a087c E (RandR): Add checks for current_mode being valid.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77747
2012-10-10 10:31:17 +00:00
Christopher Michael 9fa4848a0e E (RandR): Don't segfault if no current_mode is set for a monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77746
2012-10-10 10:29:09 +00:00
Christopher Michael 596d53e06a E (RandR): Limit size of livethumb to be the maximum canvas size of
the monitor object. (should reduce memory footprint for randr dialog).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77744
2012-10-10 10:23:33 +00:00
Christopher Michael fed73888f6 E (RandR): Make sure we have hTotal and vTotal from the mode before
trying to calculate refresh rate.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77743
2012-10-10 10:10:25 +00:00
Christopher Michael 5d376283c9 E (RandR): Ooops, remove unused variable.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77726
2012-10-10 08:46:07 +00:00
Christopher Michael 3db9434a48 E (RandR): When we search for a resolution, if we did not find one
which matched the existing refresh rate, then search again but do not
take refresh rate into account.

NB: Should fix Raster's "resolution not changing" problem.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77724
2012-10-10 08:45:00 +00:00
Christopher Michael 236117cd86 E (RandR): Do not 'snap' monitors on rotation. It changes the position
of them in the layout and thus causes problems when we Apply these
changes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77720
2012-10-10 08:14:20 +00:00
Christopher Michael cc188bee3a E (RandR): Check if a monitor has been changed before doing an Apply.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77715
2012-10-10 07:55:13 +00:00
Christopher Michael 136cc5035a E (RandR): Add function & prototype to return if a monitor has been
changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77714
2012-10-10 07:55:11 +00:00
Christopher Michael 5347a339b3 E (RandR): Actually, let's readd the changed flag so we can skip a
monitor during Apply if it has not changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77713
2012-10-10 07:55:08 +00:00
Christopher Michael 8b5d261d50 E (RandR): Remove dead code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77712
2012-10-10 07:55:06 +00:00
Christopher Michael b10d7e3c9a E (RandR): Remove dead code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77711
2012-10-10 07:55:03 +00:00
Christopher Michael 98a5532b44 E (RandR): Support applying enable/disable of a monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77710
2012-10-10 07:55:00 +00:00
Christopher Michael c646c7de26 E (RandR): Add function to return monitor's connected state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77709
2012-10-10 07:54:57 +00:00
Christopher Michael f2d5c58121 E (RandR): Add function prototype for getting monitor's connected state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77708
2012-10-10 07:54:48 +00:00
Christopher Michael 8ff992b7a7 E (RandR): Remove _fill_data function (not needed). Implement Applying
of any changes to monitors.

NB: Be careful ... this will actually apply any changes now. Tested
here and appears to work ok, but YOU HAVE BEEN WARNED !!! If you apply
something and it turns your monitor into a paperweight, don't cry to me.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77693
2012-10-10 06:20:41 +00:00
Christopher Michael 40e42c4d28 E (RandR): Add function prototypes for getting position, orientation,
and mode from monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77692
2012-10-10 06:20:39 +00:00