diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2014-05-08 14:44:54 -0400 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2014-05-08 14:44:54 -0400 |
commit | 241eff8fe7e97faade7446c75ecc19d0d525d4e8 (patch) | |
tree | 7ee6352933aaaa49b0f6996fabdd1169059cb0b6 /src/redshift-gtk/statusicon.py | |
parent | Update po files from source (diff) | |
download | redshift-ng-241eff8fe7e97faade7446c75ecc19d0d525d4e8.tar.gz redshift-ng-241eff8fe7e97faade7446c75ecc19d0d525d4e8.tar.bz2 redshift-ng-241eff8fe7e97faade7446c75ecc19d0d525d4e8.tar.xz |
redshift-gtk: Notify desktop about startup completion
Diffstat (limited to 'src/redshift-gtk/statusicon.py')
-rw-r--r-- | src/redshift-gtk/statusicon.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py index ec0dfe8..2efbc07 100644 --- a/src/redshift-gtk/statusicon.py +++ b/src/redshift-gtk/statusicon.py @@ -28,7 +28,7 @@ import signal, fcntl import re import gettext -from gi.repository import Gtk, GLib +from gi.repository import Gdk, Gtk, GLib try: from gi.repository import AppIndicator3 as appindicator except ImportError: @@ -181,6 +181,9 @@ class RedshiftStatusIcon(object): GLib.io_add_watch(self.process[3], GLib.PRIORITY_DEFAULT, GLib.IO_IN, self.child_data_cb, (False, self.error_buffer)) + # Notify desktop that startup is complete + Gdk.notify_startup_complete() + def start_child_process(self, args): # Start child process with C locale so we can parse the output env = os.environ.copy() |