Dialogs - Add missing const.

SVN revision: 70824
This commit is contained in:
Kim Woelders 2012-05-06 17:20:13 +00:00
parent da4c007e89
commit ee90d82431
2 changed files with 7 additions and 7 deletions

View File

@ -1744,7 +1744,7 @@ DialogItemSliderSetOrientation(DItem * di, char horizontal)
}
void
DialogItemSliderGetBounds(DItem * di, int *lower, int *upper)
DialogItemSliderGetBounds(const DItem * di, int *lower, int *upper)
{
if (lower)
*lower = di->item.slider.lower;
@ -1760,13 +1760,13 @@ DialogItemAreaSetSize(DItem * di, int w, int h)
}
Win
DialogItemAreaGetWindow(DItem * di)
DialogItemAreaGetWindow(const DItem * di)
{
return di->item.area.area_win;
}
void
DialogItemAreaGetSize(DItem * di, int *w, int *h)
DialogItemAreaGetSize(const DItem * di, int *w, int *h)
{
*w = di->item.area.w;
*h = di->item.area.h;

View File

@ -1,6 +1,6 @@
/*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
* Copyright (C) 2004-2010 Kim Woelders
* Copyright (C) 2004-2012 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@ -138,12 +138,12 @@ void DialogItemSliderSetJump(DItem * di, int jump);
void DialogItemSliderSetMinLength(DItem * di, int min);
void DialogItemSliderSetValPtr(DItem * di, int *val_ptr);
void DialogItemSliderSetOrientation(DItem * di, char horizontal);
void DialogItemSliderGetBounds(DItem * di, int *lower,
void DialogItemSliderGetBounds(const DItem * di, int *lower,
int *upper);
void DialogItemAreaSetSize(DItem * di, int w, int h);
void DialogItemAreaGetSize(DItem * di, int *w, int *h);
Win DialogItemAreaGetWindow(DItem * di);
void DialogItemAreaGetSize(const DItem * di, int *w, int *h);
Win DialogItemAreaGetWindow(const DItem * di);
void DialogItemAreaSetInitFunc(DItem * di,
DialogItemCallbackFunc * func);
void DialogItemAreaSetEventFunc(DItem * di,