1 /**
2 * \brief HandleBox Widget - Adds a detachment handle to another widget.
3 *
4 * This work really doesn't amount to much more than a convenience constructor
5 * for Gtk::HandleBox. Maybe this could be contributed back to Gtkmm, as
6 * Gtkmm provides several convenience constructors for other widgets as well.
7 *
8 * Author:
9 * Derek P. Moore <derekm@hackunix.org>
10 *
11 * Copyright (C) 2004 Derek P. Moore
12 *
13 * Released under GNU GPL. Read the file 'COPYING' for more information.
14 */
16 #ifdef HAVE_CONFIG_H
17 # include <config.h>
18 #endif
20 #include "handlebox.h"
22 namespace Inkscape {
23 namespace UI {
24 namespace Widget {
26 HandleBox::HandleBox(Gtk::Widget *widget,
27 Gtk::PositionType position)
28 : _widget(widget)
29 {
30 g_assert(_widget != NULL);
31 add(*Gtk::manage(_widget));
32 set_handle_position(position);
33 }
35 } // namespace Widget
36 } // namespace UI
37 } // namespace Inkscape
39 /*
40 Local Variables:
41 mode:c++
42 c-file-style:"stroustrup"
43 c-file-offsets:((innamespace . 0)(inline-open . 0))
44 indent-tabs-mode:nil
45 fill-column:99
46 End:
47 */
48 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :