mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-09 13:56:19 +00:00
Use new glibmm 2.78 API
This commit is contained in:
@@ -26,7 +26,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "window/window_controller.h"
|
||||
#include "window/window_session_controller.h"
|
||||
#include "base/platform/base_platform_info.h"
|
||||
#include "base/platform/linux/base_linux_glibmm_helper.h"
|
||||
#include "base/event_filter.h"
|
||||
#include "ui/widgets/popup_menu.h"
|
||||
#include "ui/widgets/input_fields.h"
|
||||
@@ -251,13 +250,11 @@ void MainWindow::updateUnityCounter() {
|
||||
// According to the spec, it should be of 'x' D-Bus signature,
|
||||
// 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<int64>::create(
|
||||
counterSlice);
|
||||
dbusUnityProperties["count-visible"] =
|
||||
Glib::Variant<bool>::create(true);
|
||||
dbusUnityProperties["count"] = Glib::create_variant(
|
||||
int64(counterSlice));
|
||||
dbusUnityProperties["count-visible"] = Glib::create_variant(true);
|
||||
} else {
|
||||
dbusUnityProperties["count-visible"] =
|
||||
Glib::Variant<bool>::create(false);
|
||||
dbusUnityProperties["count-visible"] = Glib::create_variant(false);
|
||||
}
|
||||
|
||||
try {
|
||||
@@ -270,7 +267,7 @@ void MainWindow::updateUnityCounter() {
|
||||
"com.canonical.Unity.LauncherEntry",
|
||||
"Update",
|
||||
{},
|
||||
base::Platform::MakeGlibVariant(std::tuple{
|
||||
Glib::create_variant(std::tuple{
|
||||
launcherUrl,
|
||||
dbusUnityProperties,
|
||||
}));
|
||||
|
Reference in New Issue
Block a user