GNOME Bugzilla – Bug 492200
LinkButton with single param does not behave
Last modified: 2007-11-05 08:49:13 UTC
There is something wrong about LinkButtons constructed with one parameter (uri, which should then be used both as uri and label). A Button (parent) does seem to get created, but 4 GTK+ warnings "Gtk-CRITICAL **: gtk_widget_modify_fg: assertion `GTK_IS_WIDGET (widget)' failed" are produced.
Created attachment 98288 [details] test case, with C widgets to compare I do not know the reason. Looking at the hg file, it seems that everything is ok.
gtk_link_button_new(label) does this: retval = g_object_new (GTK_TYPE_LINK_BUTTON, "uri", uri, "label", utf8_uri, NULL); So, I guess we need to do something similar in our constructor to create the label string.
Created attachment 98507 [details] [review] linkbutton_constructor.patch Does this fix it for you?
Created attachment 98527 [details] [review] patch for constructor with uri Almost :). The fix should be for the constructor with uri, passing it as a label as well (the one with uri and label is fine).
To make it clear, the patch above solves the problem.
Yes, I realized this afterwards but forgot to update the newer patch. Sorry. It's committed now. Thanks.