openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #00162
Re: Determining system's pixmap path
It always helps to include the correct patch!
--- ../../main/classes/messagebox.py 2009-08-22 13:19:45.390662599 +0100
+++ openshot/classes/messagebox.py 2009-08-26 17:31:43.155638587 +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(getIconPath("openshot"))
dialog.connect('response', get_response, yes_callback_function, no_callback_function)
dialog.show()
References