Re: paste in GtkTextBuffer



on 10/5/01 4:14 PM, Havoc Pennington at hp redhat com wrote:

> vishnu pobox com writes:
>> Examining the GtkTextBuffer source code, i see that paste_from_buffer
>> calls gtk_text_buffer_real_insert_range which appears impossible
>> to customize for my purposes.
>> 
>> If i could disable the paste function from copying tags then i
>> would be happy.  Any other suggestions?
> 
> Sure, I don't promise I know how to fix this by 2.0, but at least
> we'll have an open issue.

Just using a signal or virtual function here for the insert_range call done
for pasting would do the trick. It doesn't seem to require much deep
thought, except maybe for the name of the function. Maybe I'm missing what
makes it hard.

    -- Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]