Commit 789df6a3 authored by sumpfralle's avatar sumpfralle

fixed "help" buttons (LinkButton) for Windows (see:...

fixed "help" buttons (LinkButton) for Windows (see: https://bugzilla.gnome.org/show_bug.cgi?id=617874)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1081 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 462f9874
......@@ -2,6 +2,7 @@ Version 0.5.1 - UNRELEASED
* added extrusion for 2D models
* 2D projection of multi-layered 2D models
* significantly improved performance of 3D visualization
* fixed "help" links for Windows users
* improved detection of library locations for Windows package
* minor bugs fixed
......
......@@ -424,6 +424,11 @@ class ProjectGui(object):
accel_path = "<pycam>/%s" % objname
item.set_accel_path(accel_path)
gtk.accel_map_change_entry(accel_path, key, mod, True)
# LinkButton does not work on Windows: https://bugzilla.gnome.org/show_bug.cgi?id=617874
if pycam.Utils.get_platform() == pycam.Utils.PLATFORM_WINDOWS:
def open_url(widget, data=None):
webbrowser.open(widget.get_uri())
gtk.link_button_set_uri_hook(open_url)
# no undo is allowed at the beginning
self.gui.get_object("UndoButton").set_sensitive(False)
self.settings.register_event("model-change-before", self._store_undo_state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment