Remove unused radio button event function.
SVN revision: 49483
This commit is contained in:
parent
80d616be73
commit
19c3af1c46
18
src/dialog.c
18
src/dialog.c
|
@ -103,7 +103,6 @@ typedef struct {
|
|||
int *val_ptr;
|
||||
DItem *next;
|
||||
DItem *first;
|
||||
DialogItemCallbackFunc *event_func;
|
||||
} DItemRadioButton;
|
||||
|
||||
struct _ditem {
|
||||
|
@ -1604,12 +1603,6 @@ DialogItemSetText(DItem * di, const char *text)
|
|||
DialogDrawItems(di->dlg, di, di->x, di->y, di->w, di->h);
|
||||
}
|
||||
|
||||
void
|
||||
DialogItemRadioButtonSetEventFunc(DItem * di, DialogItemCallbackFunc * func)
|
||||
{
|
||||
di->item.radio_button.event_func = func;
|
||||
}
|
||||
|
||||
void
|
||||
DialogItemRadioButtonSetFirst(DItem * di, DItem * first)
|
||||
{
|
||||
|
@ -2167,11 +2160,6 @@ DItemEventMouseIn(Win win __UNUSED__, DItem * di, XEvent * ev)
|
|||
if (di->item.area.event_func)
|
||||
di->item.area.event_func(di, 0, ev);
|
||||
break;
|
||||
|
||||
case DITEM_RADIOBUTTON:
|
||||
if (di->item.radio_button.event_func)
|
||||
di->item.radio_button.event_func(di, di->item.radio_button.val, ev);
|
||||
break;
|
||||
}
|
||||
|
||||
di->hilited = 1;
|
||||
|
@ -2188,12 +2176,6 @@ DItemEventMouseOut(Win win __UNUSED__, DItem * di, XEvent * ev)
|
|||
if (di->item.area.event_func)
|
||||
di->item.area.event_func(di, 0, ev);
|
||||
break;
|
||||
|
||||
case DITEM_RADIOBUTTON:
|
||||
if (di->item.radio_button.event_func)
|
||||
di->item.radio_button.event_func(di, di->item.radio_button.val,
|
||||
NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
if (!di->clicked)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
|
||||
* Copyright (C) 2004-2009 Kim Woelders
|
||||
* Copyright (C) 2004-2010 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
|
||||
|
@ -116,9 +116,6 @@ void DialogItemSetFill(DItem * di, char fill_h, char fill_v);
|
|||
void DialogItemSetAlign(DItem * di, int align_h, int align_v);
|
||||
void DialogItemSetText(DItem * di, const char *text);
|
||||
void DialogItemCallCallback(Dialog * d, DItem * di);
|
||||
void DialogItemRadioButtonSetEventFunc(DItem * di,
|
||||
DialogItemCallbackFunc *
|
||||
func);
|
||||
void DialogItemCheckButtonSetState(DItem * di, char onoff);
|
||||
void DialogItemCheckButtonSetPtr(DItem * di, char *onoff_ptr);
|
||||
void DialogItemTableSetOptions(DItem * di, int num_columns,
|
||||
|
|
Loading…
Reference in New Issue