RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- Date: Tue, 18 Dec 2007 20:53:10 +0100
- From: Mathias Hasselmann <mathias.hasselmann@xxxxxx>
- Subject: RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
Am Dienstag, den 18.12.2007, 11:56 -0500 schrieb Vallone, Anthony: > > I don't know what went wrong, but connecting to the "popup-menu" > > signal definitly works, as the attached program demonstrates. > > > Thanks for replying Mathias. When I run your code, the clipboard menu > still opens. Does the menu open for you with this code? If not, does > the menu open for you if you remove the "popup-menu" signal connect? If > we are seeing different behavior for this code, maybe its a > configuration/environment difference. Oh, being a keyboard guy I only tested using the context-menu key. On right-click the menu still appears. Weird. Turns out, you also have to connect to "button-press-event" and return TRUE there, when seeing event->button == 3 && event->type == GDK_BUTTON_PRESS. Maybe you want to file a bug-report, that GTK+ should emit the "popup-menu" signal when seeing that condition, instead of shortcutting to the code displaying the popup menu. Ciao, Mathias -- Mathias Hasselmann <mathias.hasselmann@xxxxxx> Openismus GmbH: http://www.openismus.com/ Personal Site: http://taschenorakel.de/
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list
- Follow-Ups:
- RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- From: Vallone, Anthony
- RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- References:
- Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- From: Vallone, Anthony
- Re: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- From: Mathias Hasselmann
- RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- From: Vallone, Anthony
- Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- Prev by Date: Re: IO Channel Flush - Assertion Failure
- Next by Date: Re: IO Channel Flush - Assertion Failure
- Previous by thread: RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- Next by thread: RE: Can I Disable or Alter GtkEntry and GtkTextView Clipboard Menus?
- Index(es):