Tomboy UI/String Change: Use GtkLinkButton for New Note Template



Hello again,

I've modified the "Open New Note Template" button in the preferences
dialog to be a GtkLinkButton instead of a GtkButton.  The text of the
button is now:

"Open New Note Template"

Attached is the full patch and a screenshot of the new button.

-Boyd

Attachment: screenshot3.png
Description: PNG image

Index: Tomboy/PreferencesDialog.cs
===================================================================
--- Tomboy/PreferencesDialog.cs	(revision 1688)
+++ Tomboy/PreferencesDialog.cs	(working copy)
@@ -206,11 +206,11 @@ namespace Tomboy
 			align = new Gtk.Alignment (0.5f, 0.5f, 0.4f, 1.0f);
 			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;
-			open_template_button = new Gtk.Button (
-			        Catalog.GetString ("_Open New Note Template..."));
-			open_template_button.UseUnderline = true;
 			open_template_button.Clicked += OpenTemplateButtonClicked;
 			open_template_button.Show ();
 			align.Add (open_template_button);


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