summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c0df2c)
raw | patch | inline | side by side (parent: 4c0df2c)
author | gouldtj <gouldtj@users.sourceforge.net> | |
Tue, 2 May 2006 05:27:05 +0000 (05:27 +0000) | ||
committer | gouldtj <gouldtj@users.sourceforge.net> | |
Tue, 2 May 2006 05:27:05 +0000 (05:27 +0000) |
Making it so the title is internationalize properly. Allowing the
preferences string to move to either side of the name of the extension.
preferences string to move to either side of the name of the extension.
src/extension/prefdialog.cpp | patch | blob | history |
index f1bfc67f2859b26fe671f5d9e91b55e28bd95cfb..3058b939f5df0e66a347a4c09dc83d2e87709641 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(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)