summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7eb632)
raw | patch | inline | side by side (parent: e7eb632)
author | kidproto <kidproto@users.sourceforge.net> | |
Mon, 23 Oct 2006 23:19:58 +0000 (23:19 +0000) | ||
committer | kidproto <kidproto@users.sourceforge.net> | |
Mon, 23 Oct 2006 23:19:58 +0000 (23:19 +0000) |
src/extension/prefdialog.cpp | patch | blob | history |
index 4265f9c475a1d0c5f681cfcd03200efdcc8c8136..db9d6b7d7345ce5322a93a3ebf4939419223cbb4 100644 (file)
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);