SOLVED: xfce_panel_plugin_add_action_widget and hbox
jari.rahkonen at pp1.inet.fi
Fri Jul 15 12:48:00 CEST 2011
15.07.2011 10:14, Mark Trompell kirjoitti:
>>> 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
Glad you could make it work. I was in fact about to suggest passing
through the relevant events. I don't see any problems with your
solution, but then again, this isn't exactly my area of expertise.
More information about the Xfce4-dev