Commit Graph
331 Commits
Author SHA1 Message Date
Jon Lund Steffensen 3aa48244b3 Update fedora spec file for Python3 dependency 2014-03-18 16:57:48 +01:00
Jon Lund Steffensen 0ca048651e HACKING: Remove PYTHONHOME from example
Should have been PYTHONPATH but since the path is set by the script it is no
longer necessary.
2014-03-18 16:29:01 +01:00
Jon Lund Steffensen f17e1d1f98 Merge pull request #45 from phihag/setproctitle
redshift-gtk: Set proc title using libc prctl
2014-03-18 16:25:51 +01:00
Jon Lund Steffensen fe002cf541 Merge pull request #48 from maandree/man
Man page improvement and fix typos
2014-03-18 16:13:58 +01:00
Mattias Andrée 757e274836 Use randr in example of conf file instead of vidmode, randr is superior to vidmode because it supports multple monitors where as vidmode only supports multiple screens
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-18 11:20:44 +01:00
Mattias Andrée e119de9aec spello: continously => continuously
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-18 11:17:36 +01:00
Philipp Hagemeister 3e58daa3f4 [gtk] Set proc title
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-03-17 15:37:37 +01:00
Jon Lund Steffensen f5da6bf71f Merge remote-tracking branch 'maandree/leaks' 2014-03-13 12:31:25 +01:00
Jon Lund Steffensen 32d5b17d6d Fixes #38: Merge branch 'xdg-config-dirs' 2014-03-13 01:50:43 +01:00
Jon Lund Steffensen 0ab205f50a config-ini: Simplify file path construction for XDG_CONFIG_DIRS
Add comment pointing to the XDG Base Directory Specification.
2014-03-13 01:42:04 +01:00
Mattias Andrée 9a33837a3f fopen directly instead of stat:ing
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-13 01:42:04 +01:00
Mattias Andrée b2e2e4831c Free resources from config-ini.c on exit
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-13 00:29:58 +01:00
Mattias Andrée 68deadbda4 Look for configuration file in XDG_CONFIG_DIRS and /etc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-11 18:33:00 +01:00
Mattias Andrée bb155ac185 When looking for a redshift.conf file do not just check environment variable, also check that the file exists
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-11 18:20:35 +01:00
Mattias Andrée 058db22ada Add src/redshift to .gitignore
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-11 17:58:08 +01:00
Mattias Andrée f5a7d6e393 If even HOME is missing look up the user's home directory from passwd
Signed-off-by: Mattias Andrée <maandree@operamail.com>
2014-03-11 17:57:30 +01:00
Jon Lund Steffensen e26337db2e Outcomment .gitignore line that erroneously blocks the src/redshift-gtk dir 2014-02-01 23:05:51 +01:00
Jon Lund Steffensen 2c5b79fe24 Merge pull request #21 from TingPing/py3k
Add Python 3 support
Update icon cache on install
Add more files to .gitignore
Fix PyGI deprecation warning
2014-01-06 11:39:33 -08:00
TingPing 5340f2eb40 Fix PyGI deprecated warnings 2014-01-01 14:11:11 -05:00
TingPing 635e192fb7 Update .gitignore 2014-01-01 14:11:11 -05:00
TingPing d7975feaea Update icon cache on install 2014-01-01 14:11:11 -05:00
TingPing 8768ba76f8 Port redshift-gtk to Python3
Python 2 is no longer supported
2014-01-01 14:11:11 -05:00
Jon Lund Steffensen 87c736f39f Merge pull request #19 from TingPing/patch-1
Load config from %LOCALAPPDATA%\redshift.conf on Windows
2013-12-29 19:03:28 -08:00
Jon Lund Steffensen 90dc9a8190 Merge pull request #20 from TingPing/patch-2
gamma-dummy: Remove unused header file

