[longomatch] Define a cross platform URL Handler for GtkLabel
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Define a cross platform URL Handler for GtkLabel
- Date: Sat, 29 Nov 2014 15:02:34 +0000 (UTC)
commit 22d67de81bb4c995e1097f9c5bee44c02642abde
Author: Julien Moutte <julien fluendo com>
Date: Sat Nov 29 12:30:52 2014 +0100
Define a cross platform URL Handler for GtkLabel
LongoMatch.GUI/Gui/Dialog/CodecsChoiceDialog.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/CodecsChoiceDialog.cs b/LongoMatch.GUI/Gui/Dialog/CodecsChoiceDialog.cs
index 28a1d4a..0c2bb4e 100644
--- a/LongoMatch.GUI/Gui/Dialog/CodecsChoiceDialog.cs
+++ b/LongoMatch.GUI/Gui/Dialog/CodecsChoiceDialog.cs
@@ -17,6 +17,7 @@
//
using System;
using System.IO;
+using LongoMatch;
using LongoMatch.Gui;
using LongoMatch.Core.Common;
@@ -34,6 +35,14 @@ namespace LongoMatch.Gui.Dialog
buttonOKimage.Pixbuf = img.Value;
titlelabel.ModifyFont (FontDescription.FromString (Config.Style.Font + " 14"));
+
+ // Configure URL handler for the links
+ GtkGlue.SetLinkHandler (label1, (url) => {
+ try {
+ System.Diagnostics.Process.Start (url);
+ } catch {
+ }
+ });
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]