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