From f567368625fab5fbbb7ff0f62b1baaac9c437b98 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Dec 2008 21:13:51 +0000 Subject: Use icon by name rather than directly look up path. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1880 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/gui/App.cpp b/src/gui/App.cpp index ce6158d7..3a95e36b 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -116,13 +116,9 @@ App::init(int argc, char** argv, Ingen::Shared::World* world) _instance->configuration()->apply_settings(); // Set default window icon - const Glib::ustring icon_path = Shared::data_file_path("ingen.svg"); - try { - if (Glib::file_test(icon_path, Glib::FILE_TEST_EXISTS)) - Gtk::Window::set_default_icon_from_file(icon_path); - } catch (Gdk::PixbufError err) { - cerr << "Unable to load window icon " << icon_path << ": " << err.what() << endl; - } + _instance->_about_dialog->property_program_name() = "Ingen"; + _instance->_about_dialog->property_logo_icon_name() = "ingen"; + gtk_window_set_default_icon_name("ingen"); // Set style for embedded node GUIs const string rc_style = -- cgit v1.2.1