]> Pileus Git - ~andy/gtk/commitdiff
update the link color when the "visited" state is changed.
authorSven Neumann <sven@gimp.org>
Mon, 4 Aug 2008 14:13:12 +0000 (14:13 +0000)
committerSven Neumann <neo@src.gnome.org>
Mon, 4 Aug 2008 14:13:12 +0000 (14:13 +0000)
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

ChangeLog
gtk/gtklinkbutton.c

index 283b38f771dae5b1e668f301353333b77ec7417c..a297aa195487f1453a92d3eaf29578f1b10bbb7a 100644 (file)
--- 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
index 358600e51d542936897d2246cbb523e5757bd358..da74322b50c18e5ba9bb9ea7adf020d76ae0281b 100644 (file)
@@ -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");
 }