xfce_panel_plugin_add_action_widget and hbox

Mark Trompell mark at foresightlinux.org
Thu Jul 14 13:04:33 CEST 2011

On Thu, Jul 14, 2011 at 10:16 AM, Jari Rahkonen
<jari.rahkonen at pp1.inet.fi> wrote:
> 14.07.2011 09:21, Mark Trompell kirjoitti:
>> Hi,
>> I rewrote my xfce4-indicator-plugin to use a hbox with buttons instead
>> of a menubar, to handle panel transparancy.
>> Now if I xfce_panel_plugin_add_action_widget(plugin, hbox) I don't get
>> the context menu. Probably because the hbox doesn't receive the
>> button_press event.
>> if I add each button instead of the hbox, I get the contextmenu, but
>> moving the plugin from that menu doesn't work, because the panel tries
>> to move the buttons instead of the plugin now.
>> Any hint how to handle that?
>> Tia
>> Mark
> 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.

> - Jari

Mark Trompell

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

More information about the Xfce4-dev mailing list