External panel plugin focus problems

Jasper Huijsmans jasper at xfce.org
Sun Feb 12 15:53:19 CET 2006

Jasper Huijsmans schreef:
> Jannis Pohlmann schreef:
>> Hey Jasper,
>> as already mentioned on the goodies mailinglist, I wrote Verve as an
>> internal plugin because I had problems with gaining the focus for the
>> input field (GtkEntry) with the external interface. After applying your
>> patch for using the external one, I get the same problems again.
>> Please compare xfce4-minicmd-plugin (which is an internal plugin and
>> uses the same Gtk hierarchy, GtkEntry inside of GtkEventBox) and
>> Verve. Both also use the same mechanism to grab the focus, see gboolean
>> verve_plugin_buttonpress_cb (...) in panel-plugin/verve-plugin.c (line
>> 78).
>> Can you explain, why it is possible to grab the focus when clicking on
>> the minicmd entry and why it isn't possible when using the external
>> plugin interface?
> Yeah, I just realized what the problem is (strangely enough it does seem 
> to work for me): the minicmd plugin is an internal plugin, which means 
> that gtk_widget_get_toplevel() returns the panel window, but for an 
> external plugin it will return the plug window.
> I probably need to add something to the plugin library.

Ok I added xfce_panel_plugin_focus_widget () to the plugin library.

Could you try the attached patch? It needs the latests panel sources, 


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: verve-focus.patch
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20060212/eb6201e4/attachment.ksh>

More information about the Xfce4-dev mailing list