mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
075aba8f7d
commit
41027c2843
7 changed files with 15 additions and 12 deletions
2
print.c
2
print.c
|
|
@ -877,7 +877,7 @@ OPTIONCALLBACK(set_oneperpage, type, ONEPERPAGE)
|
|||
#define OPTIONSELECTEDCALLBACK(name, option) \
|
||||
static void name(GtkWidget *w, gpointer data) \
|
||||
{ \
|
||||
option = GTK_TOGGLE_BUTTON(w)->active; \
|
||||
option = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w)); \
|
||||
}
|
||||
|
||||
OPTIONSELECTEDCALLBACK(print_selection_toggle, print_options.print_selected)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue