Commit graph

43 commits

Author SHA1 Message Date
Olivier Fourdan
06554439b7 wacom: Do calibration for the selected tool only
As different tools may have different resolutions (e.g.
touch vs. stylus on tablets which support both).

https://bugzilla.gnome.org/show_bug.cgi?id=680114
2012-07-19 16:39:36 +01:00
Olivier Fourdan
1fdfa6bc32 wacom: show calibration success
by drawing an "emblem-ok-symbolic" icon when calibration is
successful

https://bugzilla.gnome.org/show_bug.cgi?id=668610
2012-07-16 17:25:13 +01:00
Olivier Fourdan
978aa81a2c wacom: Cancel calibration if window loses focus
Make the calibrator window stay above other windows and cancel
calibration if/when the calibrator loses input focus.

https://bugzilla.gnome.org/show_bug.cgi?id=675354
2012-06-14 18:09:52 +01:00
Bastien Nocera
f1775d373d wacom: Hide cursor when calibrating
Otherwise the cursor might get in the way.

https://bugzilla.gnome.org/show_bug.cgi?id=668609
2012-01-24 20:23:31 +00:00
Jason Gerecke
bb38492e52 wacom: Have calibrator take into account window geometry
Current calculations assume the window is anchored at 0,0. This
obviously poses a problem in a multi-monitor setup.
2012-01-16 11:55:00 +00:00
Bastien Nocera
705287d5c7 wacom: Fix insane Calibrator API
So that we don't have to run gtk_main() in it.
2012-01-12 18:57:20 +00:00
Bastien Nocera
a227cd7ca9 wacom: Add more padding around the clock 2012-01-12 17:38:05 +00:00
Bastien Nocera
aec7039858 wacom: Remove rectangle around main text 2012-01-12 15:04:05 +00:00
Bastien Nocera
956590dd8b wacom: Remove unused geometry struct member 2012-01-11 20:09:40 +00:00
Bastien Nocera
6ff3fc49db wacom: Fix frame around error message 2012-01-11 19:55:10 +00:00
Bastien Nocera
1d6ce52ad7 wacom: Text is white 2012-01-11 19:54:42 +00:00
Bastien Nocera
80f78151f8 wacom: Translate error message 2012-01-11 19:46:25 +00:00
Bastien Nocera
da3080d910 wacom: Avoid confusing debug message
Don't print bogus values if the calibration didn't finish
2012-01-11 19:26:58 +00:00
Bastien Nocera
ea0410764a wacom: Move window creation to _new() 2012-01-11 19:23:06 +00:00
Bastien Nocera
9845e4d582 wacom: Hide the CalibArea structure
And typedef it
2012-01-11 19:17:14 +00:00
Bastien Nocera
6e179b433e wacom: Make the window a tiny bit transparent 2012-01-11 19:16:10 +00:00
Bastien Nocera
5feefb444d wacom: Remove the use of a drawing area
We don't need one, we can draw on the window directly.
2012-01-11 19:02:37 +00:00
Bastien Nocera
f6fa0ee689 wacom: Fix memory leak 2012-01-11 18:56:09 +00:00
Bastien Nocera
8843ad8fb2 wacom: Make escape key exit
And nothing else
2012-01-11 18:39:09 +00:00
Bastien Nocera
90c7881b5f wacom: More space between clock and help text 2012-01-11 18:38:49 +00:00
Bastien Nocera
420a068209 wacom: Match help text with mockups 2012-01-11 18:38:30 +00:00
Bastien Nocera
30536b4ec0 wacom: Defuzz lines and circles
By lining them up with the pixels.
2012-01-11 18:21:51 +00:00
Bastien Nocera
f958f8c713 wacom: Remove unneeded cairo_save()/restore() 2012-01-11 18:21:21 +00:00
Bastien Nocera
4d7bb61411 wacom: Set the text frame colour to be white 2012-01-11 18:20:27 +00:00
Bastien Nocera
ce61526b41 wacom: Black background by default 2012-01-11 18:19:49 +00:00
Bastien Nocera
c79b324d5e wacom: Tweak the size of circles 2012-01-11 18:16:36 +00:00
Bastien Nocera
65485f44ee wacom: Only the current calibration target is visible 2012-01-11 17:27:00 +00:00
Bastien Nocera
0e6e52f822 wacom: Add second larger outer circle 2012-01-11 17:19:18 +00:00
Bastien Nocera
2669ec6ead wacom: Make inner circle bigger 2012-01-11 17:18:36 +00:00
Bastien Nocera
5a69e99103 wacom: Make calibration targets bigger 2012-01-11 16:31:18 +00:00
Bastien Nocera
f547c902b6 wacom: Add i18n support to the calibrator 2012-01-11 16:21:44 +00:00
Bastien Nocera
03a18c7dc4 wacom: Use Pango and GTK+ to render text
Rather than cairo directly, with all that it entails.
2012-01-11 16:13:13 +00:00
Bastien Nocera
a5f7b09106 wacom: Fix warning with unfinished timer
We need to remove the timeout once we're done, otherwise it
will keep on running.
2012-01-10 20:34:38 +00:00
Bastien Nocera
7567d678f9 wacom: Simplify object creation 2012-01-10 20:14:50 +00:00
Bastien Nocera
f52a0c8104 wacom: Remove printf() calls 2012-01-10 20:13:20 +00:00
Bastien Nocera
ccdb171723 wacom: Remove dead expose-event code
It's unused, and wasn't called.
2012-01-10 20:00:34 +00:00
Bastien Nocera
7b82472645 wacom: s/axys/axis/ 2012-01-10 19:19:24 +00:00
Bastien Nocera
4618d62a48 wacom: Those functions don't need to be public
So don't export them in the .h file
2012-01-10 19:18:33 +00:00
Bastien Nocera
e44a3327f8 wacom: Remove custom MAX() macro 2012-01-10 19:12:18 +00:00
Bastien Nocera
0d98523b7b wacom: Remove M_PI redefinition 2012-01-10 19:12:18 +00:00
Bastien Nocera
8516b6a1f9 wacom: Remove custom boolean type 2012-01-10 19:12:18 +00:00
Jason Gerecke
4fecb4c01d wacom: Implement g-c-c calibration functionality
Adds and handles callback from the "Calibrate" button.
When clicked, we get the current calibration and feed
it in to the calibration utility. After it completes
we get back a modified calibration and an indication
of success. If it was successful we apply the changes,
if not, we ignore the modifed calibration.

https://bugzilla.gnome.org/show_bug.cgi?id=657423
2012-01-10 18:28:27 +00:00
Jason Gerecke
e50dbea195 wacom: Bring over files from xinput-calibrator and build utility
Copies over files from a trimmed version of xinput-calibrator and
modifies the Makefile.am to build the program as a seperate utility.
This is just to verify the functionality of the code when built with
gnome-control-center.

https://bugzilla.gnome.org/show_bug.cgi?id=657423
2012-01-10 18:26:55 +00:00