diff options
author | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-04-20 11:41:45 +0000 |
---|---|---|
committer | Nick Mainsbridge <beatroute@iprimus.com.au> | 2006-04-20 11:41:45 +0000 |
commit | d7e728476a18bc024ae18705aa9d32ea21a1c4af (patch) | |
tree | 54f075f9fc3ee25b04014f683ea48e503b6d643d /libs/gtkmm2ext/choice.cc | |
parent | 8ca561f8d322d237d7aaa74ebf82f6892064da94 (diff) |
Add a stock question image to the choices dialog, other general dialog love.. Forgot to mention that in the last commit the default snapshot name has been modified for slightly better alphabetical sorting goodness (year is now first, weekday last).
git-svn-id: svn://localhost/trunk/ardour2@459 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/gtkmm2ext/choice.cc')
-rw-r--r-- | libs/gtkmm2ext/choice.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/choice.cc b/libs/gtkmm2ext/choice.cc index d00d75d38b..b1bd2d8dff 100644 --- a/libs/gtkmm2ext/choice.cc +++ b/libs/gtkmm2ext/choice.cc @@ -39,13 +39,18 @@ Choice::Choice (string prompt, vector<string> choices, bool center) set_name ("ChoiceWindow"); + HBox* dhbox = manage (new HBox()); + Image* dimage = manage (new Gtk::Image(Stock::DIALOG_QUESTION, Gtk::ICON_SIZE_DIALOG)); Label* label = manage (new Label (prompt)); - label->show (); + + dhbox->pack_start (*dimage, true, false, 10); + dhbox->pack_start (*label, true, false, 10); get_vbox()->set_border_width (12); - get_vbox()->pack_start (*label); + get_vbox()->pack_start (*dhbox, true, false); set_has_separator (false); + show_all_children (); for (n = 0, i = choices.begin(); i != choices.end(); ++i, ++n) { add_button (*i, n); |