summaryrefslogtreecommitdiffstats
path: root/src/ui/widget/entry.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2006-11-29 02:16:02 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2006-11-29 02:16:02 +0000
commit386d7cacf96076aecad1ccafe168e57e7d9cdadd (patch)
treebd5d031524b3ead9f37c52349a4913972864cd42 /src/ui/widget/entry.cpp
parentmake the architecture settable (diff)
downloadinkscape-386d7cacf96076aecad1ccafe168e57e7d9cdadd.tar.gz
inkscape-386d7cacf96076aecad1ccafe168e57e7d9cdadd.zip
New widget helperclass for Gtk:Entry
(bzr r2051)
Diffstat (limited to 'src/ui/widget/entry.cpp')
-rw-r--r--src/ui/widget/entry.cpp35
1 files changed, 35 insertions, 0 deletions
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 <goejendaagh@zonnet.nl>
+ *
+ * Copyright (C) 2006 Authors
+ *
+ * Released under GNU GPL. Read the file 'COPYING' for more information
+ */
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#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
+