Commit Graph
305 Commits
Author SHA1 Message Date
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
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 4735bf9221 configure.ac: Require autoconf 2.69
From fedora bug report:
Support for the ARM 64 bit CPU architecture (aarch64) was introduced in
autoconf 2.69.  redshift appears to use an earlier version of
autoconf, preventing its being built.
(Thanks Miloš Komarčević, Dennis Gilmore)
2013-10-21 14:59:42 -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
Sebastian Pipping 7346a69f62 Makefile.am: Fix missing files when generating tarball.
With

  $ ./configure --disable-gui
  $ make dist

currently a tarball would be produced, that lacks the .desktop file.
That happens, because an empty variable is appended to EXTRA_DIST.

The attached patch ensures release tarballs with complete, consistent
content and at the same time makes sure that with --disable-gui no .svg
files are installed.
2013-03-02 12:58:21 +01:00
Jon Lund Steffensen 64b6a0b2d6 HACKING: Add further notes on testing python scripts. 2012-02-04 00:42:29 +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 e49d1a4a0e Add some info on building redshift from a bzr branch. 2012-02-02 18:40: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
Jon Lund Steffensen 098aa493e6 Add print mode (prints parameters and exits) by Vincent Breitmoser. 2011-11-27 21:25:23 +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 6735eb0da3 Fix hypen/minus usage in man page. 2011-10-18 19:49:20 +02:00
Jon Lund Steffensen 70e7259928 Update to latest (v3) icons. (aleth) 2011-10-18 19:41:44 +02:00
Jon Lund Steffensen 659f7dbc41 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:14:11 +02: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 41853acdf8 Update translation files. 2011-07-12 22:32:13 +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 942a3fdb5e Update NEWS and configure.ac for 1.7 release. 2011-07-04 15:25:02 +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