Skip to content

Linux + iPhone Continuity / iMessage / SMS

fix: add version string to UI

Zack Bartel63ccef99bfe9
diff --git a/src/gtk/ui_util.cpp b/src/gtk/ui_util.cpp
index 83cd50d..6ebac77 100644
--- a/src/gtk/ui_util.cpp
+++ b/src/gtk/ui_util.cpp
@@ -3,6 +3,7 @@
#include "tray.hpp"
#include <tether/i18n.hpp>
+#include <tether/version.hpp>
namespace tether::ui {
@@ -174,6 +175,11 @@ namespace tether::ui {
gtk_box_pack_start(GTK_BOX(bar), indicator(Route::WiFi).box, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(bar), indicator(Route::Bluetooth).box, FALSE, FALSE, 0);
+ GtkWidget* version = gtk_label_new(TETHER_VERSION);
+ gtk_style_context_add_class(gtk_widget_get_style_context(version), "muted");
+ gtk_widget_set_tooltip_text(version, _("Tether version"));
+ gtk_box_pack_end(GTK_BOX(bar), version, FALSE, FALSE, 0);
+
set_route_status(Route::WiFi, false, _("Waiting for the Tether daemon."));
set_route_status(Route::Bluetooth, false, _("Waiting for the Tether daemon."));
return bar;