Skip to content

Replace direct access to GTK struct members with accessor functions

In this request, all direct accesses (except one) to GTK struct members are replaced with accessor functions.

I used accessor function gtk_tree_view_column_get_button, which is defined in gtk3 but not in gtk2. I implemented the function gtk_tree_view_column_get_button for gtk2 conditionally using GTK_CHECK_VERSION.

The one exception is in file src/gnome-cmd-notebook.cc. I don't know what to replace GTK_NOTEBOOK (this)->first_tab with. There's no accessor function in gtk2 or gtk3, it's only used internally.

Appart from these two things, the code can be compiled with -DGSEAL_ENABLE (issue 44).

Merge request reports