Commit Graph
113 Commits
Author SHA1 Message Date
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
Francesco Marella e5926206c6 Fix to get location from a secondary clock applet 2010-09-02 17:45:58 +02:00
Jon Lund Steffensen 8491640b54 gamma-randr.c: Apparently error and ver_reply can both be NULL. Check both to
avoid seg faults.
2010-08-18 20:38:02 +02:00
Jon Lund Steffensen 7b884aed4e remove unnecessary shebang 2010-08-18 20:06:49 +02:00
Jon Lund Steffensen fb7f1b5a4a Merge GUI optimization from Francesco Marella with a few tweaks. 2010-07-28 00:48:49 +02:00
Francesco Marella 34a288486d Optimize indicators code.
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-07-21 16:30:08 +02:00
Jon Lund Steffensen e850a58909 Provide feedback on what location provider/color adjustment method that
is used when none was specifically requested.
2010-06-30 20:29:32 +02:00
Jon Lund Steffensen 9ce4a9d848 location-gnome-clock.c: Only look in properties of applets that are
enabled. Patch by Gabriel de Perthuis.
2010-06-30 20:22:02 +02:00
Jon Lund Steffensen 7db6532b9d Move gtk-redshift.desktop file to data dir. 2010-06-30 20:10:12 +02:00
Jon Lund Steffensen 0d533f457c Merge GUI autostart feature from Francesco Marella. 2010-06-30 19:55:36 +02:00
Francesco Marella 846284943b utils.py: copy the desktop file in autostart folder 2010-06-22 16:14:39 +02:00
Francesco Marella c9b0abf610 Disable autostart menu item when the desktop file can't be found 2010-06-22 12:46:45 +02:00
Jon Lund Steffensen f450dd4a19 Change comment in colorramp.c. 2010-06-21 22:23:08 +02:00
Jon Lund Steffensen ac740eb538 Toggle icon of status icon. 2010-06-14 19:37:28 +02:00
Jon Lund Steffensen 57afd85c00 Add missing file to Makefile.am.
Fix detection of GUI dependencies in configure.ac.
2010-06-13 23:53:36 +02:00
Jon Lund Steffensen b5caafe52d gamma-w32gdi.c: Conditionally define WINVER. 2010-06-13 21:49:34 +02:00
Jon Lund Steffensen b4f93051a3 gamma-w32gdi.c: Fix name of w32gdi_start() function. 2010-06-10 21:36:39 +02:00
Jon Lund Steffensen 222c21e5d2 Add reset option (activated with -x) that removes any color adjustments
applied to the screen. Based on patch by Dan Helfman.
2010-06-10 20:14:13 +02:00
Jon Lund Steffensen 6e5ec155d1 Add comments about certain substring which must not be translated.
Fix help text that refered to the wrong command line parameter.
2010-06-10 13:28:30 +02:00