[anjuta] document-manager: Fix-Highlight if search box text not found in editor
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] document-manager: Fix-Highlight if search box text not found in editor
- Date: Mon, 25 Nov 2013 14:29:23 +0000 (UTC)
commit 85d24d7f1efc4c777f036cd21d3fade97e7b31e7
Author: kriti <kriti2kansal gmail com>
Date: Sat Nov 9 15:06:43 2013 +0530
document-manager: Fix-Highlight if search box text not found in editor
plugins/document-manager/search-box.c | 46 +++++++++++++++------------------
1 files changed, 21 insertions(+), 25 deletions(-)
---
diff --git a/plugins/document-manager/search-box.c b/plugins/document-manager/search-box.c
index bee7670..349218a 100644
--- a/plugins/document-manager/search-box.c
+++ b/plugins/document-manager/search-box.c
@@ -128,31 +128,27 @@ static void
search_box_set_entry_color (SearchBox* search_box, gboolean found)
{
if (!found)
- {
- GdkColor red;
- GdkColor white;
-
- /* FIXME: a11y and theme */
-
- gdk_color_parse ("#FF6666", &red);
- gdk_color_parse ("white", &white);
-
- gtk_widget_modify_base (search_box->priv->search_entry,
- GTK_STATE_NORMAL,
- &red);
- gtk_widget_modify_text (search_box->priv->search_entry,
- GTK_STATE_NORMAL,
- &white);
- }
- else
- {
- gtk_widget_modify_base (search_box->priv->search_entry,
- GTK_STATE_NORMAL,
- NULL);
- gtk_widget_modify_text (search_box->priv->search_entry,
- GTK_STATE_NORMAL,
- NULL);
- }
+ {
+ GdkRGBA red;
+ GdkRGBA white;
+ gdk_rgba_parse (&red,"red");
+ gdk_rgba_parse (&white,"white");
+
+ /* FIXME: a11y and theme */
+
+ gtk_widget_override_color (search_box->priv->search_entry,
+ GTK_STATE_NORMAL,
+ &red);
+ }
+ else
+ {
+ gtk_widget_override_background_color (search_box->priv->search_entry,
+ GTK_STATE_NORMAL,
+ NULL);
+ gtk_widget_override_color (search_box->priv->search_entry,
+ GTK_STATE_NORMAL,
+ NULL);
+ }
}
static gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]