summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-12-20 21:13:51 +0000
committerDavid Robillard <d@drobilla.net>2008-12-20 21:13:51 +0000
commitf567368625fab5fbbb7ff0f62b1baaac9c437b98 (patch)
treecae4ab0418ebab5ff11f0509ea541e8d5b5823f3
parent73ab706865d3b9ff5a720430429e32a3faa2cc22 (diff)
downloadingen-f567368625fab5fbbb7ff0f62b1baaac9c437b98.tar.gz
ingen-f567368625fab5fbbb7ff0f62b1baaac9c437b98.tar.bz2
ingen-f567368625fab5fbbb7ff0f62b1baaac9c437b98.zip
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
-rw-r--r--src/gui/App.cpp10
1 files 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 =