From 41027c2843e9b333fe15ae986322c3b348be0045 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 27 Jan 2013 13:40:54 -0800 Subject: Make subsurface compile with -DGSEAL_ENABLE This forces us to use the proper gtk accessor functions. It may not be worth it if people actually do the Qt conversion, but if we want to try gtk3 at some point, this might help. This all came about because I was trying to explain on G+ what an immense pain this all was to even figure out, if you don't actually know gtk at all. Google and the gtk migration guide are almost useless, and the gtk2 documentation itself actually uses the fields directly without any accessor functions in several places. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- callbacks-gtk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'callbacks-gtk.h') 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);\ -- cgit v1.2.3-70-g09d2