tasque r58 - in trunk: . src
- From: bgmerrell svn gnome org
- To: svn-commits-list gnome org
- Subject: tasque r58 - in trunk: . src
- Date: Fri, 9 May 2008 23:41:05 +0100 (BST)
Author: bgmerrell
Date: Fri May 9 22:41:05 2008
New Revision: 58
URL: http://svn.gnome.org/viewvc/tasque?rev=58&view=rev
Log:
Put the user into "Edit Note" mode when they open notes w/ 0 current
notes
Added an accessible description for the category selection combo box
Modified:
trunk/ChangeLog
trunk/src/NoteDialog.cs
trunk/src/TaskWindow.cs
Modified: trunk/src/NoteDialog.cs
==============================================================================
--- trunk/src/NoteDialog.cs (original)
+++ trunk/src/NoteDialog.cs Fri May 9 22:41:05 2008
@@ -85,20 +85,26 @@
}
#endregion // Properties
- #region Private Methods
- #endregion // PrivateMethods
-
- #region Event Handlers
- void OnAddButtonClicked (object sender, EventArgs args)
+ #region Public Methods
+ public void CreateNewNote()
{
- Logger.Debug("Add button clicked in dialog");
+ Logger.Debug("Creating a new note");
NoteWidget noteWidget = new NoteWidget (null);
noteWidget.TextChanged += OnNoteTextChanged;
noteWidget.DeleteButtonClicked += OnDeleteButtonClicked;
noteWidget.Show ();
targetVBox.PackStart (noteWidget, false, false, 0);
-
- // TODO: Implement NoteDialog.OnAddButtonClicked
+ }
+ #endregion // Public Methods
+
+ #region Private Method
+ #endregion // PrivateMethods
+
+ #region Event Handlers
+ void OnAddButtonClicked (object sender, EventArgs args)
+ {
+ Logger.Debug("Add button clicked in dialog");
+ this.CreateNewNote();
}
Modified: trunk/src/TaskWindow.cs
==============================================================================
--- trunk/src/TaskWindow.cs (original)
+++ trunk/src/TaskWindow.cs Fri May 9 22:41:05 2008
@@ -128,6 +128,7 @@
topHBox.BorderWidth = 4;
categoryComboBox = new ComboBox ();
+ categoryComboBox.Accessible.Description = "Category Selection";
categoryComboBox.WidthRequest = 150;
categoryComboBox.WrapWidth = 1;
CellRendererText comboBoxRenderer = new Gtk.CellRendererText ();
@@ -166,10 +167,10 @@
l.Show ();
buttonHBox.PackStart (l, true, true, 0);
buttonHBox.Show ();
- addTaskButton =
+ addTaskButton =
new MenuToolButton (buttonHBox, Catalog.GetString ("_Add Task"));
addTaskButton.UseUnderline = true;
- // Disactivate the button until the backend is initialized
+ // Disactivate the button until the backend is initialized
addTaskButton.Sensitive = false;
Gtk.Menu addTaskMenu = new Gtk.Menu ();
addTaskButton.Menu = addTaskMenu;
@@ -751,6 +752,9 @@
dialog = noteDialogs [task];
}
+ if (!task.HasNotes) {
+ dialog.CreateNewNote();
+ }
dialog.Present ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]