Hugo Osvaldo Barrera
22bf4fafff
Drop unnecessary __future__ imports
...
These are all active by default on all recent Python versions.
2021-10-30 16:49:41 -04:00
Hugo Osvaldo Barrera
b96d16672b
Drop obsolete encoding declaration
...
This was only parsed in Python 2.
Python 3 only supports UTF-8 for source files, and that's what it uses.
2021-10-30 16:49:41 -04:00
Wojciech Nawrocki
41fb08c059
notify: allow displaying progress
2020-09-28 12:59:04 -04:00
Filipe Laíns
627185079f
flake8: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
33521558ed
pre-commit: initial fix
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Filipe Laíns
72a8d311bc
yapf: change code style to yapf
...
Signed-off-by: Filipe Laíns <lains@archlinux.org>
2020-07-07 15:11:15 +01:00
Roshan Shariff
65824a4c08
ui: add 'desktop-entry' hint to indicate notification source.
...
GNOME requires that notifications have a 'desktop-entry' hint to be
able to filter notifications by application. See
https://wiki.gnome.org/Initiatives/GnomeGoals/NotificationSource .
Fixes pwr-Solaar/Solaar#734
2020-05-01 13:56:22 -04:00
Peter F. Patel-Schneider
3edac85b90
ui: turn on window manager notifications again
2020-02-18 12:17:49 +00:00
Mauro Carvalho Chehab
ea80c6d639
ui: notify.py: disable python Notify extension
...
For whatever reason, this doesn't work on Fedora 26:
06:47:05,925 DEBUG [ReceiverListener:hidraw1] logitech_receiver.base: (13) => r[20 02 0100 0000000000000000000000]
06:47:05,925 DEBUG [ReceiverListener:hidraw1] logitech_receiver.notifications: <PairedDevice(2,2011,K520)> (1.0) custom notification Notification(2,01,00,000000000$
06:47:05,925 WARNING [ReceiverListener:hidraw1] logitech_receiver.notifications: <PairedDevice(2,2011,K520)>: unrecognized Notification(2,01,00,000000000000000000000$
06:47:08,806 ERROR [MainThread] solaar.ui.notify: showing <Notify.Notification object at 0x7f82c2484640 (NotifyNotification at 0x556fa0fc5a40)>
Traceback (most recent call last):
File "./devel/solaar/lib/solaar/ui/notify.py", line 145, in show
n.show()
Error: g-io-error-quark: Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached (24)
So, disable it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-09-11 07:02:48 -03:00
Peter Wu
e1eee2e078
Fix "Gtk was imported without specifying a version first"
...
Fixes the following warnings:
sys:1: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
sys:1: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
2016-03-14 11:33:05 +01:00
Daniel Pavel
9934755566
more translation fixes ( #108 )
2013-08-12 00:32:19 +02:00
Daniel Pavel
c0874220d2
don't str() translated device status; fixes #108
2013-08-08 21:49:50 +02:00
Daniel Pavel
38c76393b1
added copyright notices to all source files
2013-07-15 17:54:42 +02:00
Daniel Pavel
ce9b10dc2d
started i18n support
2013-07-15 17:16:44 +02:00
Daniel Pavel
ba55e4d9bd
import * cleanups
2013-07-05 16:19:49 +02:00
Daniel Pavel
b2f1786eff
use consistent naming of offline state for devices
2013-06-20 14:18:36 +02:00
Daniel Pavel
10e736386b
user module __name__ when initializing logger
2013-06-07 14:28:13 +02:00
Daniel Pavel
eb3e2566e9
comment-out unnecessary logs
2013-06-05 00:32:01 +02:00
Daniel Pavel
88fb8458c1
logging tweaks
2013-06-02 16:16:58 +02:00
Daniel Pavel
37265f25d8
support custom icons in notification messages
2013-06-01 22:32:57 +02:00
Daniel Pavel
5e68094e87
split the about window into its own module
2013-05-04 12:01:28 +02:00
Daniel Pavel
9c621d5816
always try to initialize systray icon and notifications
2013-04-28 15:44:20 +02:00
Daniel Pavel
36f34da227
proper debian packaging, dropper stdeb
2013-01-05 11:48:35 +02:00