Re: Start an application from clicking on an image
- From: Havoc Pennington <hp redhat com>
- To: Jason Brock <sho ev1 net>
- Cc: gtk-devel-list gnome org
- Subject: Re: Start an application from clicking on an image
- Date: 12 Jan 2002 23:17:49 -0500
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]