Bug 1234

Summary: GetAttributeChecker is not defined anymore but still used
Product: ns-3 Reporter: John Abraham <john.abraham.in>
Component: generalAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: blocker CC: mathieu.lacage
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description John Abraham 2011-08-04 15:38:49 UTC
The buildbots are reporting the following error

../src/config-store/model/display-functions.cc: In function 'gboolean ns3::cell_tooltip_callback(GtkWidget*, gint, gint, gboolean, GtkTooltip*, void*)':
../src/config-store/model/display-functions.cc:184: error: 'class ns3::TypeId' has no member named 'GetAttributeName'
../src/config-store/model/display-functions.cc:193: error: 'class ns3::TypeId' has no member named 'GetAttributeHelp'
../src/config-store/model/display-functions.cc:198: error: 'class ns3::TypeId' has no member named 'GetAttributeChecker'
../src/config-store/model/display-functions.cc: In function 'gboolean ns3::cell_tooltip_callback_config_default(GtkWidget*, gint, gint, gboolean, GtkTooltip*, void*)':
../src/config-store/model/display-functions.cc:458: error: 'class ns3::TypeId' has no member named 'GetAttributeHelp'
../src/config-store/model/display-functions.cc:463: error: 'class ns3::TypeId' has no member named 'GetAttributeChecker'
Comment 1 Mathieu Lacage 2011-08-04 16:05:39 UTC
You just need to change calls to GetAttributeChecker with a call to TypeId::GetAttribute and dereference the checker field of the returned struct.
Comment 2 Mathieu Lacage 2011-08-04 16:07:05 UTC
changeset: c7bd6a148b5a

I can't test this fix since I obviously don't have a gtk-enabled build machine: I hope that you can check it and adjust the code if needed.