Fixes building on windows
2013-12-29 14:36:31 -08:00
TingPing e8ce0e39b4 Fix building on Windows 2013-12-29 16:06:02 -05:00
TingPing bf14e7bd12 Load config from %LOCALAPPDATA%\redshift.conf on Windows 2013-12-29 14:46:17 -05:00
Jon Lund Steffensen dc9fcec70c Update translation files
Add location-geoclue.c to POTFILES.in
Update .po files
2013-12-12 01:18:37 -05:00
Jon Lund Steffensen 9c85b708c1 Update RPM spec for Gtk/GLib GIR dependency
Depend on pygobject3-base for new Gtk/GLib GIR
Remove configure flag for deprecated GNOME Clock location provider
2013-12-12 01:06:10 -05:00
Jon Lund Steffensen 169fc05f11 Make redshift-gtk read output of the redshift child process.
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-12 00:54:40 -05:00
Jon Lund Steffensen b436a6cd8e redshift-gtk: Use new GIR Gtk/Glib/AppIndicator bindings 2013-12-11 23:34:15 -05:00
Jon Lund Steffensen 199eaed9fc Add updated RPM spec for redshift (based on 1.7-5 in Fedora)
Updated to 1.8.
Includes updates for renamed gtk-redshift to redshift-gtk.
Includes further updates to installed doc files and removes dependencies
for GNOME Clock location provider.
2013-12-11 00:15:50 -05:00
Jon Lund Steffensen 98a34e28c7 Fix errors when running dist targets
Distribute files HACKING, DESIGN and README-colorramp
Remove location-gnome-clock.c from POTFILES.in
2013-12-10 23:29:05 -05:00
Jon Lund Steffensen cf5c1a6fc7 redshift-gtk: Make custom rule in Makefile.am silent 2013-12-10 14:04:01 -05:00
Jon Lund Steffensen d007007191 Only start "dummy" gamma method if explicitly requested 2013-12-09 14:32:08 -05:00
Jon Lund Steffensen 79bfe9eed4 Remove Gnome Clock location provider
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.
2013-12-09 14:07:01 -05:00
Jon Lund Steffensen 9e1457a248 geoclue: Disable deprecated g_type_init() when glib >= 2.35 2013-12-09 12:40:25 -05:00
Jon Lund Steffensen e4034ba27d Do not allow NULL keys when setting options
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".
2013-12-09 12:28:45 -05:00
Jon Lund Steffensen a4f7cf89eb Constify gamma parameter to set_temperature() methods 2013-12-09 12:28:45 -05:00
Jon Lund Steffensen 3b61f90b34 When in print mode do not start a gamma method
A gamma method is not needed in print mode
2013-12-09 10:58:43 -05:00
Jon Lund Steffensen 2d4a5ad26b Add dummy gamma adjustment method
This method does not do anything but print the temperature to the terminal.
An external program implementing a color temperature adjustment scheme that
is not supported by redshift can use this method to determine the desired
color temperature. It is also useful for testing other parts of redshift on
systems where neither RandR nor VidMode works.
2013-12-09 10:48:45 -05:00
Jon Lund Steffensen 3297f52f48 Fix newline in help output text 2013-12-08 20:24:27 -05:00
Jon Lund Steffensen 1a8a6ec230 Fix configure script status output for GUI 2013-12-08 14:32:31 -05:00
Jon Lund Steffensen d9f35a5989 Clean up install instructions in README, INSTALL, HACKING
Setup automake to "foreign" so that no additional files are required to be present.
Remove AUTHORS and ChangeLog (this info can be found in the git repository), and remove INSTALL.
Add a reference to the HACKING document in README.
Add dependency information in HACKING.
2013-11-23 17:12:07 -05:00
Jon Lund Steffensen 070bf1d3de colorramp: Use new color ramp table provided by Ingo Thies.
This table is calculated by the actual Planckian locus below 5000K, and by CIE daylight standard above 5000K.
Also, the new table applies proper gamma correction according to sRGB.
More information can be found in README-colorramp.
2013-10-21 22:52:38 -04:00
Jon Lund Steffensen 03a8aca3a2 Update HACKING document 2013-10-21 22:52:03 -04:00
Jon Lund Steffensen f9e1484911 Add .gitignore 2013-10-21 20:05:16 -04:00
Jon Lund Steffensen 582ec614ab Merge updates from v1.8 release 2013-10-21 16:20:13 -04:00
Jon Lund Steffensen d185fa7a1c Bump version to 1.8 2013-10-21 16:18:42 -04:00
Jon Lund Steffensen 7abb16512e Fix typos (Benjamin Kerensa) 2013-10-21 16:05:51 -04:00
Jon Lund Steffensen 978f4acde2 location-geoclue: Fix crash when starting geoclue provider. (Thanks to Maks Verver) 2013-10-21 15:44:51 -04:00