[Top][All Lists]

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

Re: [Denemo-devel] UI modifications

From: Richard Shann
Subject: Re: [Denemo-devel] UI modifications
Date: Fri, 13 Jun 2008 21:43:45 +0100

On Fri, 2008-06-13 at 21:48 +0200, Jean-René Reinhard wrote:
> I am under the impression that the Gtk UI Manager has limitations regarding 
> what
> we would like to implement :
> - on keybindings : limitations on valid accels
But, I think we can now stop using accels, we only wanted them for two
1) Shortcut key shows on menu item
2) Quick setting

and even (1) is limited with accels since only one shortcut is shown.
You have solved (2) with your keysnooper, and I have solved (1) with my
code that goes through the proxy widgets re-writing the labels whenever
the shortcuts are changed on an action.
So I think we get the sweet result that we are able to get all
keypresses going thru the one route to the action callback, namely the
scorearea_keypress() routine you have just re-coded.

> - on actions : we would like to be able to define actions with parameters
You can do this already (see myactivate() in lilydirectives.c), what you
do is to attach the properties to the action using the general
g_object_set_data() function, which can be used on any gobject. I've
recently started pulling this stunt all over my code - it is a fantastic
way of customizing objects - see the lilypond textbuffer code in
exportlilypond.c for examples. (There's a popup menu there that passes
data by this means).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]