gucharmap r1927 - trunk/gucharmap



Author: chpe
Date: Mon Sep 29 13:14:23 2008
New Revision: 1927
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1927&view=rev

Log:
Add about dialogue email hook.

Modified:
   trunk/gucharmap/gucharmap-window.c

Modified: trunk/gucharmap/gucharmap-window.c
==============================================================================
--- trunk/gucharmap/gucharmap-window.c	(original)
+++ trunk/gucharmap/gucharmap-window.c	Mon Sep 29 13:14:23 2008
@@ -455,6 +455,21 @@
 }
 
 static void
+about_email_hook (GtkAboutDialog *about,
+		  const char *email_address,
+		  gpointer user_data)
+{
+  char *escaped, *uri;
+
+  escaped = g_uri_escape_string (email_address, NULL, FALSE);
+  uri = g_strdup_printf ("mailto:%s";, escaped);
+  g_free (escaped);
+
+  open_url (GTK_WINDOW (about), uri, gtk_get_current_event_time ());
+  g_free (uri);
+}
+
+static void
 help_about (GtkAction       *action, 
             GucharmapWindow *guw)
 {
@@ -500,6 +515,7 @@
 			       _(license[4]), "\n\n", NULL);
 
   gtk_about_dialog_set_url_hook (about_open_url, NULL, NULL);
+  gtk_about_dialog_set_email_hook (about_email_hook, NULL, NULL);
 
   gtk_show_about_dialog (GTK_WINDOW (guw),
 			 "program-name", _("GNOME Character Map"),



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