diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-07-17 04:58:02 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-07-17 04:58:02 +0000 |
commit | fb881018542b3b567177d0a1063d9169b17bab48 (patch) | |
tree | 29a44f0aab7f4b3bc18b41f11eaf1df401c43695 /gtk/gtkdnd.h | |
parent | a5638e82e8f5bef394166fecd997752204299155 (diff) | |
download | gtk+-fb881018542b3b567177d0a1063d9169b17bab48.tar.gz |
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.
Diffstat (limited to 'gtk/gtkdnd.h')
-rw-r--r-- | gtk/gtkdnd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkdnd.h b/gtk/gtkdnd.h index 1c8456772b..bfcbb50c37 100644 --- a/gtk/gtkdnd.h +++ b/gtk/gtkdnd.h @@ -85,6 +85,7 @@ GdkAtom gtk_drag_dest_find_target (GtkWidget *widget, GtkTargetList* gtk_drag_dest_get_target_list (GtkWidget *widget); void gtk_drag_dest_set_target_list (GtkWidget *widget, GtkTargetList *target_list); +void gtk_drag_dest_add_text_targets (GtkWidget *widget); /* Source side */ @@ -99,6 +100,7 @@ void gtk_drag_source_unset (GtkWidget *widget); GtkTargetList* gtk_drag_source_get_target_list (GtkWidget *widget); void gtk_drag_source_set_target_list (GtkWidget *widget, GtkTargetList *target_list); +void gtk_drag_source_add_text_targets (GtkWidget *widget); void gtk_drag_source_set_icon (GtkWidget *widget, GdkColormap *colormap, |