aboutsummaryrefslogtreecommitdiffstats
path: root/callbacks-gtk.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 16:49:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 16:49:15 -0700
commitc3f07b9f81f09421a92d42d1b98e7c984b75e20d (patch)
treeee555f018307996d227fda96028c95de9f1b3f31 /callbacks-gtk.h
parentb18cd1a2a7983587b9db5e8c9340c6de38706f8e (diff)
downloadsubsurface-c3f07b9f81f09421a92d42d1b98e7c984b75e20d.tar.gz
Remove gtk specific source files
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'callbacks-gtk.h')
-rw-r--r--callbacks-gtk.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/callbacks-gtk.h b/callbacks-gtk.h
deleted file mode 100644
index 568916f6c..000000000
--- a/callbacks-gtk.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#define UNITCALLBACK(name, type, value) \
-static void name(GtkWidget *w, gpointer data) \
-{ \
- if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) \
- prefs.units.type = value; \
- update_screen(); \
-}
-
-#define OPTIONCALLBACK(name, option) \
-static void name(GtkWidget *w, gpointer data) \
-{ \
- GtkWidget **entry = (GtkWidget**)data; \
- option = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); \
- update_screen(); \
- if (entry) \
- gtk_widget_set_sensitive(*entry, option);\
-}