summaryrefslogtreecommitdiffstats
path: root/src/extension/prefdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/prefdialog.cpp')
-rw-r--r--src/extension/prefdialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp
index 40eb037b6..86f1a50be 100644
--- a/src/extension/prefdialog.cpp
+++ b/src/extension/prefdialog.cpp
@@ -2,7 +2,7 @@
* Authors:
* Ted Gould <ted@gould.cx>
*
- * Copyright (C) 2005 Authors
+ * Copyright (C) 2005-2006 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -17,11 +17,13 @@
namespace Inkscape {
namespace Extension {
-PrefDialog::PrefDialog (Glib::ustring name, Gtk::Widget * controls) :
- Gtk::Dialog::Dialog(name + _(" Preferences"), true, true)
+PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * controls) :
+ Gtk::Dialog::Dialog(name + _(" Preferences"), true, true), _help(help), _name(name)
{
this->get_vbox()->pack_start(*controls, true, true, 5);
+ if (_help != NULL)
+ add_button(Gtk::Stock::HELP, Gtk::RESPONSE_HELP);
add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
Gtk::Button * ok = add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);