diff options
author | Pierre Zurek <pierrezurek@gmail.com> | 2014-02-25 17:36:51 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-03-07 16:04:32 +0200 |
commit | dc4bdf091f5fbd4540436d721094a782ed836b85 (patch) | |
tree | 6e2c2d312f3b8004f673d3b66525f7663adbdac2 /src/pavucontrol.cc | |
parent | 35e844d2b2cf35f5a4cb29b1e32f4f1fa95dda7b (diff) |
Add a --maximize command line option
Diffstat (limited to 'src/pavucontrol.cc')
-rw-r--r-- | src/pavucontrol.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc index 72ec980..c1019b6 100644 --- a/src/pavucontrol.cc +++ b/src/pavucontrol.cc @@ -664,6 +664,13 @@ int main(int argc, char *argv[]) { entry2.set_description(_("Retry forever if pa quits (every 5 seconds).")); group.add_entry(entry2, retry); + bool maximize = false; + Glib::OptionEntry entry3; + entry3.set_long_name("maximize"); + entry3.set_short_name('m'); + entry3.set_description(_("Maximize the window.")); + group.add_entry(entry3, maximize); + options.set_main_group(group); try { @@ -671,7 +678,7 @@ int main(int argc, char *argv[]) { ca_context_set_driver(ca_gtk_context_get(), "pulse"); - MainWindow* mainWindow = MainWindow::create(); + MainWindow* mainWindow = MainWindow::create(maximize); pa_glib_mainloop *m = pa_glib_mainloop_new(g_main_context_default()); g_assert(m); |