From 4a171a898f68869391b326201dfc1c293c066e25 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 8 Nov 2011 00:31:04 +0000 Subject: 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 --- gtk2_ardour/startup.cc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gtk2_ardour/startup.cc') 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 > window_icons; + Glib::RefPtr 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); -- cgit v1.2.3