X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fgtkmm2ext%2Fchoice.cc;h=5dde9426e73c5cbc04c67e5c9963ffd5e228549b;hb=3d0366d46b6c237e61c548a033b960ccc9daa7f6;hp=7f5f869adaf3c8485047a4137f831c3b26d72913;hpb=2ce07f34e2aa36eed04753a4a24248e96134dd0b;p=ardour.git diff --git a/libs/gtkmm2ext/choice.cc b/libs/gtkmm2ext/choice.cc index 7f5f869ada..5dde9426e7 100644 --- a/libs/gtkmm2ext/choice.cc +++ b/libs/gtkmm2ext/choice.cc @@ -1,6 +1,6 @@ /* Copyright (C) 1998-99 Paul Barton-Davis - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or @@ -26,11 +26,12 @@ using namespace Gtkmm2ext; using namespace sigc; using namespace Gtk; -Choice::Choice (string prompt, vector choices, bool center) +Choice::Choice (string title, string prompt, vector choices, bool center) + : Dialog (title) { int n; vector::iterator i; - + if (center) { set_position (Gtk::WIN_POS_CENTER); } else { @@ -48,7 +49,7 @@ Choice::Choice (string prompt, vector choices, bool center) get_vbox()->set_border_width (12); get_vbox()->pack_start (*dhbox, true, false); - + set_has_separator (false); set_resizable (false); show_all_children ();