On Wed, 2009-08-26 at 10:08 -0500, Jonathan Thomas wrote: > Yes this helps, thanks. I don't think I need to use the python-xdg, > since I'm not using the icon at /usr/share/pixmaps in the actual > program. I have the same icon available inside the OpenShot code > which is loaded as a relative path on all of gtk windows, etc...
Ahhh! My instinct is never to duplicate (classic object-oriented mind-set) so I was envisaging the icon would only be installed in one location, and that the preference would be for the system location. For reference here's the patch against classes/messagebox.py that I'm currently using: --- ../../main/classes/messagebox.py 2009-08-22 13:19:45.390662599 +0100 +++ openshot/classes/messagebox.py 2009-08-26 17:13:21.063648333 +0100 @@ -17,7 +17,7 @@ # along with OpenShot Video Editor. If not, see <http://www.gnu.org/licenses/>. import gtk, os, sys - +from xdg.IconTheme import * def get_response(*args): @@ -50,6 +50,6 @@ buttons = buttons, message_format = error_message) dialog.set_title(title) - dialog.set_icon_from_file(os.path.join(path, "windows", "glade", "icons", "openshot_logo.png")) + dialog.set_icon_from_file(os.path.join(getIconPath("openshot"), "openshot.png")) dialog.connect('response', get_response, yes_callback_function, no_callback_function) dialog.show() _______________________________________________ Mailing list: https://launchpad.net/~openshot.developers Post to : [email protected] Unsubscribe : https://launchpad.net/~openshot.developers More help : https://help.launchpad.net/ListHelp

