Re: GtkSourceView-CRITICAL : I am wrong or a SourceView bug ?
- From: "François Legendre" <Francois Legendre mail enpc fr>
- To: "Murray Cumming" <murrayc murrayc com>
- Cc: gtkmm-list gnome org
- Subject: Re: GtkSourceView-CRITICAL : I am wrong or a SourceView bug ?
- Date: Mon, 15 Dec 2008 15:21:18 +0100
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]