Enable the bracket matching
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 8 Aug 2010 11:58:08 +0000 (13:58 +0200)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 11 Aug 2010 17:25:53 +0000 (10:25 -0700)
src/ui/gui/psppire-syntax-window.c

index eb35ae5216f1c14396019e8289afecc667850fce..0880e65f9841efa54a2b1bf740a2270f0c097bb3 100644 (file)
@@ -29,7 +29,6 @@
 #include <stdlib.h>
 
 #include "psppire.h"
-#include "psppire-syntax-window.h"
 
 #include "psppire-data-window.h"
 #include "psppire-window-register.h"
@@ -430,6 +429,11 @@ psppire_syntax_window_init (PsppireSyntaxWindow *window)
 
   gtk_text_view_set_buffer (GTK_TEXT_VIEW (text_view), window->buffer);
 
+  g_object_set (window->buffer,
+               "highlight-matching-brackets", TRUE,
+               NULL);
+
+
   g_object_set (text_view,
                "show-line-numbers", TRUE,
                "show-line-marks", TRUE,