summaryrefslogtreecommitdiff
path: root/surf.c
diff options
context:
space:
mode:
authorEnno Boland (tox) <tox@s01.de>2009-09-07 15:06:32 +0200
committerEnno Boland (tox) <tox@s01.de>2009-09-07 15:06:32 +0200
commit4cbfddf15907c96b55ac3381c9a402260a96ce9f (patch)
tree78789bbd10e2674428ecfb1fab32f621f9ce9c4f /surf.c
parent151d29c5c308831aad930c2598655ab8c4adc024 (diff)
downloadsurf-4cbfddf15907c96b55ac3381c9a402260a96ce9f.tar.gz
surf-4cbfddf15907c96b55ac3381c9a402260a96ce9f.tar.bz2
surf-4cbfddf15907c96b55ac3381c9a402260a96ce9f.zip
using simple strings for colors in config.h
Diffstat (limited to 'surf.c')
-rw-r--r--surf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/surf.c b/surf.c
index 3520684..c6cb824 100644
--- a/surf.c
+++ b/surf.c
@@ -181,6 +181,7 @@ drawindicator(Client *c) {
gint width;
GdkGC *gc;
gchar *uri;
+ GdkColor fg;
uri = geturi(c);
@@ -189,10 +190,9 @@ drawindicator(Client *c) {
gc = gdk_gc_new(w->window);
- if(strstr(uri, "https://") == uri)
- gdk_gc_set_rgb_fg_color(gc, &progress_trust);
- else
- gdk_gc_set_rgb_fg_color(gc, &progress);
+ gdk_color_parse(strstr(uri, "https://") == uri ?
+ progress_trust : progress, &fg);
+ gdk_gc_set_rgb_fg_color(gc, &fg);
gdk_draw_rectangle(w->window,
w->style->bg_gc[GTK_WIDGET_STATE(w)],
TRUE,