summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--gtk/gtklinkbutton.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 283b38f771..a297aa1954 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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");
}