Peter Hutterer
4e33bebcb5
Preselect the correct special function
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 20:41:13 +10:00
Peter Hutterer
8417579b74
Hook up the radio buttons in the button map dialog
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 20:31:58 +10:00
Peter Hutterer
b795dd18ba
Drop the height request for the listboxrow in the button interface
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 20:31:24 +10:00
Peter Hutterer
66a8f1cde0
Preselect the right action type in the button dialog
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 17:39:27 +10:00
Peter Hutterer
adf191f0ef
Hook up the special function combo box
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 17:22:28 +10:00
Peter Hutterer
606fd8f243
ratbag: hook up the dbus buttons
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 17:21:59 +10:00
Peter Hutterer
032ad93c90
Read buttons from DBus
...
Or at least what ratbagd currently exports
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-23 13:32:00 +10:00
Peter Hutterer
19e9df2643
Make RatbagDBus the parent class for all ratbag objects
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-23 13:24:14 +10:00
Peter Hutterer
5dc6f78797
Show a button map dialog on button click
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-23 13:19:43 +10:00
Peter Hutterer
ad2d9c3da0
Make sure the error window is actually shown
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-23 11:50:29 +10:00
Peter Hutterer
28aabd73f4
Move window init into Piper's init
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:58:37 +10:00
Peter Hutterer
c7b2003786
Split ratbag init into a helper function
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:57:49 +10:00
Peter Hutterer
7df603409e
Hook up the profile buttons to update from the device
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:44:30 +10:00
Peter Hutterer
4876bab591
First selected profile is the current one, not the active one
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:44:30 +10:00
Peter Hutterer
039f8fca9f
Hook up resolution changes
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:44:30 +10:00
Peter Hutterer
c92330d1a4
Hook up setting the report rate
...
Still missing from libratbag though
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:44:30 +10:00
Peter Hutterer
062cdf9b61
Move the resolution button signal connections into a helper
...
Only connect the signals when we've set the values in the GUI. Otherwise any
change will trigger a cascade of signals (for potentially unset values) that
get written to the device.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 14:44:30 +10:00
Peter Hutterer
8f37c727a3
Show an error for unswitchable devices
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 13:55:51 +10:00
Peter Hutterer
0f5e246608
Move the GUI updates into a separate function so we can call it repeatedly
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 13:55:51 +10:00
Peter Hutterer
32a61806d2
Drop two gtk style calls that don't have any effect anyway
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 10:20:55 +10:00
Peter Hutterer
0a74635a7c
Reduce the number of resolution spinbuttons to the hw resolutions
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 09:50:09 +10:00
Peter Hutterer
31e41eb06c
Use show() instead of show_all()
...
This allows us to adjust visibility defaults during init.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 09:49:36 +10:00
Peter Hutterer
2d562a50c9
Deal with devices with less than 5 resolutions
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 16:52:25 +10:00
Peter Hutterer
d09890f8ab
piper: handle dbus unavailable error case
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 12:34:55 +10:00
Peter Hutterer
39723f76ec
ratbag: read capabilities on init
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 12:31:51 +10:00
Peter Hutterer
4f9ab598d1
ratbag: add a dbus wrapper class
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 12:19:04 +10:00
Peter Hutterer
6226d52e7f
ratbag: if we don't find devices/profiles/resolutions return an empty list
...
And reset the various indices we use to -1 so we can return None when we try
to access them.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 11:24:19 +10:00
Peter Hutterer
f65bc6fedd
piper: handle the no devices case with an error dialog
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 11:17:37 +10:00
Peter Hutterer
06789b03b2
Add a basic dbus interface to ratbagd
2016-02-17 16:44:54 +10:00
Peter Hutterer
3cd3f4e1a5
Add a README
2016-02-12 11:34:22 +10:00