--- a/src/window.h Tue Feb 13 22:17:48 2007 +0000
+++ b/src/window.h Tue Feb 13 22:47:05 2007 +0000
@@ -437,9 +437,10 @@
void ScrollbarClickHandler(const Widget *wi, int x, int y);
public:
- void SetWidgetDisabledState(byte widget_index, bool disab_stat);
- void DisableWidget(byte widget_index);
- void EnableWidget(byte widget_index);
+ /*inline*/ void SetWidgetDisabledState(byte widget_index, bool disab_stat);
+ /*inline*/ void DisableWidget(byte widget_index);
+ /*inline*/ void EnableWidget(byte widget_index);
+ /*inline*/ bool IsWidgetDisabled(byte widget_index) const;
//int32 AddRef()
//{
@@ -813,10 +814,10 @@
* @param widget_index : index of this widget in the window
* @return status of the widget ie: disabled = true, enabled = false
*/
-static inline bool IsWindowWidgetDisabled(const Window *w, byte widget_index)
+inline bool Window::IsWidgetDisabled(byte widget_index) const
{
- assert(widget_index < w->widget_count);
- return HASBIT(w->widget[widget_index].display_flags, WIDG_DISABLED);
+ assert(widget_index < widget_count);
+ return HASBIT(widget[widget_index].display_flags, WIDG_DISABLED);
}
/**