Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntenore Gatta <antenore@simbiosi.org>2019-08-26 12:57:05 +0300
committerAntenore Gatta <antenore@simbiosi.org>2019-08-26 12:57:05 +0300
commit5f3b3b9587558ccaa83c6cef85aaf523f930f7f2 (patch)
tree92a463c19c5f1add57c407d917bc048721e9a2f2 /src/remmina_stats.c
parentd7007b9d2b944f646363f25add4fc5cf71b6f76e (diff)
Fixing appindicator stats
Diffstat (limited to 'src/remmina_stats.c')
-rw-r--r--src/remmina_stats.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/remmina_stats.c b/src/remmina_stats.c
index 81292a616..7d0928b84 100644
--- a/src/remmina_stats.c
+++ b/src/remmina_stats.c
@@ -81,6 +81,7 @@
* }
* "APPINDICATOR": {
* "appindicator_supported": 0
+ * "appindicator_compiled": 1
* "icon_is_active": 1
* "appindicator_type": "AppIndicator on GtkStatusIcon/xembed"
* }
@@ -544,25 +545,24 @@ JsonNode *remmina_stats_get_indicator()
/** Remmina not compiled with -DWITH_APPINDICATOR=on */
json_builder_add_int_value(b, 0);
#endif
- } else {
- /** StatusNotifier/Appindicator NOT supported by desktop */
- json_builder_add_int_value(b, 0);
- json_builder_set_member_name(b, "icon_is_active");
- if (remmina_icon_is_available()) {
- /** Remmina icon is active */
- json_builder_add_int_value(b, 1);
- json_builder_set_member_name(b, "appindicator_type");
+ }
+ /** StatusNotifier/Appindicator NOT supported by desktop */
+ json_builder_add_int_value(b, 0);
+ json_builder_set_member_name(b, "icon_is_active");
+ if (remmina_icon_is_available()) {
+ /** Remmina icon is active */
+ json_builder_add_int_value(b, 1);
+ json_builder_set_member_name(b, "appindicator_type");
#ifdef HAVE_LIBAPPINDICATOR
- /** libappindicator fallback to GtkStatusIcon/xembed"); */
- json_builder_add_string_value(b, "AppIndicator on GtkStatusIcon/xembed");
+ /** libappindicator fallback to GtkStatusIcon/xembed"); */
+ json_builder_add_string_value(b, "AppIndicator on GtkStatusIcon/xembed");
#else
- /** Remmina fallback to GtkStatusIcon/xembed */
- json_builder_add_string_value(b, "Remmina icon on GtkStatusIcon/xembed");
+ /** Remmina fallback to GtkStatusIcon/xembed */
+ json_builder_add_string_value(b, "Remmina icon on GtkStatusIcon/xembed");
#endif
- }else {
- /** Remmina icon is NOT active */
- json_builder_add_int_value(b, 0);
- }
+ }else {
+ /** Remmina icon is NOT active */
+ json_builder_add_int_value(b, 0);
}
json_builder_end_object(b);
r = json_builder_get_root(b);