@@ -328,9 +328,9 @@ namespace lsp
328328 ui::Module::destroy ();
329329 }
330330
331- status_t sampler_ui::init (ui::IWrapper *wrapper, tk::Display *dpy )
331+ status_t sampler_ui::init (ui::IWrapper *wrapper)
332332 {
333- status_t res = ui::Module::init (wrapper, dpy );
333+ status_t res = ui::Module::init (wrapper);
334334 if (res != STATUS_OK)
335335 return res;
336336
@@ -410,23 +410,23 @@ namespace lsp
410410 if (menu != NULL )
411411 {
412412 // Hydrogen drumkit import
413- tk::MenuItem *child = new tk::MenuItem (pDisplay );
413+ tk::MenuItem *child = new tk::MenuItem (display () );
414414 widgets->add (child);
415415 child->init ();
416416 child->text ()->set (" actions.import_sfz_file" );
417417 child->slots ()->bind (tk::SLOT_SUBMIT, slot_start_import_sfz_file, this );
418418 menu->add (child);
419419
420420 // SFZ import
421- child = new tk::MenuItem (pDisplay );
421+ child = new tk::MenuItem (display () );
422422 widgets->add (child);
423423 child->init ();
424424 child->text ()->set (" actions.import_hydrogen_drumkit_file" );
425425 child->slots ()->bind (tk::SLOT_SUBMIT, slot_start_import_hydrogen_file, this );
426426 menu->add (child);
427427
428428 // Bundle import
429- child = new tk::MenuItem (pDisplay );
429+ child = new tk::MenuItem (display () );
430430 widgets->add (child);
431431 child->init ();
432432 child->text ()->set (" actions.sampler.import_bundle" );
@@ -441,7 +441,7 @@ namespace lsp
441441 menu = tk::widget_cast<tk::Menu>(widgets->find (WUID_EXPORT_MENU));
442442 if (menu != NULL )
443443 {
444- tk::MenuItem *child = new tk::MenuItem (pDisplay );
444+ tk::MenuItem *child = new tk::MenuItem (display () );
445445 widgets->add (child);
446446 child->init ();
447447 child->text ()->set (" actions.sampler.export_bundle" );
@@ -579,14 +579,14 @@ namespace lsp
579579 return ;
580580
581581 // Create menu item
582- tk::MenuItem *child = new tk::MenuItem (pDisplay );
582+ tk::MenuItem *child = new tk::MenuItem (display () );
583583 vHydrogenMenus.add (child);
584584 child->init ();
585585 child->text ()->set (" actions.import_installed_hydrogen_drumkit" );
586586 menu->add (child);
587587
588588 // Create submenu
589- menu = new tk::Menu (pDisplay );
589+ menu = new tk::Menu (display () );
590590 vHydrogenMenus.add (menu);
591591 menu->init ();
592592 child->menu ()->set (menu);
@@ -598,7 +598,7 @@ namespace lsp
598598 {
599599 h2drumkit_t *h2 = vDrumkits.uget (i);
600600
601- child = new tk::MenuItem (pDisplay );
601+ child = new tk::MenuItem (display () );
602602 vHydrogenMenus.add (child);
603603 child->init ();
604604 child->text ()->set (
@@ -914,7 +914,7 @@ namespace lsp
914914 tk::FileDialog *dlg = _this->wHydrogenImport ;
915915 if (dlg == NULL )
916916 {
917- dlg = new tk::FileDialog (_this->pDisplay );
917+ dlg = new tk::FileDialog (_this->display () );
918918 _this->pWrapper ->controller ()->widgets ()->add (dlg);
919919 _this->wHydrogenImport = dlg;
920920
@@ -1466,7 +1466,7 @@ namespace lsp
14661466 tk::FileDialog *dlg = wBundleDialog;
14671467 if (dlg == NULL )
14681468 {
1469- dlg = new tk::FileDialog (pDisplay );
1469+ dlg = new tk::FileDialog (display () );
14701470 wBundleDialog = dlg;
14711471 pWrapper->controller ()->widgets ()->add (dlg);
14721472
@@ -1555,7 +1555,7 @@ namespace lsp
15551555 tk::MessageBox *dlg = wMessageBox;
15561556 if (dlg == NULL )
15571557 {
1558- dlg = new tk::MessageBox (pDisplay );
1558+ dlg = new tk::MessageBox (display () );
15591559 wMessageBox = dlg;
15601560 pWrapper->controller ()->widgets ()->add (dlg);
15611561
@@ -1632,7 +1632,7 @@ namespace lsp
16321632 LSPString status_key;
16331633 status_key.append_ascii (" statuses.std." );
16341634 status_key.append_ascii (lsp::get_status_lc_key (res));
1635- str.bind (_this->wBundleDialog ->style (), _this->pDisplay ->dictionary ());
1635+ str.bind (_this->wBundleDialog ->style (), _this->display () ->dictionary ());
16361636 str.set (&status_key);
16371637
16381638 params.set_string (" reason" , str.formatted ());
@@ -1762,7 +1762,7 @@ namespace lsp
17621762 tk::FileDialog *dlg = _this->wSfzImport ;
17631763 if (dlg == NULL )
17641764 {
1765- dlg = new tk::FileDialog (_this->pDisplay );
1765+ dlg = new tk::FileDialog (_this->display () );
17661766 _this->pWrapper ->controller ()->widgets ()->add (dlg);
17671767 _this->wSfzImport = dlg;
17681768
0 commit comments