static --------------------------------- SettingsDialog::create Create a settings dialog from the generated source in prefs.ui
| 32 | // Create a settings dialog from the generated source in prefs.ui |
| 33 | // |
| 34 | SettingsDialog* SettingsDialog::create(Gtk::Window& parent) |
| 35 | { |
| 36 | // Load the Builder file and instantiate its widgets. |
| 37 | Glib::RefPtr<Gtk::Builder> refBuilder = Gtk::Builder::create_from_resource("/com/leah-lindner/editor/ui/prefs.ui"); |
| 38 | |
| 39 | SettingsDialog* dialog = nullptr; |
| 40 | refBuilder->get_widget_derived("prefs_dialog", dialog); |
| 41 | if (!dialog) |
| 42 | { |
| 43 | throw std::runtime_error("No 'prefs_dialog' object in prefs.ui"); |
| 44 | } |
| 45 | |
| 46 | return dialog; |
| 47 | } |
| 48 | |
| 49 | |
| 50 | } // namespace edit |
nothing calls this directly
no outgoing calls
no test coverage detected