summaryrefslogtreecommitdiffstats
path: root/src/extension/prefdialog.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2006-03-29 05:38:37 +0000
committergouldtj <gouldtj@users.sourceforge.net>2006-03-29 05:38:37 +0000
commit6823dea398d034bce1a5ad849b08a2fe77737a3a (patch)
tree50fc794019b7215bf2b9edce7e53317e55cb4548 /src/extension/prefdialog.cpp
parentr10920@tres: ted | 2006-02-13 09:38:31 -0800 (diff)
downloadinkscape-6823dea398d034bce1a5ad849b08a2fe77737a3a.tar.gz
inkscape-6823dea398d034bce1a5ad849b08a2fe77737a3a.zip
r10921@tres: ted | 2006-02-13 09:40:25 -0800
Adding in support for a <help> tag in the base extension part of the INX file. Currently that just gets passed to the prefdialog, but it will be used in a little while. (bzr r334)
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);