aboutsummaryrefslogtreecommitdiffstats
path: root/src/location-geoclue2.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-12-28location: Make translated string about recheck shared between all providersJon Lund Steffensen3-9/+9
2014-12-28corelocation: Fix missing space character in stringJon Lund Steffensen1-1/+1
2014-12-28systemtime: Add function wrapping platform sleep functionJon Lund Steffensen3-8/+17
Adds systemtime_msleep() which sleeps for a number of milliseconds. This wraps Sleep() on windows and usleep() on other platforms.
2014-12-28systemtime: Fix includes and check for _POSIX_TIMERSJon Lund Steffensen2-9/+8
Fix missing include of windows.h on windows platform. Change check for _POSIX_TIMERS to check that it is greater than 0. On OS X, the POSIX timers are not available and _POSIX_TIMERS is -1.
2014-12-28contrib: Add appdata file to RPM packageJon Lund Steffensen1-0/+1
2014-12-28redshift: Add enum member for unknown period_t (PERIOD_NONE)Jon Lund Steffensen1-2/+5
2014-12-28redshift: Properly handle errors in sigactionJon Lund Steffensen1-4/+19
2014-12-27redshift: Fix translation of period namesJon Lund Steffensen1-5/+9
The static string array period_names contains strings that are printed but these were not marked for translation. This is fixed now by adding the _N() macro and calling gettext() when the strings are used.
2014-12-27redshift: Only print period information when it changesJon Lund Steffensen1-9/+65
This change adds functions to determine what the current period is so we can keep track and only print the period when it changes.
2014-12-27redshift: Be less verbose when color values did not changeJon Lund Steffensen1-2/+20
This keeps a copy of the previous color_setting_t in the loop so that we can avoid printing the color temperature and brightness if they did not change.
2014-12-27redshift: Change duration of sleep to macroJon Lund Steffensen1-5/+8
2014-12-27redshift: Simplify set_temperature by passing color_setting_tJon Lund Steffensen16-70/+77
Changes all set_temperature function in gamma adjustment methods to take a color_setting_t pointer with the color settings. Colorramp functions are similarly changed to take a color settings struct.
2014-12-27redshift: Add config setting to set gamma separately for day/nightJon Lund Steffensen1-1/+25
These settings are gamma-day and gamma-night. The setting gamma will still override both the daytime and nighttime gamma setting.
2014-12-27redshift: Move color settings into struct for periodJon Lund Steffensen2-70/+127
Move color settings (temperature, gamma and brightness) into a struct for each period (day, night). Change the interpolation function to interpolate all values between these structs.
2014-12-27redshift: Use double for interpolation functionJon Lund Steffensen1-4/+4
2014-12-21redshift-gtk: Split status icon into controller and interfaceJon Lund Steffensen1-169/+259
This splits the user interface into, RedshiftController, a GObject subclass that takes care of starting and interacting with the child process, and RedshiftStatusIcon providing the actual user interface.
2014-12-18redshift-gtk: Add docstrings in statusicon moduleJon Lund Steffensen1-2/+46
2014-12-18redshift-gtk: Ignore exception in termwait when child is goneJon Lund Steffensen1-2/+6
The termwait method is used to wait until the child process has quit. Previously this would fail with an exception if the child has already quit. This is now ignored.
2014-12-18redshift-gtk: Remove unnecessary semi-colons at end-of-lineJon Lund Steffensen1-4/+4
2014-12-18redshift-gtk: Show errors from child process in a dialogJon Lund Steffensen1-4/+19
This dialog is shown whenever the child process exits with a non-zero status. The error output from stderr of the child process is buffered in redshift-gtk in case the child exits unexpectedly.
2014-12-15Add CoreLocation (OSX) location providerJon Lund Steffensen6-0/+303
Similarly to the Geoclue provider, the CoreLocation provider only requests the location on startup.
2014-12-15Add Quartz (OSX) gamma adjustment methodJon Lund Steffensen6-1/+250
2014-12-15colorramp: Add float-typed colorramp_fill() equivalentJon Lund Steffensen2-4/+29
2014-12-15appdata: Add screenshotJon Lund Steffensen2-0/+6
2014-12-15Fix #95: Add AppData file for package managersJon Lund Steffensen3-2/+35
2014-12-15contrib: Update RPM spec to use GeoClue2Jon Lund Steffensen1-2/+2
2014-12-15Fix #80: Add Geoclue2 location providerJon Lund Steffensen7-2/+375
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.
2014-12-15systemtime: Use gettimeofday if POSIX timers not availableJon Lund Steffensen2-13/+26
2014-12-15contrib: Do not generate RPM specJon Lund Steffensen2-3/+2
The RPM spec needs to be maintained manually anyway so it does not make sense to autogenerate the file with the latest version number. This should be done manually while updating dependencies and changelog.
2014-12-15Makefile: Add README to distributed filesJon Lund Steffensen2-0/+2
README was accidentally omitted from distribution, and the link from README to README.md was missing since the file was renamed with the Markdown extension.
2014-12-06redshift-gtk: Relay USR1 signal to redshift processJon Lund Steffensen1-1/+8
This also adds SIGINT to the signals handled by redshift-gtk.
2014-12-05Add a note about Ubuntu dependency packagesKees Hink1-0/+1
...which can be found in .travis.yml
2014-11-23Update Travis CI script to run make distcheckJon Lund Steffensen1-1/+1
2014-11-04redshift-gtk: Forward errors from child to stderrJon Lund Steffensen1-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`).
2014-11-03Fix #112: Do not buffer lines from child indefinitelyJon Lund Steffensen1-2/+3
2014-10-13README: Fix markdown syntaxJon Lund Steffensen1-4/+4
2014-10-13README: Add build status imageJon Lund Steffensen1-0/+4
2014-10-13README: Rename to README.mdJon Lund Steffensen1-0/+0