Commit graph

531 commits

Author SHA1 Message Date
David King
745c7ef9de panels: Fix all but one uses of use-stock property
Avoid the deprecated use-stock.

https://bugzilla.gnome.org/show_bug.cgi?id=736052
2014-09-04 14:14:31 +01:00
David King
cea2c74a3e panels: Avoid deprecated has-resize-grip property
https://bugzilla.gnome.org/show_bug.cgi?id=736052
2014-09-04 14:11:07 +01:00
Bastien Nocera
c58b8b0b90 wacom: Fix styluys back/forward button assignments
The list store contained the wrong values.

Spotted by the.viclim@gmail.com

https://bugzilla.gnome.org/show_bug.cgi?id=728880
2014-07-17 16:55:50 +02:00
Carlos Garnacho
b1ae5c734a wacom: Fix x/y ranges' swapping when calibrating on rotated screens
The previous axis swapping code would oddly rely on the input coordinates
remaining on untransformed device coordinates, while those are gotten on
screen coordinates (hence rotated), this would cause swapping not to kick
in, and result in swapped X/Y scaling to be applied to X/Y ranges.

So make the axis swapping code be calculated upon screen coordinates, as
the collected points already are, and swap the applied scalings if
necessary.

Also, the code that swapped coordinates before returning to the caller
would scramble min/max values when swapping x/y. Fix that too, minimum
and maximum should stay like that when swapping axes.

https://bugzilla.gnome.org/show_bug.cgi?id=732442
2014-07-01 18:38:22 +02:00
Carlos Garnacho
4a9bde0679 calibrator: Use G_STMT_START/END on SWAP define
And let it pass the type, so it can be used on other than integers.

https://bugzilla.gnome.org/show_bug.cgi?id=732442
2014-07-01 18:38:22 +02:00
Christophe Fergeau
2096cacaf5 wacom: Use AM_CPPFLAGS rather than INCLUDES
This is deprecated in newer automake versions, and this causes warnings
with automake 1.14:
panels/printers/Makefile.am:3: warning: 'INCLUDES' is the old name for
AM_CPPFLAGS' (or '*_CPPFLAGS')

https://bugzilla.gnome.org/show_bug.cgi?id=732189
2014-06-25 12:46:43 +02:00
Yosef Or Boczko
c5f868994b wacom: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730597
2014-05-23 12:31:53 +03:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Bastien Nocera
49065829ba wacom: Update from gnome-settings-daemon 2014-01-28 15:55:35 +01:00
Carlos Garnacho
c78e22b911 wacom: Fix first animation of calibration UI
The "target" was seen moving from 0,0 to the first calibration
point, so 1) avoid target relayouts when the window is still
being positioned and 2) start the "target" actor as hidden so
it isn't seen moving from anywhere when first shown.

https://bugzilla.gnome.org/show_bug.cgi?id=719698
2013-12-16 12:58:35 +01:00
Carlos Garnacho
ee2afb9bd4 wacom: Protect calibrator UI to spawn animations multiple times
The window state may be updated more than once, so only initiate
the UI and animations when it's first called.

https://bugzilla.gnome.org/show_bug.cgi?id=719698
2013-12-16 12:58:29 +01:00
Carlos Garnacho
911518d683 wacom: Don't leave stray timelines on the calibration UI
Keep the reference for the error/helper messages animations in
the CalibArea struct, so those are destroyed and not leaked, or
possibly crashing when running on already destroyed actors if
the dialog gets cancelled at the right time.

https://bugzilla.gnome.org/show_bug.cgi?id=719698
2013-12-16 12:58:07 +01:00
Carlos Garnacho
e97143e025 wacom: Forgive inconspicuous double clicks when calibrating
Those were likely not meant, and will surely make you start over
again on the calibration process.

https://bugzilla.gnome.org/show_bug.cgi?id=719705
2013-12-16 12:44:42 +01:00
Carlos Garnacho
e2464ee773 wacom: Don't use monitor geometry X/Y when calculating calibration
Calibration must be performed based on the device w/h ranges and the
screen size, so in which coordinates the monitor is virtually mapped
matters little on device coordinates. This fixes calibration of devices
attached to a monitor elsewhere than (0,0) in the screen.

