Use Gtk::Notebook::append_page rather than deprecated API

This commit is contained in:
Tim Mayberry 2015-02-28 12:00:48 +10:00
parent 7e1be05445
commit e68ded449f
4 changed files with 10 additions and 11 deletions

View file

@ -244,9 +244,9 @@ EngineControl::EngineControl ()
/* pack it all up */
notebook.pages().push_back (TabElem (basic_vbox, _("Audio")));
notebook.pages().push_back (TabElem (lm_vbox, _("Latency")));
notebook.pages().push_back (TabElem (midi_vbox, _("MIDI")));
notebook.append_page (basic_vbox, _("Audio"));
notebook.append_page (lm_vbox, _("Latency"));
notebook.append_page (midi_vbox, _("MIDI"));
notebook.set_border_width (12);
notebook.set_show_tabs (false);

View file

@ -835,7 +835,7 @@ ExportReport::init (const AnalysisResults & ar, bool with_file)
l->show();
tab->show();
img->hide();
pages.pages ().push_back (Notebook_Helpers::TabElem (*vb, *tab));
pages.append_page (*vb, *tab);
pages.signal_switch_page().connect (sigc::mem_fun (*this, &ExportReport::on_switch_page));
if (png_surface) {

View file

@ -67,7 +67,7 @@ LuaScriptManager::LuaScriptManager ()
vbox->pack_end (*edit_box, false, false);
vbox->show_all ();
pages.pages ().push_back (Notebook_Helpers::TabElem (*vbox, "Action Scripts"));
pages.append_page (*vbox, "Action Scripts");
/* action hooks page */
@ -96,8 +96,7 @@ LuaScriptManager::LuaScriptManager ()
vbox->pack_end (*edit_box, false, false);
vbox->show_all ();
pages.pages ().push_back (Notebook_Helpers::TabElem (*vbox, "Action Hooks"));
pages.append_page (*vbox, "Action Hooks");
add (pages);
pages.show();

View file

@ -100,10 +100,10 @@ RouteParams_UI::RouteParams_UI ()
list_vpacker.pack_start (route_select_frame, true, true);
notebook.pages().push_back (TabElem (input_frame, _("Inputs")));
notebook.pages().push_back (TabElem (output_frame, _("Outputs")));
notebook.pages().push_back (TabElem (redir_hpane, _("Plugins, Inserts & Sends")));
notebook.pages().push_back (TabElem (latency_frame, _("Latency")));
notebook.append_page (input_frame, _("Inputs"));
notebook.append_page (output_frame, _("Outputs"));
notebook.append_page (redir_hpane, _("Plugins, Inserts & Sends"));
notebook.append_page (latency_frame, _("Latency"));
notebook.set_name ("InspectorNotebook");