tCopy, then modify, default style for GtkURL widget, so that it resembles a "normal" label more closely (e.g. uses the same font) - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit d26be250238f23b3a04c71649df95e344b76f37a
(DIR) parent be67e2907938631de0473cd4a233786421d9c4eb
(HTM) Author: Ben Webb <ben@salilab.org>
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(-)
---
(DIR) 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 *target,
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);