From 386d7cacf96076aecad1ccafe168e57e7d9cdadd Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 29 Nov 2006 02:16:02 +0000 Subject: New widget helperclass for Gtk:Entry (bzr r2051) --- src/ui/widget/entry.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/ui/widget/entry.cpp (limited to 'src/ui/widget/entry.cpp') diff --git a/src/ui/widget/entry.cpp b/src/ui/widget/entry.cpp new file mode 100644 index 000000000..73a5edac1 --- /dev/null +++ b/src/ui/widget/entry.cpp @@ -0,0 +1,35 @@ +/** \file + * + * \brief Helperclass for Gtk::Entry widgets + * + * Authors: + * Johan Engelen + * + * Copyright (C) 2006 Authors + * + * Released under GNU GPL. Read the file 'COPYING' for more information + */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "entry.h" + +namespace Inkscape { +namespace UI { +namespace Widget { + +Entry::Entry(Glib::ustring const &label, Glib::ustring const &tooltip) + : _label(label, true), _entry(), _tooltips() +{ + pack_start(_label); + pack_start(_entry); + + _tooltips.set_tip(*this, tooltip); +} + +} // namespace Widget +} // namespace UI +} // namespace Inkscape + -- cgit v1.2.3