| 212 | } |
| 213 | |
| 214 | WayfireShellApp::WayfireShellApp(int argc, char **argv) |
| 215 | { |
| 216 | app = Gtk::Application::create(argc, argv, "", |
| 217 | Gio::APPLICATION_HANDLES_COMMAND_LINE); |
| 218 | app->signal_activate().connect_notify( |
| 219 | sigc::mem_fun(this, &WayfireShellApp::on_activate)); |
| 220 | app->add_main_option_entry( |
| 221 | sigc::mem_fun(this, &WayfireShellApp::parse_cfgfile), |
| 222 | "config", 'c', "config file to use", "file"); |
| 223 | app->add_main_option_entry( |
| 224 | sigc::mem_fun(this, &WayfireShellApp::parse_cssfile), |
| 225 | "css", 's', "css style directory to use", "directory"); |
| 226 | |
| 227 | // Activate app after parsing command line |
| 228 | app->signal_command_line().connect_notify([=] (auto&) |
| 229 | { |
| 230 | app->activate(); |
| 231 | }); |
| 232 | } |
| 233 | |
| 234 | WayfireShellApp::~WayfireShellApp() |
| 235 | {} |
nothing calls this directly
no outgoing calls
no test coverage detected