Use the new Glib::Variant qint64/quint64 compatibility with old code

This commit is contained in:
Ilya Fedin 2022-11-15 02:31:26 +04:00 committed by John Preston
parent b9b6a9e747
commit 768fc9b8f6
1 changed files with 2 additions and 2 deletions

View File

@ -272,9 +272,9 @@ void MainWindow::updateIconCounters() {
if (counterSlice > 0) {
// According to the spec, it should be of 'x' D-Bus signature,
// which corresponds to gint64 type with glib
// which corresponds to signed 64-bit integer
// https://wiki.ubuntu.com/Unity/LauncherAPI#Low_level_DBus_API:_com.canonical.Unity.LauncherEntry
dbusUnityProperties["count"] = Glib::Variant<gint64>::create(
dbusUnityProperties["count"] = Glib::Variant<int64>::create(
counterSlice);
dbusUnityProperties["count-visible"] =
Glib::Variant<bool>::create(true);