index c4a95f01406e05ad3daebfe2841208d8498c2772..5ad08f01f9dd9a3726f667809fe6e8151aebd0e8 100644 (file)
namespace Dialog {
TextProperties::TextProperties()
- : Dialog ("dialogs.textandfont", SP_VERB_DIALOG_TEXT),
+ : UI::Widget::Panel("", "dialogs.textandfont", SP_VERB_DIALOG_TEXT),
_page_font(1, 1),
_page_text(1, 1)
{
- // Top level vbox
- Gtk::VBox *vbox = get_vbox();
- vbox->set_spacing(4);
+ Gtk::Box *contents = _getContents();
+
+ contents->set_spacing(4);
// Notebook for individual transformations
- vbox->pack_start(_notebook, true, true);
+ contents->pack_start(_notebook, true, true);
// TODO: Insert widgets
_notebook.append_page(_page_font, _("Font"));
_notebook.append_page(_page_text, _("Text"));
+ set_size_request(450, 300);
+
show_all_children();
}