diff options
| author | Ted Gould <ted@gould.cx> | 2006-05-02 05:27:05 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-05-02 05:27:05 +0000 |
| commit | 50a42133ed2ad9753caf9891aac59a0c63de87b3 (patch) | |
| tree | 2ba7df63cbb5cfc6b155c2f78c3fdf36a70443f8 /src/extension/prefdialog.cpp | |
| parent | r11471@tres: ted | 2006-04-22 20:20:55 -0700 (diff) | |
| download | inkscape-50a42133ed2ad9753caf9891aac59a0c63de87b3.tar.gz inkscape-50a42133ed2ad9753caf9891aac59a0c63de87b3.zip | |
r11472@tres: ted | 2006-04-22 20:32:45 -0700
Making it so the title is internationalize properly. Allowing the
preferences string to move to either side of the name of the extension.
(bzr r680)
Diffstat (limited to 'src/extension/prefdialog.cpp')
| -rw-r--r-- | src/extension/prefdialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index f1bfc67f2..3058b939f 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -27,13 +27,19 @@ namespace Extension { them. It also places the passed in widgets into the dialog. */ PrefDialog::PrefDialog (Glib::ustring name, gchar const * help, Gtk::Widget * controls) : - Gtk::Dialog::Dialog(name + _(" Preferences"), true, true), _help(help), _name(name) + Gtk::Dialog::Dialog("Temp Title", true, true), _help(help), _name(name) { + /* A hack to internationalize the title properly */ + gchar * title = g_strdup_printf(_("%s Preferences"), name.c_str()); + this->set_title(title); + g_free(title); + Gtk::HBox * hbox = Gtk::manage(new Gtk::HBox()); hbox->pack_start(*controls, true, true, 6); hbox->show(); this->get_vbox()->pack_start(*hbox, true, true, 6); + /* Gtk::Button * help_button = add_button(Gtk::Stock::HELP, Gtk::RESPONSE_HELP); if (_help == NULL) |
