[Gtk-sharp-list] Context (popup) menus, Widget.PopupMenu and treeviews

Rafael Teixeira monoman at gmail.com
Wed Jun 28 13:33:52 EDT 2006

Have you tried to test it by pressing Shift-F10, when the treeview has
the focus?

See http://developer.gnome.org/doc/API/2.0/gtk/gtk-migrating-checklist.html#checklist-popup-menu
for some details, on how to make PopupMenu/Key Binding/Clicks match
(sorry it is C, but can be adapted to C#, I think)


On 6/28/06, Jon García de Salazar Bilbao <j.garcia at ziv.es> wrote:
> Thanks Carlos and Rafael.
> Well, I've tried...
> PopupMenu += new PopupMenuHandler(ProjectTreePopupMenu);
> [GLib.ConnectBefore]
>         public void ProjectTreePopupMenu(object o, PopupMenuArgs args)
>         {
>             Console.WriteLine(":TODO: launch popup menu");
>         }
> ...but it doesn't seem to work.
> I've also tried to override the default method and it doesn't work either.
> protected override bool OnPopupMenu()
>         {
>             Console.WriteLine(":TODO: launch popup menu");
>             return base.OnPopupMenu();
>         }
> I have no clue.
> ----------------------------------------- PLEASE NOTE -------------------------------------------
> This message, along with any attachments, may be confidential or legally privileged.
> It is intended only for the named person(s), who is/are the only authorized recipients.
> If this message has reached you in error, kindly destroy it without review and notify the sender immediately.
> Thank you for your help.
> µSysCom uses virus scanning software but excludes any liability for viruses contained in any attachment.
> ------------------------------------ ROGAMOS LEA ESTE TEXTO -------------------------------
> Este mensaje y sus anexos pueden contener información confidencial y/o con derecho legal.
> Está dirigido únicamente a la/s persona/s o entidad/es reseñadas como único destinatario autorizado.
> Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. Gracias por su colaboración.
> µSysCom utiliza software antivirus, pero no se hace responsable de los virus contenidos en los ficheros anexos.

Rafael "Monoman" Teixeira
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw

More information about the Gtk-sharp-list mailing list