mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Fix build with TDESKTOP_DISABLE_GTK_INTEGRATION
This commit is contained in:
parent
1dc31c7f2f
commit
dd76d54aeb
1 changed files with 4 additions and 0 deletions
|
@ -521,6 +521,7 @@ QString GetIconName() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GtkClipboardSupported() {
|
bool GtkClipboardSupported() {
|
||||||
|
#ifndef TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||||
return (Libs::gtk_clipboard_get != nullptr)
|
return (Libs::gtk_clipboard_get != nullptr)
|
||||||
&& (Libs::gtk_clipboard_wait_for_contents != nullptr)
|
&& (Libs::gtk_clipboard_wait_for_contents != nullptr)
|
||||||
&& (Libs::gtk_clipboard_wait_for_image != nullptr)
|
&& (Libs::gtk_clipboard_wait_for_image != nullptr)
|
||||||
|
@ -532,6 +533,9 @@ bool GtkClipboardSupported() {
|
||||||
&& (Libs::gdk_pixbuf_get_rowstride != nullptr)
|
&& (Libs::gdk_pixbuf_get_rowstride != nullptr)
|
||||||
&& (Libs::gdk_pixbuf_get_has_alpha != nullptr)
|
&& (Libs::gdk_pixbuf_get_has_alpha != nullptr)
|
||||||
&& (Libs::gdk_atom_intern != nullptr);
|
&& (Libs::gdk_atom_intern != nullptr);
|
||||||
|
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
QImage GetImageFromClipboard() {
|
QImage GetImageFromClipboard() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue