[gtk/gtk-3-24: 2/3] gtkselection: add a W32 tip about image/bmp support



commit 885672520ac9aab234ae4b166c2674d86685027e
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Sun Oct 7 12:23:16 2018 +0000

    gtkselection: add a W32 tip about image/bmp support

 gtk/gtkselection.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index f0e36f312e..b976d19845 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -66,6 +66,13 @@
  * never need to use most of the functions in this section directly;
  * #GtkClipboard provides a nicer interface to the same functionality.
  *
+ * If an application is expected to exchange image data and work
+ * on Windows, it is highly advised to support at least "image/bmp" target
+ * for the widest possible compatibility with third-party applications.
+ * #GtkClipboard already does that by using gtk_target_list_add_image_targets()
+ * and gtk_selection_data_set_pixbuf() or gtk_selection_data_get_pixbuf(),
+ * which is one of the reasons why it is advised to use #GtkClipboard.
+ *
  * Some of the datatypes defined this section are used in
  * the #GtkClipboard and drag-and-drop API’s as well. The
  * #GtkTargetEntry and #GtkTargetList objects represent


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]