Use the new Glib::Variant qint64/quint64 compatibility with old code
This commit is contained in:
parent
b9b6a9e747
commit
768fc9b8f6
|
@ -272,9 +272,9 @@ void MainWindow::updateIconCounters() {
|
||||||
|
|
||||||
if (counterSlice > 0) {
|
if (counterSlice > 0) {
|
||||||
// According to the spec, it should be of 'x' D-Bus signature,
|
// 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
|
// 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);
|
counterSlice);
|
||||||
dbusUnityProperties["count-visible"] =
|
dbusUnityProperties["count-visible"] =
|
||||||
Glib::Variant<bool>::create(true);
|
Glib::Variant<bool>::create(true);
|
||||||
|
|
Loading…
Reference in New Issue