xfce_panel_plugin_add_action_widget and hbox

Jari Rahkonen jari.rahkonen at pp1.inet.fi
Thu Jul 14 10:16:54 CEST 2011


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.

- Jari



More information about the Xfce4-dev mailing list