diff --git a/moo/mooedit/mooeditprefs.c b/moo/mooedit/mooeditprefs.c index cb1a1b31..88380f90 100644 --- a/moo/mooedit/mooeditprefs.c +++ b/moo/mooedit/mooeditprefs.c @@ -106,8 +106,8 @@ void _moo_edit_set_default_settings (void) NEW_KEY_COLOR (MOO_EDIT_PREFS_BACKGROUND, &(style->base[GTK_STATE_NORMAL])); NEW_KEY_COLOR (MOO_EDIT_PREFS_SELECTED_FOREGROUND, &(style->text[GTK_STATE_SELECTED])); NEW_KEY_COLOR (MOO_EDIT_PREFS_SELECTED_BACKGROUND, &(style->base[GTK_STATE_SELECTED])); - NEW_KEY_COLOR (MOO_EDIT_MATCHING_BRACKETS_CORRECT "/" MOO_EDIT_PREFS_FOREGROUND, &(style->base[GTK_STATE_SELECTED])); - NEW_KEY_COLOR (MOO_EDIT_MATCHING_BRACKETS_INCORRECT "/" MOO_EDIT_PREFS_FOREGROUND, &(style->base[GTK_STATE_SELECTED])); + NEW_KEY_COLOR (MOO_EDIT_MATCHING_BRACKETS_CORRECT "/" MOO_EDIT_PREFS_FOREGROUND, &(style->text[GTK_STATE_NORMAL])); + NEW_KEY_COLOR (MOO_EDIT_MATCHING_BRACKETS_INCORRECT "/" MOO_EDIT_PREFS_FOREGROUND, &(style->text[GTK_STATE_NORMAL])); gdk_color_parse ("#EEF6FF", &color); NEW_KEY_COLOR (MOO_EDIT_PREFS_HIGHLIGHT_CURRENT_LINE_COLOR, &color); diff --git a/moo/mooedit/moopaned.c b/moo/mooedit/moopaned.c index 17899b08..ecce55cf 100644 --- a/moo/mooedit/moopaned.c +++ b/moo/mooedit/moopaned.c @@ -328,7 +328,7 @@ static void moo_paned_class_init (MooPanedClass *klass) g_param_spec_boolean ("enable-border", "enable-border", "enable-border", - FALSE, + TRUE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE)); gtk_widget_class_install_style_property (widget_class, diff --git a/moo/mooedit/mootextbuffer.c b/moo/mooedit/mootextbuffer.c index ef9fc882..9589d0c6 100644 --- a/moo/mooedit/mootextbuffer.c +++ b/moo/mooedit/mootextbuffer.c @@ -590,7 +590,7 @@ moo_text_buffer_set_bracket_match_style (MooTextBuffer *buffer, if (style->mask & GTK_SOURCE_TAG_STYLE_USE_BACKGROUND) bg = &style->background; if (style->mask & GTK_SOURCE_TAG_STYLE_USE_FOREGROUND) - bg = &style->foreground; + fg = &style->foreground; if (style->italic) italic = PANGO_STYLE_ITALIC; if (style->bold) diff --git a/moo/mooedit/mootextview.c b/moo/mooedit/mootextview.c index 8d486e4a..793c4ba0 100644 --- a/moo/mooedit/mootextview.c +++ b/moo/mooedit/mootextview.c @@ -322,7 +322,8 @@ moo_text_view_constructor (GType type, G_CALLBACK (can_redo_cb), view); - g_object_set (get_buffer (view), "check-brackets", TRUE, NULL); + g_object_set (get_buffer (view), "check-brackets", + view->priv->check_brackets, NULL); g_signal_connect_swapped (get_buffer (view), "cursor_moved", G_CALLBACK (cursor_moved), view);