Get rid of glibmm
This commit is contained in:
parent
6bce493029
commit
a1a6676eab
1 changed files with 2 additions and 6 deletions
|
|
@ -14,8 +14,6 @@
|
|||
#include "base/platform/linux/base_linux_xsettings.h"
|
||||
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||
|
||||
#include <glibmm.h>
|
||||
|
||||
namespace Ui {
|
||||
namespace Platform {
|
||||
namespace internal {
|
||||
|
|
@ -108,9 +106,7 @@ TitleControls::Layout TitleControlsLayout() {
|
|||
#endif // !DESKTOP_APP_DISABLE_X11_INTEGRATION
|
||||
|
||||
const auto portalResult = []() -> std::optional<TitleControls::Layout> {
|
||||
namespace XDP = base::Platform::XDP;
|
||||
|
||||
const auto decorationLayout = XDP::ReadSetting<Glib::ustring>(
|
||||
auto decorationLayout = base::Platform::XDP::ReadSetting(
|
||||
"org.gnome.desktop.wm.preferences",
|
||||
"button-layout");
|
||||
|
||||
|
|
@ -119,7 +115,7 @@ TitleControls::Layout TitleControlsLayout() {
|
|||
}
|
||||
|
||||
return GtkKeywordsToTitleControlsLayout(
|
||||
QString::fromStdString(*decorationLayout));
|
||||
QString::fromStdString(decorationLayout->get_string(nullptr)));
|
||||
}();
|
||||
|
||||
if (portalResult.has_value()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue