Fix build with TDESKTOP_DISABLE_GTK_INTEGRATION

This commit is contained in:
Ilya Fedin 2020-06-30 16:36:11 +04:00 committed by John Preston
parent 1dc31c7f2f
commit dd76d54aeb

View file

@ -521,6 +521,7 @@ QString GetIconName() {
}
bool GtkClipboardSupported() {
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
return (Libs::gtk_clipboard_get != nullptr)
&& (Libs::gtk_clipboard_wait_for_contents != nullptr)
&& (Libs::gtk_clipboard_wait_for_image != nullptr)
@ -532,6 +533,9 @@ bool GtkClipboardSupported() {
&& (Libs::gdk_pixbuf_get_rowstride != nullptr)
&& (Libs::gdk_pixbuf_get_has_alpha != nullptr)
&& (Libs::gdk_atom_intern != nullptr);
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION
return false;
}
QImage GetImageFromClipboard() {