Revision: 603 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=603&view=rev Author: frlan Date: 2009-04-19 19:00:16 +0000 (Sun, 19 Apr 2009)
Log Message: ----------- GeanyLaTeX: Set undo points for better redo/undo on inserting formatings
Modified Paths: -------------- trunk/geanylatex/src/formatutils.c trunk/geanylatex/src/geanylatex.c
Modified: trunk/geanylatex/src/formatutils.c =================================================================== --- trunk/geanylatex/src/formatutils.c 2009-04-18 16:58:03 UTC (rev 602) +++ trunk/geanylatex/src/formatutils.c 2009-04-19 19:00:16 UTC (rev 603) @@ -46,10 +46,12 @@ } else { + sci_start_undo_action(doc->editor->sci); glatex_insert_string(glatex_format_pattern[format], TRUE); glatex_insert_string("{", TRUE); glatex_insert_string("}", FALSE); - } + sci_stop_undo_action(doc->editor->sci); + } } }
Modified: trunk/geanylatex/src/geanylatex.c =================================================================== --- trunk/geanylatex/src/geanylatex.c 2009-04-18 16:58:03 UTC (rev 602) +++ trunk/geanylatex/src/geanylatex.c 2009-04-19 19:00:16 UTC (rev 603) @@ -300,7 +300,7 @@ textbox_ref = gtk_combo_box_entry_new_text(); glatex_add_Labels(textbox_ref, glatex_get_aux_file()); model = gtk_combo_box_get_model(GTK_COMBO_BOX(textbox_ref)); - gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), + gtk_tree_sortable_set_sort_column_id(GTK_TREE_SORTABLE(model), 0, GTK_SORT_ASCENDING);
gtk_misc_set_alignment(GTK_MISC(label_ref), 0, 0.5);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org