[tomboy] Use a Button instead of a LinkButton for "Open New Note Template". Fixes bug #581582.



commit 994b9c37dce946e92f8594f5f129efac8ac5e375
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date:   Thu May 7 18:12:44 2009 -0700

    Use a Button instead of a LinkButton for "Open New Note Template". Fixes bug #581582.
    
    This works around an issue in Ubuntu 9.04 where activating a LinkButton without a URI results in an error dialog.
---
 Tomboy/PreferencesDialog.cs |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/Tomboy/PreferencesDialog.cs b/Tomboy/PreferencesDialog.cs
index 8a56c83..dee8bdf 100644
--- a/Tomboy/PreferencesDialog.cs
+++ b/Tomboy/PreferencesDialog.cs
@@ -219,9 +219,8 @@ namespace Tomboy
 			align.Show ();
 			options_list.PackStart (align, false, false, 0);
 			
-			Gtk.LinkButton open_template_button = new Gtk.LinkButton (
-				String.Empty,
-				Catalog.GetString ("Open New Note Template"));
+			Gtk.Button open_template_button = new Gtk.Button ();
+			open_template_button.Label = Catalog.GetString ("Open New Note Template");
 
 			open_template_button.Clicked += OpenTemplateButtonClicked;
 			open_template_button.Show ();



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