[hackers] [surf] moving color definitions to config.h || Enno Boland (tox)

From: <hg_AT_suckless.org>
Date: Mon, 7 Sep 2009 09:00:58 +0000 (UTC)

changeset: 66:740f25ee1c92
tag: tip
user: Enno Boland (tox) <tox_AT_s01.de>
date: Mon Sep 07 11:02:26 2009 +0200
files: config.h surf.c
description:
moving color definitions to config.h

diff -r 386652c89c1b -r 740f25ee1c92 config.h
--- a/config.h Mon Sep 07 10:56:27 2009 +0200
+++ b/config.h Mon Sep 07 11:02:26 2009 +0200
@@ -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 Focus */
     { 0, GDK_Escape, hidesearch, {0}, ALWAYS },
@@ -25,3 +27,4 @@
     { GDK_CONTROL_MASK, GDK_h, navigate, {.i = -1}, BROWSER },
     { 0, GDK_Escape, stop, {0}, BROWSER },
 };
+
diff -r 386652c89c1b -r 740f25ee1c92 surf.c
--- a/surf.c Mon Sep 07 10:56:27 2009 +0200
+++ b/surf.c Mon Sep 07 11:02:26 2009 +0200
@@ -180,8 +180,6 @@
         GtkWidget *w;
         gint width;
         GdkGC *gc;
- GdkColor red = { 65535,65535,0,0 };
- GdkColor green = { 65535,0,65535,0 };
         gchar *uri;
 
 
@@ -192,9 +190,9 @@
         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,
Received on Mon Sep 07 2009 - 09:00:58 UTC

This archive was generated by hypermail 2.2.0 : Mon Sep 07 2009 - 09:12:16 UTC