From 8361b4d41a44a344e5d29b4b22e3c974025f9f9c Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 30 Jun 2015 11:20:28 -0400 Subject: [PATCH] Removed the old GTK+ uiCheckbox. --- unix/checkbox.c | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 unix/checkbox.c diff --git a/unix/checkbox.c b/unix/checkbox.c deleted file mode 100644 index 03fb6e34..00000000 --- a/unix/checkbox.c +++ /dev/null @@ -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); -}