Author: ebassi
Date: Mon Feb 11 09:55:29 2008
New Revision: 19510
URL: http://svn.gnome.org/viewvc/gtk+?rev=19510&view=rev
Log:
Revert spurious commit on GtkLinkButton
Modified:
trunk/gtk/gtklinkbutton.c
Modified: trunk/gtk/gtklinkbutton.c
==============================================================================
--- trunk/gtk/gtklinkbutton.c (original)
+++ trunk/gtk/gtklinkbutton.c Mon Feb 11 09:55:29 2008
@@ -538,8 +538,8 @@
}
retval = g_object_new (GTK_TYPE_LINK_BUTTON,
- "label", utf8_uri,
"uri", uri,
+ "label", utf8_uri,
NULL);
g_free (utf8_uri);
@@ -590,24 +590,17 @@
gtk_link_button_set_uri (GtkLinkButton *link_button,
const gchar *uri)
{
- GtkLinkButtonPrivate *priv;
- const gchar *label;
gchar *tmp;
g_return_if_fail (GTK_IS_LINK_BUTTON (link_button));
g_return_if_fail (uri != NULL);
+
+ tmp = link_button->priv->uri;
+ link_button->priv->uri = g_strdup (uri);
+ g_free (tmp);
- priv = link_button->priv;
-
- g_free (priv->uri);
- priv->uri = g_strdup (uri);
-
- label = gtk_button_get_label (GTK_BUTTON (link_button));
- if (label && *label != '\0' && strcmp (label, uri) != 0)
- gtk_widget_set_tooltip_text (GTK_WIDGET (link_button), uri);
-
- priv->visited = FALSE;
-
+ link_button->priv->visited = FALSE;
+
g_object_notify (G_OBJECT (link_button), "uri");
}
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.