pythoncad-1.37-png.patch 1.5 KB

12345678910111213141516171819202122232425
  1. diff -ru PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkDialog.py PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkDialog.py
  2. --- PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkDialog.py 2010-03-11 00:01:58.000000000 +0100
  3. +++ PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkDialog.py 2010-03-11 00:03:48.000000000 +0100
  4. @@ -107,7 +107,7 @@
  5. _abautDialog.set_program_name("PythonCad")
  6. _abautDialog.set_version("DS1-R37")
  7. _abautDialog.set_comments("CAD built from Python")
  8. - _iconPath=os.path.join(os.getcwd(),"gtkpycad.png")
  9. + _iconPath=os.path.join("/usr/share/pixmaps/pythoncad.png")
  10. _pixBuf=gtk.gdk.pixbuf_new_from_file(_iconPath)
  11. _abautDialog.set_logo(_pixBuf)
  12. _abautDialog.set_website("http://sourceforge.net/projects/pythoncad")
  13. diff -ru PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkimage.py PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkimage.py
  14. --- PythonCAD-DS1-R37~/PythonCAD/Interface/Gtk/gtkimage.py 2010-03-11 00:01:58.000000000 +0100
  15. +++ PythonCAD-DS1-R37/PythonCAD/Interface/Gtk/gtkimage.py 2010-03-11 00:02:59.000000000 +0100
  16. @@ -154,7 +154,7 @@
  17. self.__image = image
  18. self.__window = gtk.Window()
  19. self.__window.set_title(image.filename)
  20. - self.__window.set_icon_from_file("gtkpycad.png")
  21. + self.__window.set_icon_from_file("/usr/share/pixmaps/pythoncad.png")
  22. self.__window.connect("destroy", self.__destroyEvent)
  23. self.__window.connect("event", self.__windowEvent)
  24. self.__window.connect("key_press_event", self.__keyPressEvent)