Re: grouping multiple changes in a single undo/redo action
- From: Paolo Borelli <pborelli katamail com>
- To: Olivier Sessink <oliviersessink gmail com>
- Cc: gnome-devtools gnome org
- Subject: Re: grouping multiple changes in a single undo/redo action
- Date: Mon, 04 Aug 2008 00:38:26 +0200
Il giorno dom, 03/08/2008 alle 23.16 +0200, Olivier Sessink ha scritto:
> Hi all,
>
> is it possible to use the internal gtksourceview undo/redo code and
> group multiple changes into a single undo action? gedit seems to do this
> with gtksourceview, but I can't see anything related in the API ?
>
You just need to use:
gtk_text_buffer_begin_user_action();
do_a_thing();
do_another_thing();
gtk_text_buffer_begin_user_action();
ciao
Paolo
> regards,
>
> Olivier
>
>
>
>
> _______________________________________________
> gnome-devtools mailing list
> gnome-devtools gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devtools
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]