diff options
author | Sven Neumann <sven@gimp.org> | 2008-08-04 14:13:12 +0000 |
---|---|---|
committer | Sven Neumann <neo@src.gnome.org> | 2008-08-04 14:13:12 +0000 |
commit | cd8bca1c6406da8a4aeb854205d81436123e2f07 (patch) | |
tree | c196a99527414ee4bcf62a5830bd23f7bee7bace | |
parent | d132b616e2c7b5ad8699b85c845b42cdc496707a (diff) | |
download | gtk+-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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gtk/gtklinkbutton.c | 6 |
2 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,8 @@ +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. + 2008-08-04 Michael Natterer <mitch@imendio.com> * gtk/gtkwindow.c: move the code of the deprecated 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"); } |