Re: [anjuta-devel] Dock visibility and keyboard shortcuts of popup menu actions



Hi Arnel,


Le 19/05/2013 03:56, Arnel A. Borja a écrit :
I tried using the gtk_widget_is_visible but it only checks if the
widget is marked as visible.

And why isn't it enough?


GdlDockItem has closed, iconified and lock properties, but I can't
> find a function where I could get the GdlDockObject from Anjuta.

I think you can get it by "dock-item" data but it's probably better to add a function in anjuta-dock.c if it's needed.


I need this so that the DevHelp plugin will open a new tab if the
API dock is not visible and a link was clicked on the sidebar (API
Browser dock).

There is a function anjuta_dock_present_pane that will make sure that the pane is visible. Isn't it possible to use it?


Anyway, I have planned to spend more time on GDL. Could you explain me what is needed in more details and I will try to implement. I still need a few time to read again GDL code and understand how it's working.


2. How should I add keyboard shortcuts to popup menu actions and
widgets on docks?

I think you need to set the shortcut on the GtkAction, but I haven't take care of this. There are a few bug reports related to shortcut (by example https://bugzilla.gnome.org/show_bug.cgi?id=678275), so it's quite possible that there are some issues here.


Regards,

Sébastien


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]