diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config-ini.c | 2 | ||||
-rw-r--r-- | src/gamma-randr.c | 2 | ||||
-rw-r--r-- | src/gamma-vidmode.c | 2 | ||||
-rw-r--r-- | src/location-geoclue.c | 4 | ||||
-rw-r--r-- | src/redshift-gtk/statusicon.py | 6 |
5 files changed, 10 insertions, 6 deletions
diff --git a/src/config-ini.c b/src/config-ini.c index 65751dd..749512a 100644 --- a/src/config-ini.c +++ b/src/config-ini.c @@ -226,7 +226,7 @@ config_ini_init(config_ini_state_t *state, const char *filepath) config_ini_free(state); return -1; } - + /* Insert into section list. */ setting->name = NULL; setting->value = NULL; diff --git a/src/gamma-randr.c b/src/gamma-randr.c index 0594332..6fa2bc6 100644 --- a/src/gamma-randr.c +++ b/src/gamma-randr.c @@ -306,7 +306,7 @@ randr_set_temperature_for_crtc(randr_state_t *state, int crtc_num, const color_setting_t *setting) { xcb_generic_error_t *error; - + if (crtc_num >= state->crtc_count || crtc_num < 0) { fprintf(stderr, _("CRTC %d does not exist. "), state->crtc_num); diff --git a/src/gamma-vidmode.c b/src/gamma-vidmode.c index 254d065..c9682d2 100644 --- a/src/gamma-vidmode.c +++ b/src/gamma-vidmode.c @@ -167,7 +167,7 @@ vidmode_restore(vidmode_state_t *state) if (!r) { fprintf(stderr, _("X request failed: %s\n"), "XF86VidModeSetGammaRamp"); - } + } } int diff --git a/src/location-geoclue.c b/src/location-geoclue.c index 851a75b..e24c2d2 100644 --- a/src/location-geoclue.c +++ b/src/location-geoclue.c @@ -50,7 +50,7 @@ location_geoclue_init(location_geoclue_state_t *state) state->position = NULL; state->provider = NULL; state->provider_path = NULL; - + return 0; } @@ -200,7 +200,7 @@ location_geoclue_get_location(location_geoclue_state_t *state, g_error_free(error); return -1; } - + if (fields & GEOCLUE_POSITION_FIELDS_LATITUDE && fields & GEOCLUE_POSITION_FIELDS_LONGITUDE) { fprintf(stdout, _("According to the geoclue provider" diff --git a/src/redshift-gtk/statusicon.py b/src/redshift-gtk/statusicon.py index b766175..5159437 100644 --- a/src/redshift-gtk/statusicon.py +++ b/src/redshift-gtk/statusicon.py @@ -29,11 +29,15 @@ import signal import re import gettext +import gi +gi.require_version('Gtk', '3.0') + from gi.repository import Gtk, GLib, GObject try: + gi.require_version('AppIndicator3', '0.1') from gi.repository import AppIndicator3 as appindicator -except ImportError: +except (ImportError, ValueError): appindicator = None from . import defs |