summaryrefslogtreecommitdiff
path: root/gtk/gtktextbuffer.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-10-31 23:49:09 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-10-31 23:49:09 +0000
commit2145a4ef10fef74e42c4f893097021d6b1a7d5e9 (patch)
tree4ce386c83514e2b72e5784143d471c587983c88c /gtk/gtktextbuffer.c
parent7dccab8f3de75a334b70c942dd9597adbe361219 (diff)
downloadgtk+-2145a4ef10fef74e42c4f893097021d6b1a7d5e9.tar.gz
Add a "menu" property and notify on it. (#62798, Padraig O'Briain)
Wed Oct 31 18:23:47 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkoptionmenu.c (gtk_option_menu_detacher): Add a "menu" property and notify on it. (#62798, Padraig O'Briain) * gtk/gtkselection.[ch] gtk/{gtkentry.c, gtkfilesel.c, gtkoldeditable.c, gtktextbuffer.c, gtktextview.c}: Fix set_text to take a gchar, not a guchar, and to have a len argument.
Diffstat (limited to 'gtk/gtktextbuffer.c')
-rw-r--r--gtk/gtktextbuffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index 4663c644db..5cbc44cb75 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -2560,7 +2560,7 @@ clipboard_get_selection_cb (GtkClipboard *clipboard,
gchar *str;
str = gtk_text_iter_get_visible_text (&start, &end);
- gtk_selection_data_set_text (selection_data, str);
+ gtk_selection_data_set_text (selection_data, str, -1);
g_free (str);
}
}
@@ -2679,7 +2679,7 @@ clipboard_get_contents_cb (GtkClipboard *clipboard,
gtk_text_buffer_get_bounds (contents, &start, &end);
str = gtk_text_iter_get_visible_text (&start, &end);
- gtk_selection_data_set_text (selection_data, str);
+ gtk_selection_data_set_text (selection_data, str, -1);
g_free (str);
}
}