forked from AuroraMiddleware/gtk
GtkAboutDialog: be consistent about link activation
As pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=721394, links in the credits part were not going through the ::link-activated signal. Fix that.
This commit is contained in:
parent
08f31006cb
commit
2ebbc724b7
@ -2261,6 +2261,8 @@ add_credits_section (GtkAboutDialog *about,
|
|||||||
|
|
||||||
label = gtk_label_new (str->str);
|
label = gtk_label_new (str->str);
|
||||||
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
|
gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
|
||||||
|
g_signal_connect_swapped (label, "activate-link",
|
||||||
|
G_CALLBACK (emit_activate_link), about);
|
||||||
g_string_free (str, TRUE);
|
g_string_free (str, TRUE);
|
||||||
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||||
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
|
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
|
||||||
|
Loading…
Reference in New Issue
Block a user