diff options
author | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-27 00:17:47 +0200 |
---|---|---|
committer | Jon Lund Steffensen <jonlst@gmail.com> | 2010-05-27 00:17:47 +0200 |
commit | 19f734335519996395113c6acbde949dfc60e167 (patch) | |
tree | 9bb21c48b0791aee476953bc2efb3ae5044d2708 /src/location-gnome-clock.c | |
parent | Remove unused parameters in help text output. (diff) | |
download | redshift-ng-19f734335519996395113c6acbde949dfc60e167.tar.gz redshift-ng-19f734335519996395113c6acbde949dfc60e167.tar.bz2 redshift-ng-19f734335519996395113c6acbde949dfc60e167.tar.xz |
Let gamma methods and location providers print help on option parameters.
Diffstat (limited to 'src/location-gnome-clock.c')
-rw-r--r-- | src/location-gnome-clock.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/location-gnome-clock.c b/src/location-gnome-clock.c index 3136ff2..1c08ce6 100644 --- a/src/location-gnome-clock.c +++ b/src/location-gnome-clock.c @@ -35,6 +35,11 @@ int location_gnome_clock_init(location_gnome_clock_state_t *state, char *args) { + if (args != NULL) { + fputs(_("Too many arguments.\n"), stderr); + return -1; + } + g_type_init(); GError *error = NULL; @@ -128,6 +133,13 @@ location_gnome_clock_free(location_gnome_clock_state_t *state) { } +void +location_gnome_clock_print_help(FILE *f) +{ + fputs(_("Use the location as set in the GNOME Clock applet.\n"), f); + fputs("\n", f); +} + int location_gnome_clock_get_location(location_gnome_clock_state_t *state, float *lat, float *lon) |