Browse Source

More build fixes

Signed-off-by: falkTX <falktx@falktx.com>
pull/349/head
falkTX 4 years ago
parent
commit
2d5d8ea5e2
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      distrho/DistrhoUI_macOS.mm
  2. +4
    -1
      distrho/extra/FileBrowserDialog.cpp

+ 1
- 1
distrho/DistrhoUI_macOS.mm View File

@@ -27,7 +27,7 @@
# include <algorithm>
# include <cmath>
# ifndef DGL_FILE_BROWSER_DISABLED
# include "extra/FileBrowserDialog.cpp"
# import "extra/FileBrowserDialog.cpp"
# endif

// Declared in DistrhoUI.cpp but defined here because it uses Obj-C


+ 4
- 1
distrho/extra/FileBrowserDialog.cpp View File

@@ -231,9 +231,11 @@ struct FileBrowserData {
#ifdef DISTRHO_OS_MAC
[nsBasePanel release];
#endif
#ifdef HAVE_X11
#ifdef HAVE_DBUS
if (dbuscon != nullptr)
dbus_connection_unref(dbuscon);
#endif
#ifdef HAVE_X11
if (x11display != nullptr)
XCloseDisplay(x11display);
#endif
@@ -345,6 +347,7 @@ FileBrowserHandle fileBrowserCreate(const bool isEmbed,
// optional, can be null
if (DBusConnection* dbuscon = handle->dbuscon)
{
// https://flatpak.github.io/xdg-desktop-portal/portal-docs.html#gdbus-org.freedesktop.portal.FileChooser
if (DBusMessage* const message = dbus_message_new_method_call("org.freedesktop.portal.Desktop",
"/org/freedesktop/portal/desktop",
"org.freedesktop.portal.FileChooser",


Loading…
Cancel
Save