summaryrefslogtreecommitdiff
path: root/gtk2_ardour/new_session_dialog.cc
diff options
context:
space:
mode:
authorNick Mainsbridge <beatroute@iprimus.com.au>2008-01-08 16:16:22 +0000
committerNick Mainsbridge <beatroute@iprimus.com.au>2008-01-08 16:16:22 +0000
commit9789ff84f2322d588c0e33ec42bf021ae32ee4be (patch)
treeafa12c2be330909d77e122efedb3330670a93a68 /gtk2_ardour/new_session_dialog.cc
parenteb540eeaeeb463e5902cf872f54bb00e435f1292 (diff)
prettify and change button order for pending state dialog, use an icon for the NSD
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2844 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/new_session_dialog.cc')
-rw-r--r--gtk2_ardour/new_session_dialog.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc
index 0bdc52113f..8ea5cef9cc 100644
--- a/gtk2_ardour/new_session_dialog.cc
+++ b/gtk2_ardour/new_session_dialog.cc
@@ -38,6 +38,7 @@
using namespace Gtkmm2ext;
#include "opts.h"
+#include "utils.h"
NewSessionDialog::NewSessionDialog()
: ArdourDialog ("session control")
@@ -346,6 +347,30 @@ NewSessionDialog::NewSessionDialog()
get_vbox()->set_spacing(0);
get_vbox()->pack_start(*m_notebook, Gtk::PACK_SHRINK, 0);
+ /*
+ icon setting is done again in the editor (for the whole app),
+ but its all chickens and eggs at this point.
+ */
+
+ list<Glib::RefPtr<Gdk::Pixbuf> > window_icons;
+ Glib::RefPtr<Gdk::Pixbuf> icon;
+
+ if ((icon = ::get_icon ("ardour_icon_16px")) != 0) {
+ window_icons.push_back (icon);
+ }
+ if ((icon = ::get_icon ("ardour_icon_22px")) != 0) {
+ window_icons.push_back (icon);
+ }
+ if ((icon = ::get_icon ("ardour_icon_32px")) != 0) {
+ window_icons.push_back (icon);
+ }
+ if ((icon = ::get_icon ("ardour_icon_48px")) != 0) {
+ window_icons.push_back (icon);
+ }
+ if (!window_icons.empty()) {
+ set_icon_list (window_icons);
+ }
+
WindowTitle title(Glib::get_application_name());
title += _("Session Control");
set_title(title.get_string());