aboutsummaryrefslogtreecommitdiffstats
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add CoreLocation (OSX) location providerJon Lund Steffensen2014-12-154-0/+234
| | | | | Similarly to the Geoclue provider, the CoreLocation provider only requests the location on startup.
* Add Quartz (OSX) gamma adjustment methodJon Lund Steffensen2014-12-154-0/+217
|
* colorramp: Add float-typed colorramp_fill() equivalentJon Lund Steffensen2014-12-152-4/+29
|
* Fix #80: Add Geoclue2 location providerJon Lund Steffensen2014-12-154-1/+346
| | | | | | | This simply runs a GLib main loop when the location is requested and tries to get the location from GeoClue2. We need to run a main loop since the location is not immediately available, instead it becomes available through a signal.
* systemtime: Use gettimeofday if POSIX timers not availableJon Lund Steffensen2014-12-151-12/+25
|
* redshift-gtk: Relay USR1 signal to redshift processJon Lund Steffensen2014-12-061-1/+8
| | | | This also adds SIGINT to the signals handled by redshift-gtk.
* redshift-gtk: Forward errors from child to stderrJon Lund Steffensen2014-11-041-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`).
* Fix #112: Do not buffer lines from child indefinitelyJon Lund Steffensen2014-11-031-2/+3
|
* Fix #105: Limit decimals in displayed location to twoJon Lund Steffensen2014-08-161-1/+1
|
* Fix #90: Print N/S and E/W in the locationMattias Andrée2014-08-162-3/+5
|
* Check for strdup failure in location-geoclueMattias Andrée2014-05-131-0/+8
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* redshift-gtk: Notify desktop about startup completionJon Lund Steffensen2014-05-081-1/+4
|
* Add support for custom transition start and end elevationMattias Andrée2014-05-071-9/+30
| | | | | | | | Implemented through config options transition-high and transition-low (there is no command line switch at this point). Determines at what solar elevation Redshift will change from night to transition period to day. Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Fix #41: Do not jump to 0 % or 100 % when changing direction of transitionMattias Andrée2014-05-071-55/+26
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Fix line splitting logic.Maks Verver2014-04-191-3/+4
|
* Fix #64: Fix Geoclue support when run outside of XJon Lund Steffensen2014-04-131-6/+18
|\ | | | | | | | | Fix check of error value returned. Geoclue requires DISPLAY to be set, so try DISPLAY=:0 if not already set.
| * Try to use DISPLAY=:0 if not in XMattias Andrée2014-04-111-0/+4
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
| * Do not segfault just because an error has not been givenMattias Andrée2014-04-111-6/+14
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | Fix #66: Do not distribute redshift-gtk, only redshift-gtk.inJon Lund Steffensen2014-04-131-1/+1
| |
* | Fix #67: Geoclue should pull in Glib as dependencyJon Lund Steffensen2014-04-131-1/+4
| | | | | | | | | | Add checks in configure.ac for Glib and pull in through Makefile.am when Geoclue support is enabled.
* | redshift-gtk: Fix crash when toggling state using the status iconJon Lund Steffensen2014-04-111-1/+5
|/
* Fix #22: remove initial underscore from include guardsJon Lund Steffensen2014-03-2312-36/+36
|
* [redshift-gtk] Add BSD support to proc title settingPhilipp Hagemeister2014-03-231-9/+20
|
* Fix #40: redshift-gtk: toggle_item is checkbox that follows the iconMattias Andrée2014-03-231-6/+8
| | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Merge pull request #46 from maandree/gammaJon Lund Steffensen2014-03-231-6/+5
|\ | | | | Apply gamma after brightness and temperature
| * Apply gamma after brightness and termperatureMattias Andrée2014-03-181-6/+5
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | Merge pull request #42 from maandree/gamma-drmJon Lund Steffensen2014-03-225-1/+366
|\ \ | | | | | | Support for running Redshift outside X using libdrm
| * | Support for running Redshift without a graphical environment in Linux by using Direct Rendering ManagerMattias Andrée2014-03-225-1/+366
| |/ | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | Makefile.am: Substitute AM_CPPFLAGS for deprecated INCLUDESJon Lund Steffensen2014-03-221-1/+1
| |
* | [gtk] Set proc titlePhilipp Hagemeister2014-03-172-0/+17
|/ | | | | 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`.
* Merge remote-tracking branch 'maandree/leaks'Jon Lund Steffensen2014-03-132-0/+6
|\
| * Free resources from config-ini.c on exitMattias Andrée2014-03-132-0/+6
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | config-ini: Simplify file path construction for XDG_CONFIG_DIRSJon Lund Steffensen2014-03-131-17/+29
| | | | | | | | Add comment pointing to the XDG Base Directory Specification.
* | fopen directly instead of stat:ingMattias Andrée2014-03-131-25/+14
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | Look for configuration file in XDG_CONFIG_DIRS and /etcMattias Andrée2014-03-111-3/+30
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | When looking for a redshift.conf file do not just check environment variable, also check that the file existsMattias Andrée2014-03-111-9/+21
| | | | | | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* | If even HOME is missing look up the user's home directory from passwdMattias Andrée2014-03-111-0/+12
|/ | | | Signed-off-by: Mattias Andrée <maandree@operamail.com>
* Fix PyGI deprecated warningsTingPing2014-01-011-12/+12
|
* Port redshift-gtk to Python3TingPing2014-01-013-8/+15
| | | | Python 2 is no longer supported
* Merge pull request #19 from TingPing/patch-1Jon Lund Steffensen2013-12-291-2/+2
|\ | | | | Load config from %LOCALAPPDATA%\redshift.conf on Windows
| * Load config from %LOCALAPPDATA%\redshift.conf on WindowsTingPing2013-12-291-2/+2
| |
* | Fix building on WindowsTingPing2013-12-291-2/+0
|/
* Make redshift-gtk read output of the redshift child process.Jon Lund Steffensen2013-12-121-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.
* redshift-gtk: Use new GIR Gtk/Glib/AppIndicator bindingsJon Lund Steffensen2013-12-111-26/+24
|
* redshift-gtk: Make custom rule in Makefile.am silentJon Lund Steffensen2013-12-101-1/+1
|
* Only start "dummy" gamma method if explicitly requestedJon Lund Steffensen2013-12-092-5/+10
|
* Remove Gnome Clock location providerJon Lund Steffensen2013-12-094-283/+0
| | | | | | | | This was basically a hack that happened to work because the Gnome Clock applet could store the current location of the user, and Redshift was able to fetch this location through GConf. Since Redshift for some time now has supported a config file where the location can be set, there is not really any reason to use an external, fragile solution to do the same.
* geoclue: Disable deprecated g_type_init() when glib >= 2.35Jon Lund Steffensen2013-12-091-1/+6
|
* Do not allow NULL keys when setting optionsJon Lund Steffensen2013-12-096-49/+40
| | | | | | | This should fix a bug where command line options for the "manual" location provider cannot override the config file. To keep compatability with previous versions the command line parser will still special case parsing "-l LAT:LON" and set the correct options in "manual".
* Constify gamma parameter to set_temperature() methodsJon Lund Steffensen2013-12-0911-12/+12
|