Re: GtkSourceView-CRITICAL : I am wrong or a SourceView bug ?



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 <murrayc murrayc com>:
> 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().
>
> --
> murrayc murrayc com
> www.murrayc.com
> www.openismus.com
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>



-- 
François LEGENDRE


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