X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui_appindicator.c;h=a396f655828ec21a5540f4a8cef812c94f381eb0;hp=f9f1a598d847f8b2abec01639e0405419f196540;hb=c4c838efcc14cd46807052fa0303f4ba6df48e5f;hpb=4c0f6c6acde1ab142f50f612b31d16ebaef4e2f4 diff --git a/src/ui_appindicator.c b/src/ui_appindicator.c index f9f1a59..a396f65 100644 --- a/src/ui_appindicator.c +++ b/src/ui_appindicator.c @@ -34,6 +34,9 @@ static const char *ICON = "psensor_normal"; static const char *ATTENTION_ICON = "psensor_hot"; +static const char *GLADE_FILE += PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade"; + static struct psensor **sensors; static GtkMenuItem **menu_items; static bool appindicator_supported = true; @@ -138,12 +141,12 @@ static GtkWidget *get_menu(struct ui_psensor *ui) error = NULL; ok = gtk_builder_add_from_file (builder, - PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade", + GLADE_FILE, &error); if (!ok) { log_err(_("Failed to load glade file %s: %s"), - PACKAGE_DATA_DIR G_DIR_SEPARATOR_S "psensor-appindicator.glade", + GLADE_FILE, error->message); g_error_free(error); return NULL;