summaryrefslogtreecommitdiffstats
path: root/callbacks-gtk.h
diff options
context:
space:
mode:
Diffstat (limited to 'callbacks-gtk.h')
-rw-r--r--callbacks-gtk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/callbacks-gtk.h b/callbacks-gtk.h
index 017a8c0ae..08c159b4d 100644
--- a/callbacks-gtk.h
+++ b/callbacks-gtk.h
@@ -10,7 +10,7 @@ static void name(GtkWidget *w, gpointer data) \
static void name(GtkWidget *w, gpointer data) \
{ \
GtkWidget **entry = data; \
- option = GTK_TOGGLE_BUTTON(w)->active; \
+ option = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); \
update_screen(); \
if (entry) \
gtk_widget_set_sensitive(*entry, option);\