+
+/* URL handler used on the About dialog. */
+static void hdaps_url_handler(GtkAboutDialog *about,
+ const gchar *link,
+ gpointer data) {
+ gchar *cmd;
+
+ cmd = g_strdup_printf("%s %s","xdg-open", link);
+
+ /* Stolen from xfce4-power-manager. */
+ if (!g_spawn_command_line_async(cmd, NULL)) {
+ g_free(cmd);
+ cmd = g_strdup_printf("%s %s","xfbrowser4", link);
+ g_spawn_command_line_async(cmd, NULL);
+ }
+ g_free(cmd);
+}
+
+
+/* Email address handler used on the About dialog. */
+static void hdaps_mailto_handler(GtkAboutDialog *about,
+ const gchar *link,
+ gpointer data) {
+ gchar *cmd = g_strdup_printf( "%s %s", "xdg-email", link);
+
+ g_spawn_command_line_async(cmd, NULL);
+ g_free(cmd);
+}
+
+