[gedit] Properly set search color according to the theme
- From: Paolo Borelli <pborelli src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit] Properly set search color according to the theme
- Date: Sat, 1 Aug 2009 13:28:09 +0000 (UTC)
commit e2c7c27bf1c88f4e6329f87c883f6d74adbc656c
Author: Paolo Borelli <porelli gnome org>
Date: Sat Aug 1 15:26:44 2009 +0200
Properly set search color according to the theme
Unset the search hl tag properties if the theme does not specify a
color. Fixes bug #579358
gedit/gedit-document.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/gedit/gedit-document.c b/gedit/gedit-document.c
index 8a52bec..5516608 100644
--- a/gedit/gedit-document.c
+++ b/gedit/gedit-document.c
@@ -1946,15 +1946,12 @@ sync_found_tag (GeditDocument *doc,
&fg_set, &fg,
&bg_set, &bg);
- if (fg_set)
- g_object_set (doc->priv->found_tag,
- "foreground-gdk", &fg,
- NULL);
-
- if (bg_set)
- g_object_set (doc->priv->found_tag,
- "background-gdk", &bg,
- NULL);
+ g_object_set (doc->priv->found_tag,
+ "foreground-gdk", fg_set ? &fg : NULL,
+ NULL);
+ g_object_set (doc->priv->found_tag,
+ "background-gdk", bg_set ? &bg : NULL,
+ NULL);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]