Gtk.AboutDialog.SetEmailHook Method
Installs a global function to be called whenever the user activates an email link in an about dialog.

Syntax

public static AboutDialogActivateLinkFunc SetEmailHook (AboutDialogActivateLinkFunc func)

Parameters

func
A Gtk.AboutDialogActivateLinkFunc delegate to be called when an email link is activated.

Returns

The Gtk.AboutDialogActivateLinkFunc delegate that was previously used as the email hook.

Remarks

If no hook is set, email addresses will appear in the dialogs as standard non-clickable text.

The following example uses the built in ome.Url.Show(string) to open emails:

C# Example

	Gtk.AboutDialog.SetEmailHook(delegate(Gtk.AboutDialog dialog, string email) {
		Gnome.Url.Show("mailto:" + email);
	});

Requirements

Namespace: Gtk
Assembly: gtk-sharp (in gtk-sharp.dll)
Since: Gtk# 2.6