X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fui_sensorpref.c;h=a5b51234701c965fd6ee21bc12ed859e7d960b8b;hb=24ab97d635e83e919877fed0763b7ddb24cbc3e1;hp=76a90ea424b9b6e6a875dbeef67bff7b8e7779ab;hpb=8519df76f6a967f70eddb1ec14bd530b1d261601;p=psensor.git diff --git a/src/ui_sensorpref.c b/src/ui_sensorpref.c index 76a90ea..a5b5123 100644 --- a/src/ui_sensorpref.c +++ b/src/ui_sensorpref.c @@ -27,9 +27,8 @@ #include #include - -#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029) -#include "ui_appindicator.h" +#if defined(HAVE_APPINDICATOR) +#include #endif enum { @@ -291,7 +290,7 @@ update_pref(struct sensor_pref *p, struct config *cfg, GtkBuilder *builder) (gtk_builder_get_object(builder, "indicator_label_checkbox")); -#if !HAVE_APPINDICATOR && !HAVE_APPINDICATOR_029 +#if !HAVE_APPINDICATOR gtk_widget_set_sensitive(GTK_WIDGET(w_appindicator_label_enabled), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(w_appindicator_enabled), FALSE); @@ -496,7 +495,7 @@ void ui_sensorpref_dialog_run(struct psensor *sensor, struct ui_psensor *ui) if (result == GTK_RESPONSE_ACCEPT) { apply_prefs(model, ui->config); ui_sensorlist_update(ui, 1); -#if defined(HAVE_APPINDICATOR) || defined(HAVE_APPINDICATOR_029) +#if defined(HAVE_APPINDICATOR) ui_appindicator_update_menu(ui); #endif }