mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Fix build with TDESKTOP_DISABLE_GTK_INTEGRATION
This commit is contained in:
@@ -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() {
|
||||||
|
Reference in New Issue
Block a user