(Note: this is not included in versions of the panel prior to 1.2)
Sometimes you want to change the way the applet looks after it has already been added to the panel, and you want the right and middle mouse button clicks to still work. In this case you need to notify the panel that it should try to rebind the events. You do this with:
Example 13. Rebinding
#ifdef HAVE_APPLET_BIND_EVENTS applet_widget_bind_events(APPLET_WIDGET(applet),GTK_WIDGET(widget)); #endif
Note that this is NOT in the panel in gnome-core 1.0, so if you use this feature, make sure to put the "#ifdef HAVE_APPLET_BIND_EVENTS" around the code.