diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-08 00:31:04 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-08 00:31:04 +0000 |
commit | 4a171a898f68869391b326201dfc1c293c066e25 (patch) | |
tree | 9bfb353e04c536a00de88700e2782960d703825e /gtk2_ardour/startup.cc | |
parent | db431014402a5323541d9f1f551f17c2d24cd389 (diff) |
Patch from acolomb to set window icons for the startup window (#4456).
git-svn-id: svn://localhost/ardour2/branches/3.0@10486 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/startup.cc')
-rw-r--r-- | gtk2_ardour/startup.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc index 1cf32824ed..37e62ca04f 100644 --- a/gtk2_ardour/startup.cc +++ b/gtk2_ardour/startup.cc @@ -102,6 +102,25 @@ Ardour will play NO role in monitoring")) throw failed_constructor(); } + 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_default_icon_list (window_icons); + } + sys::path been_here_before = user_config_directory(); been_here_before /= ".a3"; // XXXX use more specific version so we can catch upgrades new_user = !exists (been_here_before); |