tCopy, then modify, default style for GtkURL widget, so that it resembles a "no… | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d26be250238f23b3a04c71649df95e344b76f37a | |
parent be67e2907938631de0473cd4a233786421d9c4eb | |
Author: Ben Webb <[email protected]> | |
Date: Mon, 6 May 2002 10:58:40 +0000 | |
Copy, then modify, default style for GtkURL widget, so that it resembles | |
a "normal" label more closely (e.g. uses the same font) | |
Diffstat: | |
M src/gtkport/gtkport.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c | |
t@@ -5310,7 +5310,7 @@ GtkWidget *gtk_url_new(const gchar *text, const gchar *t… | |
label = gtk_label_new(text); | |
/* Set the text colour */ | |
- style = gtk_style_new(); | |
+ style = gtk_style_copy(gtk_rc_get_style(label)); | |
style->fg[GTK_STATE_NORMAL] = color; | |
gtk_widget_set_style(label, style); | |