
On Tue, 2005-01-04 at 23:27 -0400, bulia byak wrote:
Excellent. Which window manager is this? Does it also work in other WMs?
I use Metacity, but I imagine it works with all window managers.
As a matter of fact, all the hard work is done by GTK+'s HandleBox widget, which is inherited by our Toolbox compound widget. So if it doesn't function properly, there's an issue with GTK+.
You can see the code for the widget here: http://cvs.sourceforge.net/viewcvs.py/inkscape/experimental/bryce/inkscape_g...
All the logic in that file really only implements the functionality for the Toolbox's popup context menu (orientation change, style changes, show arrow, etc.). Everything else is handled by HandleBox.
And Toolboxes are used as simply as:
Toolbox *bar = new Toolbox(static_castGtk::Toolbar*(_ui_mgr-
get_widget("/CommandsBar")));
some_box.pack_start(*Gtk::manage(bar));
Where the contents of "CommandsBar" is defined by the following XML description: http://cvs.sourceforge.net/viewcvs.py/inkscape/experimental/bryce/inkscape_g...
And the actions for the embedded toolbar are defined in the ApplicationImpl object (see application.cpp).