Exemple #1
0
        public override void Creation()
        {
            Logger.Log("Applet Created...");

            manager          = Tomboy.DefaultNoteManager;
            applet_event_box = new TomboyPanelAppletEventBox(manager);
            // No need to keep the reference
            new TomboyPrefsKeybinder(manager, applet_event_box);

            Flags |= PanelAppletFlags.ExpandMinor;

            Add(applet_event_box);
            Tomboy.Tray = applet_event_box.Tray;
            OnChangeSize(Size);
            ShowAll();

            if (menu_verbs == null)
            {
                menu_verbs = new BonoboUIVerb [] {
                    new BonoboUIVerb("Sync", SyncVerb),
                    new BonoboUIVerb("Props", ShowPreferencesVerb),
                    new BonoboUIVerb("Help", ShowHelpVerb),
                    new BonoboUIVerb("About", ShowAboutVerb)
                };
            }

            SetupMenuFromResource(null, "GNOME_TomboyApplet.xml", menu_verbs);
        }
Exemple #2
0
		public override void Creation ()
		{
			Logger.Log ("Applet Created...");

			manager = Tomboy.DefaultNoteManager;
			applet_event_box = new TomboyPanelAppletEventBox (manager);
			// No need to keep the reference
			new TomboyPrefsKeybinder (manager, applet_event_box);

			Flags |= PanelAppletFlags.ExpandMinor;

			Add (applet_event_box);
			Tomboy.Tray = applet_event_box.Tray;
			OnChangeSize (Size);
			ShowAll ();

			if (menu_verbs == null) {
				menu_verbs = new BonoboUIVerb [] {
					new BonoboUIVerb ("Sync", SyncVerb),
					new BonoboUIVerb ("Props", ShowPreferencesVerb),
					new BonoboUIVerb ("Help", ShowHelpVerb),
					new BonoboUIVerb ("About", ShowAboutVerb)
				};
			}

			SetupMenuFromResource (null, "GNOME_TomboyApplet.xml", menu_verbs);
		}