Re: [NEWBIE]How to show popup given a GdkEventButton object?



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]