From 69f5789776949d1179e68838e31ec22bd6a421bd Mon Sep 17 00:00:00 2001 From: Torikul Date: Sat, 15 Apr 2023 21:45:57 +0700 Subject: [PATCH] str --- data/com.github.gabutakut.gabutdm.appdata.xml.in | 1 + src/GabutWindow.vala | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/com.github.gabutakut.gabutdm.appdata.xml.in b/data/com.github.gabutakut.gabutdm.appdata.xml.in index 302e529..be3643a 100644 --- a/data/com.github.gabutakut.gabutdm.appdata.xml.in +++ b/data/com.github.gabutakut.gabutdm.appdata.xml.in @@ -36,6 +36,7 @@

Feature TrayIcon

+

Fix Clipboard

Simple code

diff --git a/src/GabutWindow.vala b/src/GabutWindow.vala index 2016cc5..a89079f 100644 --- a/src/GabutWindow.vala +++ b/src/GabutWindow.vala @@ -871,9 +871,9 @@ namespace Gabut { private void update_info () { var infol = aria_label_info (); var activedmapp = int64.parse (infol.fetch (2)); - labelall.label = @"Active: $(activedmapp) Download: $(GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (1)) : 0)) Upload: $(GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) : 0))"; + labelall.label = "Active: %i Download: %s Upload: %s".printf ((int)activedmapp, GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (1)) : 0), GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) : 0)); if (menulabel == 2 && indmenu) { - dbusindicator.updateLabel = @" $(GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) + int64.parse (infol.fetch (1)) : 0))"; + dbusindicator.updateLabel = " %s".printf (GLib.format_size (activedmapp > 0? int64.parse (infol.fetch (6)) + int64.parse (infol.fetch (1)) : 0)); dbusindicator.x_ayatana_new_label (dbusindicator.updateLabel, ""); } }