]> Pileus Git - ~andy/gtk/commit
Support text/plain selection target (#55117, Owen Taylor)
authorMatthias Clasen <maclas@gmx.de>
Sat, 17 Jul 2004 04:58:02 +0000 (04:58 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sat, 17 Jul 2004 04:58:02 +0000 (04:58 +0000)
commitfb881018542b3b567177d0a1063d9169b17bab48
tree29a44f0aab7f4b3bc18b41f11eaf1df401c43695
parenta5638e82e8f5bef394166fecd997752204299155
Support text/plain selection target (#55117, Owen Taylor)

Sat Jul 17 00:48:27 2004  Matthias Clasen  <maclas@gmx.de>

Support text/plain selection target  (#55117, Owen Taylor)

* gtk/gtkselection.h:
* gtk/gtkdnd.h:
* gtk/gtkselection.c (gtk_target_list_add_text_targets):
* gtk/gtkdnd.c (gtk_drag_dest_add_text_targets):
* gtk/gtkdnd.c (gtk_drag_source_add_text_targets): New
functions to facilitate handling of text targets.

* gtk/gtkentry.c:
* gtk/gtktextview.c: Use the new text target handling
functions instead of hardwiring the list of supported
text targets everywhere.

* gtk/gtkselection.c (gtk_selection_data_get_text):
(gtk_selection_data_set_text):
Support the targets text/plain, text/plain?charset=utf-8
and text/plain?charset=<LOCALE-CHARSET> as outlined in
#55117:
For text/plain send only ASCII, but accept 8-bit text
and treat it as ISO-8859-1 as specified by the Xdnd spec.
Always send CRLF terminators. Accept either and convert
into the native terminator for the platform.
12 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/gtk/gtk-sections.txt
gtk/gtkdnd.c
gtk/gtkdnd.h
gtk/gtkentry.c
gtk/gtkselection.c
gtk/gtkselection.h
gtk/gtktextview.c