https://bugzilla.gnome.org/show_bug.cgi?id=719574
2013-12-16 12:42:01 +01:00
Carlos Garnacho
71945b8156 wacom: Clear background on "target" actor in calibration UI
the actor's draw() method isn't guaranteed to get a pristine surface,
which may cause artifacts if the background is left untouched, so
clear the background each time the actor has to be drawn.

https://bugzilla.gnome.org/show_bug.cgi?id=719701
2013-12-16 12:30:24 +01:00
Carlos Garnacho
fdef36294a wacom: Set several notebooks' show-border property to FALSE
Since GTK+ commit 05b1ea84b, this hint is used in GtkNotebook to add
a GTK_STYLE_CLASS_FRAME when rendering the notebook frame, so the theme
renders those frame-alike. As it's not what we want for the wacom panel,
set show-border to FALSE on all GtkNotebooks.

https://bugzilla.gnome.org/show_bug.cgi?id=710709
2013-12-02 12:29:30 +01:00
Yosef Or Boczko
ae36409c5f wacom: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:34:39 +02:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -05:00
Bastien Nocera
8d7402c04e wacom: Fix slider on Inking Pen page
https://bugzilla.gnome.org/show_bug.cgi?id=711326
2013-11-03 15:05:33 +01:00
Bastien Nocera
95f613bee1 wacom: Fix ~100 pixel offset when calibrating
The calibration gui code moved the targets to x,y, instead of
placing the centre of the target at x,y, leading to a 47 pixel
(half the target's size) offset in both directions (thus 67 pixels
deviation as Pythagorus would tell us).
2013-10-09 12:55:29 +02:00
Bastien Nocera
bf68dfb62d wacom: Fix comment for timeout duration
The comment mentioned 5 seconds, but we use 15 seconds.
2013-10-09 12:18:48 +02:00
Bastien Nocera
18dd6ff04f wacom: Fix incorrect default window information
The window isn't 1x1...
2013-10-08 20:15:55 +02:00
Bastien Nocera
7be584f4f9 wacom: Update from gnome-settings-daemon 2013-10-08 19:25:01 +02:00
Bastien Nocera
297eb6cfbb wacom: Fix use after free
Causing random values in the calibration data.
2013-10-08 18:59:22 +02:00
Bastien Nocera
8e1dd1ae5d wacom: Update from gnome-settings-daemon 2013-10-08 18:55:19 +02:00
Bastien Nocera
4c2c93c01f wacom: Update from gnome-settings-daemon 2013-10-08 18:31:39 +02:00
Bastien Nocera
6aa409ffdb wacom: Reset the calibration before starting a new one
We shouldn't be using the old calibration values to create the
new ones, so reset the "area" settings before starting a new
calibration, and re-apply the saved calibration if the calibration
is cancelled or fails.

https://bugzilla.gnome.org/show_bug.cgi?id=707784
2013-10-08 18:02:43 +02:00
Bastien Nocera
21a2a53fea wacom: Update from gnome-settings-daemon 2013-10-08 17:59:12 +02:00
Bastien Nocera
c9864b1ebc wacom: Fix event filtering in the calibrator
We were always getting the events from the core pointer instead
of the device itself, so threw all of them away.
We need to get the real source device from the event.

https://bugzilla.gnome.org/show_bug.cgi?id=707784
2013-10-08 11:48:13 +02:00
Bastien Nocera
054538c292 wacom: Add some more debug to the calibrator tool 2013-10-04 11:16:45 +02:00
Bastien Nocera
55744f6544 wacom: Fix device filtering in calibration UI
We receive ClutterEvents, not GdkEvents for button presses on
ClutterActors, so use the correct functions to filter devices.

This also fixes the offset used to access the coordinates of the
events. We were actually using the pointer to the source and x
struct members instead of x and y.

