index 9228273d0ccbe8ee6ecb4a70c2203ec429cd84e2..31bec26a7760a7f0d19d1487155350e4bb7c0cbb 100644 (file)
* Constructor
*/
Messages::Messages()
- : Dialog ("dialogs.messages", SP_VERB_DIALOG_DEBUG)
+ : UI::Widget::Panel("", "dialogs.messages", SP_VERB_DIALOG_DEBUG)
{
- Gtk::VBox *mainVBox = get_vbox();
+ Gtk::Box *contents = _getContents();
//## Add a menu for clear()
menuBar.items().push_back( Gtk::Menu_Helpers::MenuElem(_("_File"), fileMenu) );
sigc::mem_fun(*this, &Messages::captureLogMessages) ) );
fileMenu.items().push_back( Gtk::Menu_Helpers::MenuElem(_("Release log messages"),
sigc::mem_fun(*this, &Messages::releaseLogMessages) ) );
- mainVBox->pack_start(menuBar, Gtk::PACK_SHRINK);
+ contents->pack_start(menuBar, Gtk::PACK_SHRINK);
//### Set up the text widget
messageText.set_editable(false);
textScroll.add(messageText);
textScroll.set_policy(Gtk::POLICY_ALWAYS, Gtk::POLICY_ALWAYS);
- mainVBox->pack_start(textScroll);
+ contents->pack_start(textScroll);
+ // sick of this thing shrinking too much
+ set_size_request(400, 300);
+
show_all_children();
message(_("Ready."));
}
-void dialogLoggingFunction(const gchar *log_domain,
- GLogLevelFlags log_level,
+void dialogLoggingFunction(const gchar */*log_domain*/,
+ GLogLevelFlags /*log_level*/,
const gchar *messageText,
gpointer user_data)
{