Commit 9307bdf6 authored by sumpfralle's avatar sumpfralle

fixed GTK errors that prevent some controls (e.g tool radius) from being displayed

* these errors seem to be ignored by most GTK versionsOB
--This line, and those below, will be ignored

M    src/pycam/Plugins/Processes.py
M    src/pycam/Plugins/Tasks.py
M    src/pycam/Plugins/Tools.py
M    share/ui/tools.ui


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1248 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 8df07d9b
......@@ -29,7 +29,7 @@
<object class="GtkListStore" id="ToolList">
<columns>
<!-- column-name object_ref -->
<column type="guint"/>
<column type="gulong"/>
</columns>
</object>
<object class="GtkVPaned" id="ToolBox">
......
......@@ -54,6 +54,8 @@ class Processes(pycam.Plugins.ListPluginBase):
lambda widget: parameters_box.remove(widget))
def add_parameter_widget(item, name):
# create a frame with an align and the item inside
if item.get_parent():
item.unparent()
frame_label = gtk.Label()
frame_label.set_markup("<b>%s</b>" % name)
frame = gtk.Frame()
......
......@@ -57,6 +57,8 @@ class Tasks(pycam.Plugins.ListPluginBase):
lambda widget: parameters_box.remove(widget))
def add_parameter_widget(item, name):
# create a frame within an alignment and the item inside
if item.get_parent():
item.unparent()
frame_label = gtk.Label()
frame_label.set_markup("<b>%s</b>" % name)
frame = gtk.Frame()
......
......@@ -55,6 +55,8 @@ class Tools(pycam.Plugins.ListPluginBase):
lambda widget: parameters_box.remove(widget))
def add_parameter_widget(item, name):
# create a frame within an alignment and the item inside
if item.get_parent():
item.unparent()
frame_label = gtk.Label()
frame_label.set_markup("<b>%s</b>" % name)
frame = gtk.Frame()
......
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