Re: [NEWBIE]How to show popup given a GdkEventButton object?
- From: Olexiy Avramchenko <olexiy ctech cn ua>
- To: Edward Yang <neo_in_matrix fastmail fm>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: [NEWBIE]How to show popup given a GdkEventButton object?
- Date: Sat, 09 Apr 2005 13:12:52 +0300
Edward Yang wrote:
How to turn the x, y members to screen coordinates so that I can show a
popup menu?
x_root, y_root fields of GdkEventButton structure ?
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventButton
BTW, it there an easy way to show a popup menu? I looke an open source
editor, but the code seems very complex.
Try gtk_item_factory_popup() function.
http://developer.gnome.org/doc/API/2.0/gtk/GtkItemFactory.html#gtk-item-factory-popup
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]