1 /*
2 * Authors:
3 * Ted Gould <ted@gould.cx>
4 *
5 * Copyright (C) 2005 Authors
6 *
7 * Released under GNU GPL, read the file 'COPYING' for more information
8 */
10 #include <gtkmm/stock.h>
11 #include <glibmm/i18n.h>
13 #include "../dialogs/dialog-events.h"
15 #include "prefdialog.h"
17 namespace Inkscape {
18 namespace Extension {
20 PrefDialog::PrefDialog (Glib::ustring name, Gtk::Widget * controls) :
21 Gtk::Dialog::Dialog(name + _(" Preferences"), true, true)
22 {
23 this->get_vbox()->pack_start(*controls, true, true, 5);
25 add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
27 Gtk::Button * ok = add_button(Gtk::Stock::OK, Gtk::RESPONSE_OK);
28 set_default_response(Gtk::RESPONSE_OK);
29 ok->grab_focus();
31 GtkWidget *dlg = GTK_WIDGET(gobj());
32 sp_transientize(dlg);
34 return;
35 }
37 }; }; /* namespace Inkscape, Extension */
39 /*
40 Local Variables:
41 mode:c++
42 c-file-style:"stroustrup"
43 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
44 indent-tabs-mode:nil
45 fill-column:99
46 End:
47 */
48 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :