Draw border in paned by default; fixed couple of bugs
This commit is contained in:
parent
291edd24f1
commit
7a457aac42
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user