diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2013-12-09 14:07:01 -0500 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2013-12-09 14:07:01 -0500 |
commit | 79bfe9eed44486fbf59e6d482abdbc649c41cee5 (patch) | |
tree | 9c08144295aef65bd98d427ed373c4e762a513e1 /src/redshift.c | |
parent | geoclue: Disable deprecated g_type_init() when glib >= 2.35 (diff) | |
download | redshift-ng-79bfe9eed44486fbf59e6d482abdbc649c41cee5.tar.gz redshift-ng-79bfe9eed44486fbf59e6d482abdbc649c41cee5.tar.bz2 redshift-ng-79bfe9eed44486fbf59e6d482abdbc649c41cee5.tar.xz |
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.
Diffstat (limited to 'src/redshift.c')
-rw-r--r-- | src/redshift.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/redshift.c b/src/redshift.c index a1273d4..7352ab2 100644 --- a/src/redshift.c +++ b/src/redshift.c @@ -68,10 +68,6 @@ #include "location-manual.h" -#ifdef ENABLE_GNOME_CLOCK -# include "location-gnome-clock.h" -#endif - #ifdef ENABLE_GEOCLUE # include "location-geoclue.h" #endif @@ -146,9 +142,6 @@ static const gamma_method_t gamma_methods[] = { /* Union of state data for location providers */ typedef union { location_manual_state_t manual; -#ifdef ENABLE_GNOME_CLOCK - location_gnome_clock_state_t gnome_clock; -#endif #ifdef ENABLE_GEOCLUE location_geoclue_state_t geoclue; #endif @@ -171,20 +164,6 @@ static const location_provider_t location_providers[] = { location_geoclue_get_location }, #endif -#ifdef ENABLE_GNOME_CLOCK - { - "gnome-clock", - (location_provider_init_func *)location_gnome_clock_init, - (location_provider_start_func *)location_gnome_clock_start, - (location_provider_free_func *)location_gnome_clock_free, - (location_provider_print_help_func *) - location_gnome_clock_print_help, - (location_provider_set_option_func *) - location_gnome_clock_set_option, - (location_provider_get_location_func *) - location_gnome_clock_get_location - }, -#endif { "manual", (location_provider_init_func *)location_manual_init, |