tomboy r1967 - in trunk: . Tomboy/Addins/Tasque
- From: sharm svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r1967 - in trunk: . Tomboy/Addins/Tasque
- Date: Thu, 13 Mar 2008 15:27:30 +0000 (GMT)
Author: sharm
Date: Thu Mar 13 15:27:29 2008
New Revision: 1967
URL: http://svn.gnome.org/viewvc/tomboy?rev=1967&view=rev
Log:
* Tomboy/Addins/Tasque/Tasque.addin.xml: Changed category
Tools->Desktop Integration.
* Tomboy/Addins/Tasque/TasqueNoteAddin.cs: Moved note window
initialization code to OnNoteOpened event to prevent buffers from
being opened prematurely.
Modified:
trunk/ChangeLog
trunk/Tomboy/Addins/Tasque/Tasque.addin.xml
trunk/Tomboy/Addins/Tasque/TasqueNoteAddin.cs
Modified: trunk/Tomboy/Addins/Tasque/Tasque.addin.xml
==============================================================================
--- trunk/Tomboy/Addins/Tasque/Tasque.addin.xml (original)
+++ trunk/Tomboy/Addins/Tasque/Tasque.addin.xml Thu Mar 13 15:27:29 2008
@@ -3,7 +3,7 @@
name="Tasque"
author="Tomboy Project"
description="Create a task from the current line of text in Tasque."
- category="Tools"
+ category="Desktop Integration"
defaultEnabled="false"
version="0.1">
Modified: trunk/Tomboy/Addins/Tasque/TasqueNoteAddin.cs
==============================================================================
--- trunk/Tomboy/Addins/Tasque/TasqueNoteAddin.cs (original)
+++ trunk/Tomboy/Addins/Tasque/TasqueNoteAddin.cs Thu Mar 13 15:27:29 2008
@@ -34,7 +34,19 @@
public override void Initialize ()
{
submenuBuilt = false;
+ }
+ public override void Shutdown ()
+ {
+ // The following two lines are required to prevent the plugin
+ // from leaking references when the plugin is disabled.
+ menu.Hidden -= OnMenuHidden;
+ menuToolButton.Clicked -= OnMenuToolButtonClicked;
+ menuToolButton.ShowMenu -= OnMenuItemActivated;
+ }
+
+ public override void OnNoteOpened ()
+ {
menu = new Gtk.Menu ();
menu.Hidden += OnMenuHidden;
menu.ShowAll ();
@@ -55,19 +67,6 @@
markSetTimeout.Timeout += UpdateTaskButtonSensitivity;
Note.Buffer.MarkSet += OnSelectionMarkSet;
}
-
- public override void Shutdown ()
- {
- // The following two lines are required to prevent the plugin
- // from leaking references when the plugin is disabled.
- menu.Hidden -= OnMenuHidden;
- menuToolButton.Clicked -= OnMenuToolButtonClicked;
- menuToolButton.ShowMenu -= OnMenuItemActivated;
- }
-
- public override void OnNoteOpened ()
- {
- }
void OnMenuToolButtonClicked (object sender, EventArgs args)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]