diff options
-rw-r--r-- | widgets/ChangeLog | 4 | ||||
-rw-r--r-- | widgets/text/e-text.c | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog index 1b514fb173..623d7710a8 100644 --- a/widgets/ChangeLog +++ b/widgets/ChangeLog @@ -1,3 +1,7 @@ +2007-07-15 Hiroyuki Ikezoe <poincare@ikezoe.net> + + * text/e-text.c: (primary_get_cb): Remove needless g_strndup(). + 2007-07-09 Matthew Barnes <mbarnes@redhat.com> * table/e-table-specification.c: (e_table_specification_duplicate) diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index 42e981cccd..34321c5ade 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -2572,10 +2572,9 @@ primary_get_cb (GtkClipboard *clipboard, sel_end = g_utf8_offset_to_pointer (text->text, sel_end) - text->text; if (sel_start != sel_end) { - gchar *str = g_strndup (text->text + sel_start, - sel_end - sel_start); - gtk_selection_data_set_text (selection_data, str, -1); - g_free (str); + gtk_selection_data_set_text (selection_data, + text->text + sel_start, + sel_end - sel_start); } } |