summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 7c66fa55d..d21fac585 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -957,6 +957,11 @@ static void renumber_dialog(GtkWidget *w, gpointer data)
gtk_widget_destroy(dialog);
}
+static void about_dialog_link_cb(GtkAboutDialog *dialog, const gchar *link, gpointer data)
+{
+ subsurface_launch_for_uri(link);
+}
+
static void about_dialog(GtkWidget *w, gpointer data)
{
const char *logo_property = NULL;
@@ -984,6 +989,7 @@ static void about_dialog(GtkWidget *w, gpointer data)
/* Must be last: */
logo_property, logo,
NULL);
+ gtk_about_dialog_set_url_hook(about_dialog_link_cb, NULL, NULL);
}
static void view_list(GtkWidget *w, gpointer data)