Wireshark-commits: [Wireshark-commits] rev 37867: /trunk/gtk/ /trunk/gtk/: file_import_dlg.c

Date: Sat, 02 Jul 2011 19:50:45 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=37867

User: wmeier
Date: 2011/07/02 12:50 PM

Log:
 Fix: Wireshark crashes after repeating "File -> Import -> Cancel"
 https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6080
 
 Apparently gtk_radio_button_get_group() must be called after
 each addition to the group before the 'group' GSList pointer can be used
 again in, for example, a call to get_radio_button_new_with_label().
 
 (Where does it say this in the GTK docs ? It does make sense, tho, given
 the way GSLists work).
 
 We'll use gtk_radio_button_new_with_label_from_widget() instead to let GTK
 handle the grouping.

Directory: /trunk/gtk/
  Changes    Path                 Action
  +9 -15     file_import_dlg.c    Modified