Esempio n. 1
0
        protected override bool OnPopupMenu()
        {
            var popup = new PhotoPopup();

            popup.Activate(Toplevel);
            return(true);
        }
Esempio n. 2
0
 void HandleButtonPressEvent(object sender, Gtk.ButtonPressEventArgs args)
 {
     if (args.Event.Type == Gdk.EventType.ButtonPress && args.Event.Button == 3)
     {
         var popup = new PhotoPopup(this);
         popup.Activate(Toplevel, args.Event);
     }
 }
 // Event handlers.
 private void HandleButtonPressEvent(object sender, ButtonPressEventArgs args)
 {
     if (args.Event.Type == EventType.ButtonPress &&
         args.Event.Button == 3)
     {
         PhotoPopup popup = new PhotoPopup();
         popup.Activate(this.Toplevel, args.Event);
     }
 }
Esempio n. 4
0
 // Event handlers.
 void HandleButtonPressEvent(object sender, ButtonPressEventArgs args)
 {
     if (args.Event.Type == EventType.TwoButtonPress && args.Event.Button == 1 && DoubleClicked != null)
     {
         DoubleClicked(this, null);
     }
     if (args.Event.Type == EventType.ButtonPress &&
         args.Event.Button == 3)
     {
         var popup = new PhotoPopup();
         popup.Activate(Toplevel, args.Event);
     }
 }
Esempio n. 5
0
 // Event handlers.
 void HandleButtonPressEvent(object sender, ButtonPressEventArgs args)
 {
     if (args.Event.Type == EventType.TwoButtonPress && args.Event.Button == 1 && DoubleClicked != null)
             DoubleClicked (this, null);
     if (args.Event.Type == EventType.ButtonPress
         && args.Event.Button == 3) {
         PhotoPopup popup = new PhotoPopup ();
         popup.Activate (Toplevel, args.Event);
     }
 }
Esempio n. 6
0
 protected override bool OnPopupMenu()
 {
     PhotoPopup popup = new PhotoPopup ();
     popup.Activate (Toplevel);
     return true;
 }
		private void HandleButtonPressEvent (object sender, Gtk.ButtonPressEventArgs args)
		{
			if (args.Event.Type == Gdk.EventType.ButtonPress
			    && args.Event.Button == 3) {
				PhotoPopup popup = new PhotoPopup ();
				popup.Activate (this.Toplevel, args.Event);
			}
		}