diff options
| author | Jon Phillips <jon@fabricatorz.com> | 2006-10-23 23:19:58 +0000 |
|---|---|---|
| committer | kidproto <kidproto@users.sourceforge.net> | 2006-10-23 23:19:58 +0000 |
| commit | 03c0893e7d1ac04d32abc0175fac6c56ecbf91b2 (patch) | |
| tree | fa526d83de6b370749478efa87514133d8a31d64 /src/extension/prefdialog.cpp | |
| parent | Committed double code because of the hurry to let you use the axonom-snapping... (diff) | |
| download | inkscape-03c0893e7d1ac04d32abc0175fac6c56ecbf91b2.tar.gz inkscape-03c0893e7d1ac04d32abc0175fac6c56ecbf91b2.zip | |
Added fix from Andre Twupack for prefdialog.cpp's needed gettext support for titles...a small one
(bzr r1849)
Diffstat (limited to 'src/extension/prefdialog.cpp')
| -rw-r--r-- | src/extension/prefdialog.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/extension/prefdialog.cpp b/src/extension/prefdialog.cpp index 4265f9c47..db9d6b7d7 100644 --- a/src/extension/prefdialog.cpp +++ b/src/extension/prefdialog.cpp @@ -27,12 +27,13 @@ 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("Temp Title", true, true), _help(help), _name(name) + Gtk::Dialog::Dialog(_(name.c_str()), true, true), _help(help), _name(name) { - /* A hack to internationalize the title properly */ - gchar * title = g_strdup_printf("%s", name.c_str()); - this->set_title(title); - g_free(title); + // I'm leaving the following in here as I'm perhaps missing something + /* A hack to internationalize the title properly */ + //gchar * title = g_strdup_printf("%s", 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); |
