Verve-plugin and hidden panels
jasper at xfce.org
Fri Aug 4 23:09:44 CEST 2006
Jasper Huijsmans wrote:
> Jannis Pohlmann schreef:
>> On Tue, 25 Jul 2006 21:41:40 +0200, Nikolas Arend wrote:
>>> another verve-plugin thing... I tried to run it in an auto-hidden
>>> panel. When calling verve-focus, the plugin receives focus and all,
>>> but the panel doesn't unhide. I don't know if that's intentional, but
>>> IMHO it'd be good to unhide the respective panel, letting the user
>>> see what he types and launches ;-) If that's possible, of course...
>> AFAIK, there's no function for this, which the plugin could use to
>> unhide the panel, is there, Jasper?
>> If not, this might be something
>> useful to add.
> Sounds like it could be useful. I might have a look at it when time
> allows and the weather doesn't turn me into a sweating zombie...
>> Or perhaps (dunno if this is possible) just connect to
>> all action widgets and their "focus-in-event" in order to unhide it
> This still would need communication between (external) plugins and the
> panel, so it might just as well be an explicit action.
Jannis, how about the patch below. You can also re-hide, but I didn't
know where to put that.
--- panel-plugin/verve-plugin.c (revision 1847)
+++ panel-plugin/verve-plugin.c (working copy)
@@ -235,6 +235,8 @@
if (toplevel && toplevel->window)
+ /* Unhide panel */
+ xfce_panel_plugin_set_panel_hidden (verve->plugin, FALSE);
/* Focus the command entry */
xfce_panel_plugin_focus_widget (verve->plugin, verve->input);
More information about the Xfce4-dev