[anjuta-extras] scintilla: bgo #669359 - Yellow debugger color in dark theme
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta-extras] scintilla: bgo #669359 - Yellow debugger color in dark theme
- Date: Sat, 11 Feb 2012 14:43:36 +0000 (UTC)
commit 8112f5d292198c043548a3c6544dc985e6a3ec71
Author: SÃbastien Granjoux <seb sfo free fr>
Date: Sat Feb 11 15:11:49 2012 +0100
scintilla: bgo #669359 - Yellow debugger color in dark theme
It needs a new version of Anjuta as the used dconf key are different.
plugins/scintilla/properties/anjuta.properties | 4 ++--
plugins/scintilla/text_editor.c | 8 ++++++++
plugins/scintilla/text_editor.h | 7 ++++---
3 files changed, 14 insertions(+), 5 deletions(-)
---
diff --git a/plugins/scintilla/properties/anjuta.properties b/plugins/scintilla/properties/anjuta.properties
index 9bb1e2d..c0938b9 100644
--- a/plugins/scintilla/properties/anjuta.properties
+++ b/plugins/scintilla/properties/anjuta.properties
@@ -407,7 +407,7 @@ indicator.1.style=Underline-Squiggle
# Errors indicator
indicator.2.style=Strike-out
# Color is overwritten by message manager setting
-indicator.2.color=$(messages.color.important)
+indicator.2.color=$(messages.color.error)
# Blank margin width on the left of the editor (in text space)
# units in pixels
@@ -495,7 +495,7 @@ caret.fore=#000000
# Messages colors
messages.color.warning=#00FF00
messages.color.error=#FF0000
-messages.color.important=#FFFF00
+messages.color.important=#00FF00
# Messages notebook tag position (Top, Bottom, Left, Right).
messages.tag.position=Bottom
diff --git a/plugins/scintilla/text_editor.c b/plugins/scintilla/text_editor.c
index b9f4cfe..b6e0fa6 100644
--- a/plugins/scintilla/text_editor.c
+++ b/plugins/scintilla/text_editor.c
@@ -243,6 +243,14 @@ text_editor_setup_indicators_color (TextEditor *te)
char* spec;
GdkColor color;
+ /* Important color */
+ spec = g_settings_get_string (te->msgman_settings, MSGMAN_COLOR_IMPORTANT);
+ if (gdk_color_parse (spec, &color))
+ {
+ glong param = ((color.red >> 8) & 0xFF) + (color.green & 0xFF00) + ((color.blue << 8) & 0x00FF0000);
+ scintilla_send_message (SCINTILLA (te->scintilla), SCI_INDICSETFORE, 0, param);
+ }
+ g_free (spec);
/* Warning color */
spec = g_settings_get_string (te->msgman_settings, MSGMAN_COLOR_WARNING);
if (gdk_color_parse (spec, &color))
diff --git a/plugins/scintilla/text_editor.h b/plugins/scintilla/text_editor.h
index 1357bc0..71fda41 100644
--- a/plugins/scintilla/text_editor.h
+++ b/plugins/scintilla/text_editor.h
@@ -289,9 +289,10 @@ void text_editor_scintilla_command (TextEditor *te, gint command,
#define DOCMAN_PREF_SCHEMA "org.gnome.anjuta.document-manager"
#define TEXT_ZOOM_FACTOR "text-zoom-factor"
-#define MSGMAN_PREF_SCHEMA "org.gnome.anjuta.message-manager"
-#define MSGMAN_COLOR_ERROR "msgman-color-error"
-#define MSGMAN_COLOR_WARNING "msgman-color-warning"
+#define MSGMAN_PREF_SCHEMA "org.gnome.anjuta.plugins.message-manager"
+#define MSGMAN_COLOR_ERROR "color-error"
+#define MSGMAN_COLOR_WARNING "color-warning"
+#define MSGMAN_COLOR_IMPORTANT "color-important"
#define PREF_SCHEMA "org.gnome.anjuta.plugins.scintilla"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]