gEDA-dev: segfault on changing the units of the pcb

Christian Riggenbach criggenbach at magahugu.net
Thu Nov 1 13:28:33 EDT 2007


hi

whenever i click on the button in the gtk-hid to change the units of the 
board, it produces a segfault. after debugging and searching, i found the 
problem: "action = gtk_action_group_get_action 
(ghidgui->main_actions, "ToggleGridUnitsMm");" returns  NULL.

i solved it by simply removing the two 
instructions "gtk_action_group_get_action" and "gtk_toggle_action_set_active" 
from "src/hid/gtk/gui-top-window.c" in the functions "grid_units_button_cb" 
and "ghid_init_toggle_states". in the function "ghid_init_toggle_states" it 
don't cause a segfault when you don't remove it.

the problem is now that the button don't stick pressed anymore, but i think it 
isn't so important.

-- 

my kind regards

Christian Riggenbach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://www.seul.org/pipermail/geda-dev/attachments/20071101/96667538/attachment.pgp 


More information about the geda-dev mailing list