SOLVED: xfce_panel_plugin_add_action_widget and hbox

Mark Trompell mark at
Fri Jul 15 09:14:20 CEST 2011

>> I could be talking out of my ass here, but sounds like gtk.EventBox might be
>> the widget you're looking for.
> Okay, tried, and doesn't work.
> If i set  gtk_event_box_set_above_child () true I get the contextmenu,
> but the buttons don't get the button_press anymore.
> If it's false, the buttons get the press event, but not the eventbox.
> Any hints, while I try to find the solution myself of course.
> Probably easy.

I just send the event to the ebox directly with
gtk_widget_event (indicator->ebox, (GdkEvent*)event);
in the Callback for the buttons.
Maybe there is a better way, but it works at least.

>> - Jari

Mark Trompell

Foresight Linux Xfce Edition
Cause your desktop should be freaking cool
(and Xfce)

More information about the Xfce4-dev mailing list