After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 721394 - GtkAboutDialog does not emit activate-link signal in credits section
GtkAboutDialog does not emit activate-link signal in credits section
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
3.11.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2014-01-03 13:59 UTC by andriusr
Modified: 2014-01-04 19:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to solve "activate-link" signal configuration (481 bytes, patch)
2014-01-03 13:59 UTC, andriusr
none Details | Review

Description andriusr 2014-01-03 13:59:49 UTC
Created attachment 265219 [details] [review]
Patch to solve "activate-link" signal configuration

I would like to override default link handler in GtkAboutDialog, which is gtk_show_uri(). 
Toto this i created pseudocode like this:

GtkWidget *dialog;
dialog = gtk_about_dialog_new();
g_signal_connect (dialog, "activate-link", G_CALLBACK (activate_link_lcb), NULL);

In the callback activate_link_lcb() I have code that handles clicking on the link.
The problem is, that default handler is overriden in website and license sections, but in credits section it is not.

The solution is to connect "activate-link" signal to the labels that are created in add_credits_section() function.
Simple patch is in attached file.
Andrius