gui: Use GTK+ accessor functions instead of deprecated macros.