Removed the old GTK+ uiCheckbox.

This commit is contained in:
Pietro Gagliardi 2015-06-30 11:20:28 -04:00
parent c73b506709
commit 8361b4d41a
1 changed files with 0 additions and 38 deletions

View File

@ -1,38 +0,0 @@
// 7 april 2015
#include "uipriv_unix.h"
struct checkbox {
uiCheckbox c;
GtkWidget *widget;
GtkButton *button;
GtkToggleButton *toggleButton;
GtkCheckButton *checkButton;
void (*onToggled)(uiCheckbox *, void *);
void *onToggledData;
gulong onToggledSignal;
};
static void defaultOnToggled(uiCheckbox *c, void *data)
{
// do nothing
}
uiCheckbox *uiNewCheckbox(const char *text)
{
struct checkbox *c;
c = uiNew(struct checkbox);
c->onToggled = defaultOnToggled;
uiCheckbox(c)->Text = checkboxText;
uiCheckbox(c)->SetText = checkboxSetText;
uiCheckbox(c)->OnToggled = checkboxOnToggled;
uiCheckbox(c)->Checked = checkboxChecked;
uiCheckbox(c)->SetChecked = checkboxSetChecked;
return uiCheckbox(c);
}