Re: Start an application from clicking on an image



Jason Brock <sho ev1 net> writes:
> I have a fixed widget container with a pixmap inside.  I want to click
> on the image with the left mouse button, and it will execute a
> program. How can this be done?

Put the image in a GtkEventBox, call gtk_widget_add_events (eventbox,
GDK_BUTTON_PRESS_MASK), connect to "button_press_event" on the event
box.

>  Next I have an applet on the
> panel. When I left click on the button I want it to open this other
> popup window right next to it (like a menu).

Use the PositionFunc arg to gtk_menu_popup() to position menus.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]