MCPcopy Create free account
hub / github.com/WayfireWM/wf-shell / WayfireShellApp

Method WayfireShellApp

src/util/wf-shell-app.cpp:214–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214WayfireShellApp::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
234WayfireShellApp::~WayfireShellApp()
235{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected