[tomboy] Add "Get More Add-Ins..." link in Add-Ins tab of PreferencesDialog.
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Subject: [tomboy] Add "Get More Add-Ins..." link in Add-Ins tab of PreferencesDialog.
- Date: Mon, 6 Jul 2009 22:19:44 +0000 (UTC)
commit 0cc3410c47af9ad2414969f7e47d08dbe531a40b
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Mon Jul 6 23:18:15 2009 +0100
Add "Get More Add-Ins..." link in Add-Ins tab of PreferencesDialog.
Tomboy/PreferencesDialog.cs | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/Tomboy/PreferencesDialog.cs b/Tomboy/PreferencesDialog.cs
index b5bb69f..07ed364 100644
--- a/Tomboy/PreferencesDialog.cs
+++ b/Tomboy/PreferencesDialog.cs
@@ -537,7 +537,23 @@ namespace Tomboy
sw.ShadowType = Gtk.ShadowType.In;
sw.Add (tree);
sw.Show ();
- hbox.PackStart (sw, true, true, 0);
+ Gtk.LinkButton get_more_link =
+ new Gtk.LinkButton ("http://live.gnome.org/Tomboy/PluginList",
+ Catalog.GetString ("Get More Add-Ins..."));
+ get_more_link.Clicked += delegate(object sender, EventArgs args) {
+ string uri = ((Gtk.LinkButton) sender).Uri;
+ try {
+ Services.NativeApplication.OpenUrl (uri);
+ } catch (Exception e) {
+ GuiUtils.ShowOpeningLocationError (this, uri, e.Message);
+ }
+ };
+ get_more_link.Show ();
+ Gtk.VBox tree_box = new Gtk.VBox (false, 0);
+ tree_box.Add (sw);
+ tree_box.PackEnd (get_more_link, false, false, 5);
+ tree_box.Show ();
+ hbox.PackStart (tree_box, true, true, 0);
// Action Buttons (right of TreeView)
Gtk.VButtonBox button_box = new Gtk.VButtonBox ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]