summaryrefslogtreecommitdiff
path: root/gtk/gtklinkbutton.c
diff options
context:
space:
mode:
authorSven Neumann <sven@gimp.org>2008-08-04 14:13:12 +0000
committerSven Neumann <neo@src.gnome.org>2008-08-04 14:13:12 +0000
commitcd8bca1c6406da8a4aeb854205d81436123e2f07 (patch)
treec196a99527414ee4bcf62a5830bd23f7bee7bace /gtk/gtklinkbutton.c
parentd132b616e2c7b5ad8699b85c845b42cdc496707a (diff)
downloadgtk+-cd8bca1c6406da8a4aeb854205d81436123e2f07.tar.gz
update the link color when the "visited" state is changed.
2008-08-04 Sven Neumann <sven@gimp.org> * gtk/gtklinkbutton.c (gtk_link_button_set_uri): update the link color when the "visited" state is changed. svn path=/trunk/; revision=20966
Diffstat (limited to 'gtk/gtklinkbutton.c')
-rw-r--r--gtk/gtklinkbutton.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtklinkbutton.c b/gtk/gtklinkbutton.c
index 358600e51d..da74322b50 100644
--- a/gtk/gtklinkbutton.c
+++ b/gtk/gtklinkbutton.c
@@ -630,7 +630,11 @@ gtk_link_button_set_uri (GtkLinkButton *link_button,
g_free (priv->uri);
priv->uri = g_strdup (uri);
- priv->visited = FALSE;
+ if (priv->visited)
+ {
+ priv->visited = FALSE;
+ set_link_color (link_button);
+ }
g_object_notify (G_OBJECT (link_button), "uri");
}