aboutsummaryrefslogtreecommitdiffstats
path: root/src/redshift-gtk/statusicon.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-05Move redshift-gtk/ to rootMattias Andrée1-386/+0
Signed-off-by: Mattias Andrée <m@maandree.se>
2025-03-05Resolve redshift/issues/223: redshift-gtk: fix title of window to RedshiftMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <m@maandree.se>
2019-03-03Fix #386: added more suspend durations as requestedhubvu1-1/+3
2018-10-02Status icon: Prefer symbolic icons when availableClement Lefebvre1-10/+21
Use 'redshift-status-on-symbolic' and 'redshift-statys-off-symbolic' if available. If these icons are not present in the icon theme, fallback to 'redshift-status-on' and 'redshift-status-off'. Symbolic icons are the only way for themes to properly support both light and dark panels with grey icons. If the icon name ends with -symbolic, GTK renders the foreground color of the icon based on the color of the panel behind it.
2017-10-13add help message to redshift-gtkSamuel Walladge1-0/+5
2017-07-30statusicon: Use GtkWindow to avoid warningsJon Lund Steffensen1-12/+20
Avoids warnings generated when a GtkDialog is used without a parent window. Also adds fixes for #220 using a solution provided by agnivade.
2017-07-30statusicon: Only add autostart control when supportedJon Lund Steffensen1-10/+11
2017-07-30controller: Emit signal when stoppedJon Lund Steffensen1-0/+5
2017-07-30Move RedshiftController to controller.pyJon Lund Steffensen1-249/+68
2016-10-15add display of color temperature and period in the tooltip status iconAndreev Alexander1-0/+8
2016-01-02 redshift-gtk: Make sure that child process is closed after signalsJon Lund Steffensen1-27/+30
Instead of calling sys.exit() the signal handlers now try to terminate the child process. After the child exits, the process will be reaped by the GLib callback which will call Gtk.main_quit() which will then quit redshift-gtk. This ensures that the redshift process does not outlive the redshift-gtk process.
2015-11-15Fallback if AppIndicator3 req. version unavailableJavier Cantero1-1/+1
Catch in the except block the case when the required version of Appindicator3 is not available to also fallback in GtkStatusIcon widget.
2015-11-14Also specify required AppIndicator3 versionJavier Cantero1-0/+1
Avoid another GObject Introspection warning in redshift-gtk by providing the required version of AppIndicator3 before import it.
2015-11-03Specify required Gtk versionChristian Stadelmann1-0/+3
This fixes a warning when starting redshift-gtk with gtk 3.18.
2014-12-21redshift-gtk: Split status icon into controller and interfaceJon Lund Steffensen1-169/+259
This splits the user interface into, RedshiftController, a GObject subclass that takes care of starting and interacting with the child process, and RedshiftStatusIcon providing the actual user interface.
2014-12-18redshift-gtk: Add docstrings in statusicon moduleJon Lund Steffensen1-2/+46
2014-12-18redshift-gtk: Ignore exception in termwait when child is goneJon Lund Steffensen1-2/+6
The termwait method is used to wait until the child process has quit. Previously this would fail with an exception if the child has already quit. This is now ignored.
2014-12-18redshift-gtk: Remove unnecessary semi-colons at end-of-lineJon Lund Steffensen1-4/+4
2014-12-18redshift-gtk: Show errors from child process in a dialogJon Lund Steffensen1-4/+19
This dialog is shown whenever the child process exits with a non-zero status. The error output from stderr of the child process is buffered in redshift-gtk in case the child exits unexpectedly.
2014-12-06redshift-gtk: Relay USR1 signal to redshift processJon Lund Steffensen1-1/+8
This also adds SIGINT to the signals handled by redshift-gtk.
2014-11-04redshift-gtk: Forward errors from child to stderrJon Lund Steffensen1-2/+13
This requires that the stderr (and stdout) are emptied when the child process exits, otherwise redshift-gtk will exit before the error output is forwarded. Also, the '-v' parameter is moved to the beginning of the command line to avoid error output including this (e.g. `redshift-gtk -l` would complain about the missing location provided `-v`).
2014-11-03Fix #112: Do not buffer lines from child indefinitelyJon Lund Steffensen1-2/+3
2014-08-16Fix #90: Print N/S and E/W in the locationMattias Andrée1-1/+1
2014-05-08redshift-gtk: Notify desktop about startup completionJon Lund Steffensen1-1/+4
2014-04-20Fix line splitting logic.Maks Verver1-3/+4
2014-04-20redshift-gtk: Fix crash when toggling state using the status iconJon Lund Steffensen1-1/+5
2014-04-19Fix line splitting logic.Maks Verver1-3/+4
2014-04-11redshift-gtk: Fix crash when toggling state using the status iconJon Lund Steffensen1-1/+5
2014-03-23Fix #40: redshift-gtk: toggle_item is checkbox that follows the iconMattias Andrée1-6/+8
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-17[gtk] Set proc titlePhilipp Hagemeister1-0/+3
Try to set the process title during startup. Before, redshift-gtk appeared as a python process. This change enables `pgrep redshift-gtk` or `killall redshift-gtk`.
2014-01-01Fix PyGI deprecated warningsTingPing1-12/+12
2014-01-01Port redshift-gtk to Python3TingPing1-5/+5
Python 2 is no longer supported
2013-12-12Make redshift-gtk read output of the redshift child process.Jon Lund Steffensen1-103/+250
This allows redshift-gtk to show the current state of the redshift process. redshift-gtk follows the enable state of redshift and toggles the icon accordingly. The implementation is changed to use glib to spawn the child process instead of relying on python subprocess module. This is necessary because of inflexibility in the python module.
2013-12-11redshift-gtk: Use new GIR Gtk/Glib/AppIndicator bindingsJon Lund Steffensen1-26/+24
2013-03-05Rename gtk-redshift -> redshift-gtk.Jon Lund Steffensen1-0/+0
This is primarily for improved discovery. Some users report that they didn't know about redshift-gtk, but had it been available on tab completion they would have noticed. Also, I think it is in general good practice that closely related programs have the same prefix.
2012-02-03Add "Suspend for X minutes" option to gtk-redshiftJendrik Seipp1-0/+47
2010-10-18Update PO files.Jon Lund Steffensen1-4/+4
Fix switch of status icons in gtk-redshift.
2010-10-18Fix: Set the right icon on indicator applet initialization.Jon Lund Steffensen1-1/+2
2010-10-18Separate the redshift.svg icon into an application icon and a status iconJon Lund Steffensen1-5/+5
(redshift-status-on.svg). Rename redshift-idle.svg to redshift-status-off.svg.
2010-09-04Merge status icon toggle button patch from Francesco Marella.Jon Lund Steffensen1-1/+1
2010-08-18remove unnecessary shebangJon Lund Steffensen1-1/+0
2010-07-21Optimize indicators code.Francesco Marella1-17/+41
User, at configure time, chooses to enable or disable the gui. Determine at runtime whether to use the appindicator or status icon as fallback.
2010-06-22Disable autostart menu item when the desktop file can't be foundFrancesco Marella1-3/+9
2010-06-14Toggle icon of status icon.Jon Lund Steffensen1-0/+4
2010-06-06Add a feature to toggle autostart at loginFrancesco Marella1-0/+9
A launcher is placed in Applications -> Utility. The user toggles autostart through the user interface. The 'xdg' module is required.
2010-06-04Add the autofoo needed to choose GTK+ status icon or app-indicatorFrancesco Marella1-1/+1
Passing 'enable-appindicator=yes' to the configure script the GTK+ status icon will be disabled.
2010-02-11gtk-redshift: Use absolute path when launching redshift process.Jon Lund Steffensen1-1/+1
2010-02-11Turn gtk-redshift into a python module. A launcher script is installedJon Lund Steffensen1-3/+3
in bindir.
2010-02-11gtk-redshift: Use local definitions for locale path.Jon Lund Steffensen1-1/+3
2010-02-10gtk-redshift.py: Use 'redshift' gettext catalogJon Lund Steffensen1-2/+2