Add my copyright to files I've modified.
[synfig.git] / synfig-studio / trunk / src / gtkmm / iconcontroler.cpp
index 41bdf4c..2afde90 100644 (file)
@@ -6,6 +6,7 @@
 **
 **     \legal
 **     Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
+**     Copyright (c) 2007 Chris Moore
 **
 **     This package is free software; you can redistribute it and/or
 **     modify it under the terms of the GNU General Public License as
@@ -72,7 +73,11 @@ using namespace synfig;
 
 static Glib::RefPtr<Gdk::Pixbuf> _tree_pixbuf_table_value_type[(int)synfig::ValueBase::TYPE_END];
 
+#ifdef WIN32
 IconControler::IconControler(const synfig::String& basepath)
+#else
+IconControler::IconControler(const synfig::String& /*basepath*/)
+#endif
 {
        Gtk::IconSource icon_source;
        icon_source.set_direction_wildcarded();
@@ -90,11 +95,11 @@ IconControler::IconControler(const synfig::String& basepath)
        char* synfig_root=getenv("SYNFIG_ROOT");
        if(synfig_root) {
                path_to_icons=synfig_root;
-               path_to_icons+=ETL_DIRECTORY_SEPERATOR;
+               path_to_icons+=ETL_DIRECTORY_SEPARATOR;
 
-               path_to_icons+="share/pixmaps";
+               path_to_icons+="share/pixmaps/synfigstudio";
        }
-       path_to_icons+=ETL_DIRECTORY_SEPERATOR;
+       path_to_icons+=ETL_DIRECTORY_SEPARATOR;
 
        try{
        Gtk::Window::set_default_icon_from_file(path_to_icons+"synfig_icon."+IMAGE_EXT);