diff options
| author | Ted Gould <ted@gould.cx> | 2006-03-29 05:39:11 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-03-29 05:39:11 +0000 |
| commit | 34fe2dbdeaa0af57f8dc0945e52969b83883ffc5 (patch) | |
| tree | e2048340e6b37c09e16fff2f4cecba1e5afc12a3 /src/extension/helpdialog.cpp | |
| parent | r10922@tres: ted | 2006-02-13 09:41:52 -0800 (diff) | |
| download | inkscape-34fe2dbdeaa0af57f8dc0945e52969b83883ffc5.tar.gz inkscape-34fe2dbdeaa0af57f8dc0945e52969b83883ffc5.zip | |
r10923@tres: ted | 2006-02-13 09:47:15 -0800
Adding in the help dialog basics.
(bzr r336)
Diffstat (limited to 'src/extension/helpdialog.cpp')
| -rw-r--r-- | src/extension/helpdialog.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/extension/helpdialog.cpp b/src/extension/helpdialog.cpp new file mode 100644 index 000000000..d53a3f058 --- /dev/null +++ b/src/extension/helpdialog.cpp @@ -0,0 +1,44 @@ +/* + * Authors: + * Ted Gould <ted@gould.cx> + * + * Copyright (C) 2006 Authors + * + * Released under GNU GPL, read the file 'COPYING' for more information + */ + +#include <gtkmm/stock.h> +#include <glibmm/i18n.h> + +#include "../dialogs/dialog-events.h" + +#include "prefdialog.h" + +namespace Inkscape { +namespace Extension { + +HelpDialog::HelpDialog (Glib::ustring name, gchar const * help) : + Gtk::Dialog::Dialog(_("Help with ") + name, true, true) +{ + Gtk::Button * ok = add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK); + set_default_response(Gtk::RESPONSE_OK); + ok->grab_focus(); + + GtkWidget *dlg = GTK_WIDGET(gobj()); + sp_transientize(dlg); + + return; +} + +}; }; /* namespace Inkscape, Extension */ + +/* + Local Variables: + mode:c++ + c-file-style:"stroustrup" + c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) + indent-tabs-mode:nil + fill-column:99 + End: +*/ +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 : |
