mirror of https://github.com/procxx/kepka.git
Force GTK file chooser only in the official builds.
This commit is contained in:
parent
619aca04f9
commit
45a6985df5
|
@ -100,6 +100,9 @@ using Type = ::FileDialog::internal::Type;
|
||||||
|
|
||||||
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||||
bool NativeSupported() {
|
bool NativeSupported() {
|
||||||
|
#ifndef TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||||
|
return false;
|
||||||
|
#endif // TDESKTOP_FORCE_GTK_FILE_DIALOG
|
||||||
return Platform::internal::GdkHelperLoaded()
|
return Platform::internal::GdkHelperLoaded()
|
||||||
&& (Libs::gtk_widget_hide_on_delete != nullptr)
|
&& (Libs::gtk_widget_hide_on_delete != nullptr)
|
||||||
&& (Libs::gtk_clipboard_store != nullptr)
|
&& (Libs::gtk_clipboard_store != nullptr)
|
||||||
|
|
|
@ -130,6 +130,7 @@
|
||||||
[ '"<(official_build_target)" != ""', {
|
[ '"<(official_build_target)" != ""', {
|
||||||
'defines': [
|
'defines': [
|
||||||
'TDESKTOP_OFFICIAL_TARGET=<(official_build_target)',
|
'TDESKTOP_OFFICIAL_TARGET=<(official_build_target)',
|
||||||
|
'TDESKTOP_FORCE_GTK_FILE_DIALOG',
|
||||||
],
|
],
|
||||||
'dependencies': [
|
'dependencies': [
|
||||||
'utils.gyp:Packer',
|
'utils.gyp:Packer',
|
||||||
|
|
Loading…
Reference in New Issue