Introduction
Introduction Statistics Contact Development Disclaimer Help
tmoving color definitions to config.h - surf - customized build of surf, the su…
git clone git://src.adamsgaard.dk/surf
Log
Files
Refs
README
LICENSE
---
commit 03f0a3baf5a844dc44aa5c145f1dd5d12c56ad07
parent 91ca224af21a008512081a7868ada2479d5d9231
Author: Enno Boland (tox) <[email protected]>
Date: Mon, 7 Sep 2009 11:02:26 +0200
moving color definitions to config.h
Diffstat:
M config.h | 3 +++
M surf.c | 6 ++----
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/config.h b/config.h
t@@ -1,4 +1,6 @@
/* modifier 0 means no modifier */
+static GdkColor progress = { 65535,65535,0,0 };
+static GdkColor progress_trust = { 65535,0,65535,0 };
static Key keys[] = {
/* modifier keyval function arg …
{ 0, GDK_Escape, hidesearch, {0}, ALWAYS…
t@@ -25,3 +27,4 @@ static Key keys[] = {
{ GDK_CONTROL_MASK, GDK_h, navigate, {.i = -1}, BROWSE…
{ 0, GDK_Escape, stop, {0}, BROWSE…
};
+
diff --git a/surf.c b/surf.c
t@@ -180,8 +180,6 @@ drawindicator(Client *c) {
GtkWidget *w;
gint width;
GdkGC *gc;
- GdkColor red = { 65535,65535,0,0 };
- GdkColor green = { 65535,0,65535,0 };
gchar *uri;
t@@ -192,9 +190,9 @@ drawindicator(Client *c) {
gc = gdk_gc_new(w->window);
if(strstr(uri, "https://") == uri)
- gdk_gc_set_rgb_fg_color(gc, &green);
+ gdk_gc_set_rgb_fg_color(gc, &progress_trust);
else
- gdk_gc_set_rgb_fg_color(gc, &red);
+ gdk_gc_set_rgb_fg_color(gc, &progress);
gdk_draw_rectangle(w->window,
w->style->bg_gc[GTK_WIDGET_STATE(w)],
TRUE,
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.