External panel plugin focus problems

Jasper Huijsmans jasper at xfce.org
Sun Feb 12 14:41:40 CET 2006


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.

	Jasper




More information about the Xfce4-dev mailing list