summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2006-04-20 11:41:45 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2006-04-20 11:41:45 +0000
commitd7e728476a18bc024ae18705aa9d32ea21a1c4af (patch)
tree54f075f9fc3ee25b04014f683ea48e503b6d643d /libs
parent8ca561f8d322d237d7aaa74ebf82f6892064da94 (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')
-rw-r--r--libs/gtkmm2ext/choice.cc9
-rw-r--r--libs/gtkmm2ext/gtkmm2ext/choice.h3
2 files changed, 10 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);
diff --git a/libs/gtkmm2ext/gtkmm2ext/choice.h b/libs/gtkmm2ext/gtkmm2ext/choice.h
index 0fa466fbcc..19984fb294 100644
--- a/libs/gtkmm2ext/gtkmm2ext/choice.h
+++ b/libs/gtkmm2ext/gtkmm2ext/choice.h
@@ -2,6 +2,9 @@
#define __pbd_gtkmm_choice_h__
#include <gtkmm/dialog.h>
+#include <gtkmm/image.h>
+#include <gtkmm/stock.h>
+#include <gtkmm/box.h>
#include <string>
#include <vector>