I am wrong. One must use (begin|end)_user_action() like that
m_ptr_source_view->get_source_buffer()->begin_user_action() ;
m_ptr_source_view->get_source_buffer()->insert_at_cursor("##TAB##") ;
m_ptr_source_view->get_source_buffer()->end_user_action() ;
to get the right fonctionning of undo|redo.
2008/12/15 Murray Cumming <[email protected]>:
> On Sun, 2008-12-14 at 21:35 +0100, François Legendre wrote:
>> Hello,
>>
>> I get this message when I play with my following minimal example.
>>
>> (minimal:14414): GtkSourceView-CRITICAL **:
>> gtk_source_undo_manager_undo: assertion `undo_action != NULL' failed
>
> You could investigate by running it in gdb with a breakpoint on g_log().
>
> --
> [email protected]
> www.murrayc.com
> www.openismus.com
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
--
François LEGENDRE
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list