https://bugzilla.gnome.org/show_bug.cgi?id=707784
2013-10-04 11:16:45 +02:00
Bastien Nocera
387e3f98f7 wacom: Print debug when calibration is finished 2013-10-04 11:16:45 +02:00
Bastien Nocera
752c964c1c wacom: Align the stylus section with the tablet section
https://bugzilla.gnome.org/show_bug.cgi?id=709360
2013-10-04 09:09:34 +02:00
Giovanni Campagna
77c72eb8ce wacom: adapt to GnomeRR API changes
GnomeRR now returns the EDID IDs as strings directly, so we don't
need to convert them to compare to the settings. Also, we don't
need to filter disconnected outputs, it's done by mutter now.

https://bugzilla.gnome.org/show_bug.cgi?id=705573
2013-08-19 09:58:05 +02:00
Bastien Nocera
c3c2b23487 wacom: Fix possible use before set 2013-07-30 16:42:23 +02:00
Joaquim Rocha
d83e0ff5c1 wacom: Call the OSD window for assigning the tablets' buttons
It falls back to the listbox view in case the OSD cannot be shown.

https://bugzilla.gnome.org/show_bug.cgi?id=704798
2013-07-26 20:04:35 +02:00
Joaquim Rocha
83fdff79bb wacom: Add missing cc-wacom-button-row 2013-07-24 14:42:20 +02:00
Joaquim Rocha
df161dba18 wacom: Use a GtkListBox for the buttons' mapping instead of a GtkTreeView
https://bugzilla.gnome.org/show_bug.cgi?id=703148
2013-07-24 11:18:24 +02:00
Joaquim Rocha
afea7e93f0 wacom: Update from gnome-settings-daemon 2013-07-24 11:18:24 +02:00
Joaquim Rocha
d125505266 wacom: Add gsd-wacom-key-shortcut-button to be updated from g-s-d 2013-07-24 11:17:06 +02:00
Yosef Or Boczko
cf81bc227f wacom: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:59:26 +03:00
Joaquim Rocha
35e3697b1d wacom: Expand columns in buttons' assignment treeview
Because the GtkCellRendererAccel can't almost be seen.

https://bugzilla.gnome.org/show_bug.cgi?id=703043
2013-07-17 15:51:47 +02:00
Joaquim Rocha
97648fe80c wacom: Reduce white-space between tablet and styli controls
https://bugzilla.gnome.org/show_bug.cgi?id=698119
2013-07-15 18:41:23 +02:00
Przemo Firszt
3708eab09d wacom: Show hard-coded action names on OLED too
Show hard-coded action names on OLED as well, not just
for custom actions.

https://bugzilla.gnome.org/show_bug.cgi?id=700498
2013-07-15 18:39:02 +02:00
Joaquim Rocha
edc0a9b11f wacom: Fix discrepancy when switching monitors from g-c-c
The rotation was being set directly from g-c-c when switching
monitors but g-s-d already does this when the display is set to
the tablet. This resulted in a discrepancy between setting the
monitor from g-c-c or from g-s-d when the left-handed mode was on.

https://bugzilla.gnome.org/show_bug.cgi?id=700439
2013-06-10 11:06:43 +02:00
Joaquim Rocha
48164b5a3f wacom: Fix segfault when trying to check if the tablet has a monitor
The check method had been changed in order to use the CcWacomPage
instead of its private struct but one of the calls to it wasn't updated.
2013-06-06 15:32:41 +02:00
Joaquim Rocha
366fd4ba94 wacom: Add command line support for calibration
https://bugzilla.gnome.org/show_bug.cgi?id=692816
2013-06-05 18:29:40 +02:00
Joaquim Rocha
ed3c9badff wacom: Add cc_wacom_page_calibrate and cc_wacom_page_can_calibrate functions
https://bugzilla.gnome.org/show_bug.cgi?id=692816
2013-06-05 18:29:40 +02:00
Joaquim Rocha
e45bafaacb wacom: Add command line argument support for choosing the tablet
https://bugzilla.gnome.org/show_bug.cgi?id=692816
2013-06-05 18:29:40 +02:00
Rui Matos
e87c4ad340 wacom: Set button arrow icons according to locale's text direction
https://bugzilla.gnome.org/show_bug.cgi?id=700543
2013-06-05 11:27:34 +02:00