summaryrefslogtreecommitdiff
path: root/gtk/gtkeditable.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-01 10:19:22 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-01 10:19:22 +0000
commitf222bd77bbd78ea75e29b1663fc6624e929e6675 (patch)
treeae68dc595d0ff3dde86b37074d1d692797bdcfa1 /gtk/gtkeditable.c
parent2630943eb30fb7a94680e7afb6e1d070718c9811 (diff)
downloadgdk-pixbuf-f222bd77bbd78ea75e29b1663fc6624e929e6675.tar.gz
gtk/gtkentry.c gtk/gtktext.c gtkeditable.[ch]
Sun Mar 1 05:18:11 1998 Owen Taylor <owt1@cornell.edu> * gtk/gtkentry.c gtk/gtktext.c gtkeditable.[ch] Changed interface to cut/copy/paste so it makes sense when triggered by say, menu items.
Diffstat (limited to 'gtk/gtkeditable.c')
-rw-r--r--gtk/gtkeditable.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkeditable.c b/gtk/gtkeditable.c
index eba3d2675..31628a408 100644
--- a/gtk/gtkeditable.c
+++ b/gtk/gtkeditable.c
@@ -626,14 +626,14 @@ gtk_editable_select_region (GtkEditable *editable,
}
void
-gtk_editable_cut_clipboard (GtkEditable *editable, GdkEventKey *event)
+gtk_editable_cut_clipboard (GtkEditable *editable, guint32 time)
{
- gtk_editable_copy_clipboard (editable, event);
+ gtk_editable_copy_clipboard (editable, time);
gtk_editable_delete_selection (editable);
}
void
-gtk_editable_copy_clipboard (GtkEditable *editable, GdkEventKey *event)
+gtk_editable_copy_clipboard (GtkEditable *editable, guint32 time)
{
gint selection_start_pos;
gint selection_end_pos;
@@ -645,7 +645,7 @@ gtk_editable_copy_clipboard (GtkEditable *editable, GdkEventKey *event)
{
if (gtk_selection_owner_set (GTK_WIDGET (editable),
clipboard_atom,
- event->time))
+ time))
editable->clipboard_text = gtk_editable_get_chars (editable,
selection_start_pos,
selection_end_pos);
@@ -653,10 +653,10 @@ gtk_editable_copy_clipboard (GtkEditable *editable, GdkEventKey *event)
}
void
-gtk_editable_paste_clipboard (GtkEditable *editable, GdkEventKey *event)
+gtk_editable_paste_clipboard (GtkEditable *editable, guint32 time)
{
gtk_selection_convert (GTK_WIDGET(editable),
- clipboard_atom, ctext_atom, event->time);
+ clipboard_atom, ctext_atom, time);
}
void