lib/widget/buttonbar.c: cleanup -Wcast-qual warning.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2016-02-20 16:02:05 +00:00 committed by Andrew Borodin
parent 3231160d99
commit a5cd35d11e
2 changed files with 3 additions and 3 deletions

View File

@ -261,8 +261,8 @@ buttonbar_new (gboolean visible)
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
void void
buttonbar_set_label (WButtonBar * bb, int idx, const char *text, buttonbar_set_label (WButtonBar * bb, int idx, const char *text, const global_keymap_t * keymap,
const global_keymap_t * keymap, const Widget * receiver) Widget * receiver)
{ {
if ((bb != NULL) && (idx >= 1) && (idx <= BUTTONBAR_LABELS_NUM)) if ((bb != NULL) && (idx >= 1) && (idx <= BUTTONBAR_LABELS_NUM))
{ {

View File

@ -38,7 +38,7 @@ typedef struct WButtonBar
WButtonBar *buttonbar_new (gboolean visible); WButtonBar *buttonbar_new (gboolean visible);
void buttonbar_set_label (WButtonBar * bb, int idx, const char *text, void buttonbar_set_label (WButtonBar * bb, int idx, const char *text,
const global_keymap_t * keymap, const Widget * receiver); const global_keymap_t * keymap, Widget * receiver);
WButtonBar *find_buttonbar (const WDialog * h); WButtonBar *find_buttonbar (const WDialog * h);
/*** inline functions ****************************************************************************/ /*** inline functions ****************************************************************************/