tRemove (apparently) redundant messing with colormaps. - 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 39386c9a043c1d52435bcba4b40a047cd6f0982e (DIR) parent 763fc9ea13305b730bab052f6e3c9161c838eff9 (HTM) Author: Ben Webb <ben@salilab.org> Date: Mon, 18 Mar 2002 13:16:53 +0000 Remove (apparently) redundant messing with colormaps. Diffstat: M src/gtkport/gtkport.c | 3 --- 1 file changed, 0 insertions(+), 3 deletions(-) --- (DIR) diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c t@@ -5123,7 +5123,6 @@ GtkWidget *gtk_url_new(const gchar *text, const gchar *target, gchar *pattern; GtkStyle *style; GdkColor color; - GdkColormap *colormap; color.red = 0; color.green = 0; t@@ -5133,8 +5132,6 @@ GtkWidget *gtk_url_new(const gchar *text, const gchar *target, /* Set the text colour */ style = gtk_style_new(); - colormap = gtk_widget_get_colormap(label); - gdk_colormap_alloc_color(colormap, &color, FALSE, TRUE); style->fg[GTK_STATE_NORMAL] = color; gtk_widget_set_style(label, style);