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
This commit is contained in:
Sven Neumann 2008-08-04 14:13:12 +00:00 committed by Sven Neumann
parent d132b616e2
commit cd8bca1c64
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -630,7 +630,11 @@ gtk_link_button_set_uri (GtkLinkButton *link_button,
g_free (priv->uri);
priv->uri = g_strdup (uri);
if (priv->visited)
{
priv->visited = FALSE;
set_link_color (link_button);
}
g_object_notify (G_OBJECT (link_button), "uri");
}