~vaifrax/inkscape/bugfix170049

« back to all changes in this revision

Viewing changes to src/ui/widget/button.cpp

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
11
 
 
12
#ifdef HAVE_CONFIG_H
 
13
# include <config.h>
 
14
#endif
 
15
 
 
16
#include "button.h"
 
17
 
 
18
namespace Inkscape {
 
19
namespace UI {
 
20
namespace Widget {
 
21
 
 
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
}
 
29
 
 
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
}
 
37
 
 
38
} // namespace Widget
 
39
} // namespace UI
 
40
} // namespace Inkscape
 
41
 
 
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 :