summaryrefslogtreecommitdiff
path: root/gtk/gtkselection.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-10-22 20:47:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-10-22 20:47:01 +0000
commit92d2dc0ba639efbc360a3de34d4a2ae722afa098 (patch)
tree07727da269ec0f3ecac5f8e6973354999342fdcc /gtk/gtkselection.h
parent8fe966936c5b855b27aca8e9b2d07839d14662a4 (diff)
downloadgtk+-92d2dc0ba639efbc360a3de34d4a2ae722afa098.tar.gz
Fixing popup menus to have "Paste" sensitized correctly. Original patches
Mon Oct 22 16:25:12 2001 Owen Taylor <otaylor@redhat.com> Fixing popup menus to have "Paste" sensitized correctly. Original patches from Damian Ivereigh, much mangled. * gtk/gtkselection.c: Add functions gtk_selection_data_get_targets(), gtk_selection_data_targets_include_text(). (#60854) * gtk/gtkclipboard.c: Add a simple do-it-all non-async "check if the clipboard has text" function gtk_clipboard_wait_is_text_available. (#60854) * gtk/gtkentry.c: Only enable the paste item if the clipboard contains text. (#60973) * gtk/gtktextview.c: Only enable the paste item if the clipboard contains text. (#60975)
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r--gtk/gtkselection.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h
index 04a4ff3c56..cf6b887a87 100644
--- a/gtk/gtkselection.h
+++ b/gtk/gtkselection.h
@@ -129,6 +129,11 @@ gboolean gtk_selection_data_set_text (GtkSelectionData *selection_data,
const guchar *str);
guchar * gtk_selection_data_get_text (GtkSelectionData *selection_data);
+gboolean gtk_selection_data_get_targets (GtkSelectionData *selection_data,
+ GdkAtom **targets,
+ gint *n_atoms);
+gboolean gtk_selection_data_targets_include_text (GtkSelectionData *selection_data);
+
/* Called when a widget is destroyed */
void gtk_selection_remove_all (GtkWidget *widget);