[Gtk-sharp-list] ButtonPressEvent doesn't get fired for a TreeView
Daniel Morgan
monodanmorg at yahoo.com
Tue Jan 17 11:30:12 EST 2006
Thank you so much!
I've been wondering how in the world to get that event from TreeView.
BTW, how is Stetic coming along?
Dan Winship <danw at novell.com> wrote:
radu wrote:
> I'm trying to catch the ButtonPressEvent for a TreeView and implement a
> context popup menu, but it seams the event doesn't get fired. Do I have
> to use an EventBox or there is another way around?
You need to use the [GLib.ConnectBefore] attribute on the signal
handler, because in certain cases, TreeView's default ButtonPressEvent
handler will just eat the event and not give anyone else a chance to
handle it.
-- Dan
---------------------------------
Yahoo! Photos
Got holiday prints? See all the ways to get quality prints in your hands ASAP.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060117/59b86252/attachment.html
More information about the Gtk-sharp-list
mailing list