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
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
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
Jon Lund Steffensen
95d8a3f760
colorramp: Fix slight flicker caused by improper scaling of gamma ramp values
...
Values generated by colorramp_fill() will be a maximum of i * 256 - 1, due to the use of UINT16_MAX. Simplest fix ought to be using (UINT16_MAX+1), which is safe, as the maximum value (255 * 256) still fits in a uint16.
(Thanks to Sean Hildebrand)
2013-10-21 15:29:18 -04:00
Jon Lund Steffensen
d7e67a208f
Fix slight wobble in temperature caused by float.
...
The transition variable 'adjustment_alpha' is a float. Redshift will wobble between 6499 and 6500K as the float runs out of precision. Using a double seems to solve the issue.
(Thanks to Sean Hildebrand)
2013-10-21 15:29:05 -04:00
Jon Lund Steffensen
30c805f5e7
Rename gtk-redshift -> redshift-gtk.
...
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.
2013-03-05 23:17:54 +01:00
Jon Lund Steffensen
ed873130a1
Merge gtk-redshift option to suspend for a short time period (Jendrik Seipp).
2012-02-03 20:23:48 +01:00
Jendrik Seipp
d363f4fb37
Add "Suspend for X minutes" option to gtk-redshift
2012-02-03 02:07:57 +01:00
Jon Lund Steffensen
ca5e65383c
Also print status on start up.
2012-02-02 18:39:54 +01:00
Jon Lund Steffensen
9b72cb363a
Print status message when redshift is enabled/disabled by SIGUSR1.
2011-12-04 21:30:26 +01:00
Jon Lund Steffensen
f3ba17bac4
gtk-redshift: Also set "Hidden" property in autostart file (as specified in XDG autostart standard).
2011-12-03 22:50:10 +01:00
Vincent Breitmoser
4bae608c5d
add -p option for print mode.
...
This mode only prints the current screen parameters and exits.
Useful for quick lookup of this value for use in scripts.
2011-11-27 17:17:16 +01:00
Jon Lund Steffensen
802d09e83b
Add various documentation updates: DESIGN and HACKING document, and various small comments int the source (Christian Jaeger).
...
Update man page with information on configuration file.
2011-10-18 18:02:28 +02:00
Jon Lund Steffensen
f7d0b5fe72
Set buffering on stdout and stderr to line-buffered.
...
Previously stdout would be block buffered and stderr unbuffered when writing to a non-terminal.
This code works on Debian with libc 2.11.2. The man page of setvbuf mentions that NULL can be used to avoid affecting the used buffer, but doesn't mention whether the size argument is then ignored; testing on Debian has revealed that this code works as intended, but I don't know whether that's standard.
(Christian Jaeger)
2011-10-18 16:45:03 +02:00
Jon Lund Steffensen
3bd88a4307
Allow separate brightness for day and night (Olivier Fabre and Jeremy Erickson).
2011-10-18 16:01:17 +02:00
Jon Lund Steffensen
8a0eee83de
location-geoclue: Check return value of geoclue_master_create_client().
...
Unref master and client objects after use.
2011-07-12 22:30:30 +02:00
Jon Lund Steffensen
acb7062f53
Fix build on windows platform.
2011-07-05 22:17:01 +02:00
Jon Lund Steffensen
220bf14ae2
Document brightness (-b) option switch.
2011-07-04 15:10:55 +02:00
Jon Lund Steffensen
fb35f5ae6d
Fix randr version check (Alisdair Tullo).
2011-07-04 15:05:05 +02:00
Jon Lund Steffensen
3832a2fc7d
Add option to show program version (-V).
2011-07-04 15:00:46 +02:00
Albert Lee
0373366813
location-gnome-clock.c: Avoid leaking GError objects (Albert Lee).
2011-07-04 14:31:05 +02:00
Albert Lee
4b05bbee41
Use signal.h instead of sys/signal.h for POSIX compliance.
2011-07-04 14:20:51 +02:00
Jon Lund Steffensen
02719732d9
Apply fix for new clock applet gconf (Miloš Komarčević).
2011-07-04 13:41:35 +02:00
Jon Lund Steffensen
ebcfda765e
Merge manual mode from Joe Hillenbrand with some modifications.
2011-06-07 00:26:45 +02:00
Jon Lund Steffensen
38af3a0d5e
Allow brightness to be adjusted (between 10% and 100%, the latter being the default).
2011-04-21 00:23:50 +02:00
Jon Lund Steffensen
54d7f9ff1c
w32gdi: Remember to release the DC handle on error.
...
Add comment on failure of SetDeviceGammaRamp().
2011-03-30 22:09:25 +02:00
Jon Lund Steffensen
6c1986b51a
config: Look in %userprofile%/.config/redshift.conf on windows platform.
2011-03-29 23:57:53 +02:00
Jon Lund Steffensen
28d553ddbb
Merge Geoclue location provider by Mathieu Trudel-Lapierre with some tweaks.
2011-03-28 00:14:58 +02:00
Jon Lund Steffensen
46726ac9eb
w32gdi: Obtain a new DC handle on every adjustment. This fixes a bug
...
where redshift stops updating the screen.
2011-03-27 21:38:13 +02:00
Jon Lund Steffensen
9d7096d11c
Fix: return 0 in parse_gamma_string() on success.
2011-03-27 21:37:10 +02:00
Joe Hillenbrand
494d1e03de
Added feature to manually set temperature without needing location data.
2011-02-25 19:52:18 -08:00
Mathieu Trudel-Lapierre
d4472d291b
Add Makefile bits for geoclue provider to properly link against geoclue
...
and dbus-glib.
2011-02-09 23:36:14 -05:00
Mathieu Trudel-Lapierre
3bf1f85267
Add first pass of Geoclue location provider.
2011-02-09 23:31:17 -05:00
Jon Lund Steffensen
82c4aa5d67
Update PO files.
...
Fix switch of status icons in gtk-redshift.
2010-10-18 02:14:49 +02:00
Jon Lund Steffensen
b81b2b3827
Fix: Set the right icon on indicator applet initialization.
2010-10-18 01:55:59 +02:00
Jon Lund Steffensen
5f68d4dfe4
Allow user to specify a configuration file on the command line that will
...
be parsed.
2010-10-18 00:58:00 +02:00
Jon Lund Steffensen
10e23dda64
config-ini.c: Fix loading explicitly requested config file.
2010-10-18 00:55:16 +02:00
Jon Lund Steffensen
a5874125ee
Separate the redshift.svg icon into an application icon and a status icon
...
(redshift-status-on.svg).
Rename redshift-idle.svg to redshift-status-off.svg.
2010-10-18 00:36:57 +02:00
Jon Lund Steffensen
2b92b86857
Add configuration file support.
2010-10-15 12:43:48 +02:00
Jon Lund Steffensen
6f780c4063
Minor optimizations in selection of location provider and adjustment
...
method.
2010-10-15 00:52:19 +02:00
Jon Lund Steffensen
158de6e293
Add info on the neutral color temperature (6500K) in help output.
2010-10-09 23:04:43 +02:00
Jon Lund Steffensen
e07cbc7b95
gamma-vidmode.c: Do not call XCloseDisplay() if vidmode_start() fails as
...
XCloseDisplay() will be called in vidmode_free().
2010-10-09 22:30:40 +02:00
Jon Lund Steffensen
c9cba12583
Merge status icon toggle button patch from Francesco Marella.
2010-09-04 14:41:42 +02:00
Jon Lund Steffensen
2c09d9efbf
Merge GNOME clock fix for multiple applets by Francesco Marella.
...
Clean up GNOME clock code and fix memory leak.
2010-09-04 14:34:20 +02:00