[gtk+] GtkAboutDialog: be consistent about link activation



commit 2ebbc724b7280c0b9569098f42bc849a23a2dc4b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jan 4 11:08:29 2014 -0500

    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.

 gtk/gtkaboutdialog.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 80fc7c6..84dd8d5 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2261,6 +2261,8 @@ add_credits_section (GtkAboutDialog *about,
 
       label = gtk_label_new (str->str);
       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);
       gtk_widget_set_halign (label, GTK_ALIGN_START);
       gtk_widget_set_valign (label, GTK_ALIGN_CENTER);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]