예제 #1
0
파일: Applet.cs 프로젝트: shubhtr/tomboy-1
        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);
        }
예제 #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);
		}