19c69ba4462ccd6c3c4304e5b2f9f4a02e6a1791
1 /**
2 * \brief Button and CheckButton widgets
3 *
4 * Author:
5 * buliabyak@gmail.com
6 *
7 * Copyright (C) 2005 author
8 *
9 * Released under GNU GPL. Read the file 'COPYING' for more information.
10 */
12 #ifdef HAVE_CONFIG_H
13 # include <config.h>
14 #endif
16 #include "button.h"
18 namespace Inkscape {
19 namespace UI {
20 namespace Widget {
22 Button::Button(Glib::ustring const &label, Glib::ustring const &tooltip)
23 : _tooltips()
24 {
25 set_use_underline (true);
26 set_label (label);
27 _tooltips.set_tip(*this, tooltip);
28 }
30 CheckButton::CheckButton(Glib::ustring const &label, Glib::ustring const &tooltip)
31 : _tooltips()
32 {
33 set_use_underline (true);
34 set_label (label);
35 _tooltips.set_tip(*this, tooltip);
36 }
38 } // namespace Widget
39 } // namespace UI
40 } // namespace Inkscape
42 /*
43 Local Variables:
44 mode:c++
45 c-file-style:"stroustrup"
46 c-file-offsets:((innamespace . 0)(inline-open . 0))
47 indent-tabs-mode:nil
48 fill-column:99
49 End:
50 */
51 // vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :