2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Don't use QLibrary for glib

This commit is contained in:
Ilya Fedin
2020-06-27 06:20:43 +04:00
committed by John Preston
parent 806f2e0b50
commit 4922768086
5 changed files with 20 additions and 82 deletions

View File

@@ -531,8 +531,7 @@ bool GtkClipboardSupported() {
&& (Libs::gdk_pixbuf_get_height != nullptr)
&& (Libs::gdk_pixbuf_get_rowstride != nullptr)
&& (Libs::gdk_pixbuf_get_has_alpha != nullptr)
&& (Libs::gdk_atom_intern != nullptr)
&& (Libs::g_object_unref != nullptr);
&& (Libs::gdk_atom_intern != nullptr);
}
QImage GetImageFromClipboard() {
@@ -561,7 +560,7 @@ QImage GetImageFromClipboard() {
? QImage::Format_RGBA8888
: QImage::Format_RGB888).copy();
Libs::g_object_unref(img);
g_object_unref(img);
}
}