I've committed a first try of a secondary toolbar for selector, with X Y W H fields. This obsoletes the "size & position" dialog which can be removed. It's still rough but usable. There are some issues I would like to ask for help with:
- I reduced the font size of the labels and spinbuttons, but could not do that for the units menu. It looks like menus font sizes are not settable. Any insights from gtk experts? Because of the too-large units menu, the aux toolbar jumps up and down a bit when you switch tools.
- How to change the right-click menu of the spinbutton? If nothing else I'd like to remove its input methods and unicode submenus - they are unnecessary and very confusing for an average user. Perhaps it would make sense to move the units menu into each spinbutton's right-click menu, instead of having it as a separate menu - what do you think?
- I want Esc inside the spinbutton to defocus it. Now Enter applies the value and defocuses, but this is only because it's hard-coded into the spinbutton to "activate" it and I added defocusing to the value-changed callback. However I don't see how I can change the keybindings within a spinbutton to enable Esc to do what I want. Is this possible at all?
_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2f...
On Mon, 2004-01-05 at 01:05, bulia byak wrote:
- I reduced the font size of the labels and spinbuttons, but could not do
that for the units menu. It looks like menus font sizes are not settable. Any insights from gtk experts? Because of the too-large units menu, the aux toolbar jumps up and down a bit when you switch tools.
You need to set the font size for each menuitem. The OptionMenu just sizes to fit its menuitems.
- How to change the right-click menu of the spinbutton? If nothing else I'd
like to remove its input methods and unicode submenus - they are unnecessary and very confusing for an average user. Perhaps it would make sense to move the units menu into each spinbutton's right-click menu, instead of having it as a separate menu - what do you think?
Mmm, I think the units menu works best as an optionmenu.
As for changing the context menus for spinbuttons, at worst I guess you can add signal handlers for the "button-press-event" and "button-release-event" signals and trap right clicks that way.
I still have mixed feelings about removing the standard context menus, though :/
- I want Esc inside the spinbutton to defocus it. Now Enter applies the
value and defocuses, but this is only because it's hard-coded into the spinbutton to "activate" it and I added defocusing to the value-changed callback. However I don't see how I can change the keybindings within a spinbutton to enable Esc to do what I want. Is this possible at all?
Yes; connect to the widget's "key-press-event" and "key-release-event" signals to trap keypresses.
-mental
On Mon, 2004-01-05 at 01:05, bulia byak wrote:
I've committed a first try of a secondary toolbar for selector, with X Y W H fields. This obsoletes the "size & position" dialog which can be removed. It's still rough but usable.
btw, one problem with requesting 0 width for the select toolbar -- it shrinks to 0 width when detached.
-mental
participants (2)
-
bulia byak
-
MenTaLguY